Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
Person.h
Go to the documentation of this file.
1 #pragma once
2 
8 #include <string>
9 
10 namespace ODemo {
11 
17 class Person
18 {
19 public:
21  explicit Person(std::string name);
22 
24  Person(const Person&) = delete;
25 
27  Person(Person&&) = delete;
28 
30  Person& operator=(const Person&) = delete;
31 
33  Person& operator=(Person&&) = delete;
34 
36  virtual ~Person();
37 
39  std::string get_name() const;
40 
41 private:
42  std::string m_name;
43 };
44 
45 } // namespace ODemo
A fairly simple class for Person.
Definition: Person.h:17
virtual ~Person()
Destructor.
Definition: Person.cpp:15
Person & operator=(const Person &)=delete
Disallow copy-assignmentof people:
std::string m_name
Definition: Person.h:42
Person(std::string name)
Constructor initializes the name of the person.
Definition: Person.cpp:13
std::string get_name() const
Return the persons name.
Definition: Person.cpp:17