Files
cppcourse/397/Ex71/GroupEntry.h
T
2026-10-05 11:27:21 +02:00

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