22 lines
444 B
C++
22 lines
444 B
C++
|
|
#ifndef COMPANYENTRY_H
|
|
#define COMPANYENTRY_H
|
|
|
|
#include "Entry.h"
|
|
|
|
class CompanyEntry : public Entry {
|
|
public:
|
|
CompanyEntry(std::string name, std::string category, std::string phone);
|
|
|
|
void print(std::string indent = "") const;
|
|
std::string getPhone() const;
|
|
std::string getCategory() const;
|
|
|
|
void accept(EntryVisitor &) const;
|
|
|
|
private:
|
|
std::string _category;
|
|
std::string _phone;
|
|
};
|
|
|
|
#endif |