chore: Add course material
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
|
||||
|
||||
#ifndef GROUPENTRY_H
|
||||
#define GROUPENTRY_H
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "Entry.h"
|
||||
#include "PersonEntry.h"
|
||||
|
||||
class GroupEntry : public Entry {
|
||||
public:
|
||||
GroupEntry(std::string name);
|
||||
|
||||
// print the entire group, including its members
|
||||
// precede the name with the "indent" string
|
||||
void print(std::string indent = "") const;
|
||||
|
||||
// child management
|
||||
void addEntry(const Entry &);
|
||||
|
||||
void accept(EntryVisitor &) const;
|
||||
|
||||
private:
|
||||
std::vector<const Entry *> _entries;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user