add config.h and cleanup
This commit is contained in:
+3
-10
@@ -41,22 +41,15 @@ class Person
|
||||
{
|
||||
public:
|
||||
Person() = default;
|
||||
Person(const char* aName, EventTime birth={}, Sex=M, EventTime death={});
|
||||
Person(const char* aName, EventTime aBirth={}, Sex=M, EventTime aDeath={});
|
||||
/* Person(Person&&) = default; */
|
||||
/* Person& operator=(Person&&) = default; */
|
||||
/* Person& operator=(const Person&) = default; */
|
||||
|
||||
bool operator==(const Person &other) const;
|
||||
|
||||
void write(std::ofstream &file) const;//
|
||||
void read(std::ifstream &file);
|
||||
void rename(const char* newName);
|
||||
|
||||
void displayInfo() const;
|
||||
|
||||
const EventTime& birth() const { return birth_; };
|
||||
/* U16 boxWidth(bool wholeName) const; */
|
||||
|
||||
/* Draw a Person's box on the terminal
|
||||
drawY,drawX - top left coordinates where to draw (negative if outside the screen)
|
||||
hasSpouse, hasSpouse, hasChildren - wheather the person has them on display
|
||||
@@ -65,7 +58,7 @@ public:
|
||||
bool hasParents, bool hasChildren=false, bool wholeName=true) const;
|
||||
|
||||
std::string name;
|
||||
EventTime birth_;
|
||||
EventTime birth;
|
||||
Sex sex;
|
||||
EventTime death_;
|
||||
EventTime death;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user