30 lines
561 B
C++
30 lines
561 B
C++
|
|
#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
|