Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
Person.cpp
Go to the documentation of this file.
1 
7 #include "Person.h"
8 #include "tracer/tracer.h"
9 
10 namespace ODemo {
11 using std::string;
12 
13 Person::Person(std::string name) : m_name(std::move(name)) { COMP_MISC_MEMBER_TRACER; }
14 
16 
17 string Person::get_name() const
18 {
20  return m_name;
21 }
22 } // namespace ODemo
Comprehensive include file for all tracer classes.
Header for the class Person.
virtual ~Person()
Destructor.
Definition: Person.cpp:15
#define COMP_MISC_MEMBER_TRACER
Macro for tracking member scope.
Definition: MemberTracer.h:21
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