InFact
Interpreter and factory for easily creating C++ objects at run-time
|
A concrete implementation of the Person interface that can be constructed by a Factory (because of the REGISTER_PERSON(PersonImpl)
declaration in example.cc
).
More...
#include <example.h>
Public Member Functions | |
PersonImpl () | |
Constructs this person. More... | |
virtual | ~PersonImpl () |
Destroys this person. More... | |
virtual void | RegisterInitializers (Initializers &initializers) |
Registers one required and two optional initializers. More... | |
virtual const string & | name () const |
Returns the name of this person. More... | |
virtual const int | cm_height () const |
Returns the height in centimeters of this person. More... | |
virtual shared_ptr< const Date > | birthday () const |
Returns the birthday of this person. More... | |
Public Member Functions inherited from infact::Person | |
Person () | |
Constructs this abstract person. More... | |
virtual | ~Person () |
Destroys this abstract person. More... | |
Public Member Functions inherited from infact::FactoryConstructible | |
virtual | ~FactoryConstructible () |
Destroys this instance. 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... | |
A concrete implementation of the Person interface that can be constructed by a Factory (because of the REGISTER_PERSON(PersonImpl)
declaration in example.cc
).
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Returns the birthday of this person.
Implements infact::Person.
|
inlinevirtual |
Returns the height in centimeters of this person.
Implements infact::Person.
|
inlinevirtual |
Returns the name of this person.
Implements infact::Person.
|
inlinevirtual |
Registers one required and two optional initializers.
Reimplemented from infact::FactoryConstructible.