Advertisement
Guest User

record

a guest
Nov 12th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. #ifndef RECORD_H
  2. #define RECORD_H
  3.  
  4. #include <QDateTime>
  5. #include <string>
  6.  
  7. class Record
  8. {
  9. public:
  10. Record();
  11. Record(int, const std::string&, const std::string&,
  12. const std::string&, QDate);
  13. Record(const Record &);
  14. virtual ~Record();
  15.  
  16. int getYear() const;
  17. std::string getName() const;
  18. std::string getSurname() const;
  19. std::string getPatronymic() const;
  20. QDate getDate() const;
  21.  
  22. void setYear(int);
  23. void setName(const std::string&);
  24. void setSurname(const std::string&);
  25. void setPatronymic(const std::string&);
  26. void setDate(QDate);
  27. private:
  28. int year;
  29. std::string name;
  30. std::string surname;
  31. std::string patronymic;
  32. QDate date;
  33. };
  34.  
  35. bool check_string(const std::string&);
  36.  
  37. #endif // RECORD_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement