add config.h and cleanup

This commit is contained in:
vrd
2023-03-06 22:26:31 +02:00
parent 9ef74b8283
commit 35d9d44aa6
10 changed files with 84 additions and 288 deletions
+3 -10
View File
@@ -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;
};