InFact
Interpreter and factory for easily creating C++ objects at run-time
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
infact::Person Class Referenceabstract

An interface representing a person. More...

#include <example.h>

Inheritance diagram for infact::Person:
infact::FactoryConstructible infact::PersonImpl

Public Member Functions

 Person ()
 Constructs this abstract person. More...
 
virtual ~Person ()
 Destroys this abstract person. More...
 
virtual const string & name () const =0
 Returns the name of this person. More...
 
virtual const int cm_height () const =0
 Returns the height in centimeters of this person. More...
 
virtual shared_ptr< const Datebirthday () const =0
 Returns the birthday of this person. More...
 
- Public Member Functions inherited from infact::FactoryConstructible
virtual ~FactoryConstructible ()
 Destroys this instance. More...
 
virtual void RegisterInitializers (Initializers &initializers)
 Registers data members of this class for initialization when an instance is constructed via the Factory::CreateOrDie method. More...
 
virtual void PostInit (const Environment *env, const string &init_str)
 Does any additional initialization after an instance of this class has been constructed, crucially giving access to the Environment that was in use and modified during construction by the Factory::CreateOrDie method. More...
 

Detailed Description

An interface representing a person.

Definition at line 103 of file example.h.

Constructor & Destructor Documentation

infact::Person::Person ( )
inline

Constructs this abstract person.

Definition at line 106 of file example.h.

virtual infact::Person::~Person ( )
inlinevirtual

Destroys this abstract person.

Definition at line 108 of file example.h.

Member Function Documentation

virtual shared_ptr<const Date> infact::Person::birthday ( ) const
pure virtual

Returns the birthday of this person.

Implemented in infact::PersonImpl.

virtual const int infact::Person::cm_height ( ) const
pure virtual

Returns the height in centimeters of this person.

Implemented in infact::PersonImpl.

virtual const string& infact::Person::name ( ) const
pure virtual

Returns the name of this person.

Implemented in infact::PersonImpl.


The documentation for this class was generated from the following file: