17 lines
344 B
C++
17 lines
344 B
C++
#ifndef COUNTVISITOR_H
|
|
#define COUNTVISITOR_H
|
|
|
|
#include "EntryVisitor.h"
|
|
class CountVisitor : public EntryVisitor {
|
|
int nPerson, nCompany, nGroup;
|
|
|
|
public:
|
|
CountVisitor();
|
|
|
|
void printCounts();
|
|
|
|
void visit(const PersonEntry &);
|
|
void visit(const CompanyEntry &);
|
|
void visit(const GroupEntry &);
|
|
};
|
|
#endif |