InFact
Interpreter and factory for easily creating C++ objects at run-time
|
A concrete type of PetOwner that can be constructed by a Factory<PetOwner> instance. More...
#include <example.h>
Public Member Functions | |
HumanPetOwner () | |
Constructs a human pet owner. More... | |
virtual | ~HumanPetOwner () |
Destroys a human pet owner. More... | |
virtual void | RegisterInitializers (Initializers &initializers) |
Registers a single required initializer. More... | |
virtual int | GetNumberOfPets () |
Returns the number of pets owned by this pet owner. More... | |
virtual shared_ptr< Animal > | GetPet (int i) |
Gets the pet with the specified index owned by this pet owner. More... | |
Public Member Functions inherited from infact::PetOwner | |
PetOwner () | |
Constructs a generic pet owner. More... | |
virtual | ~PetOwner () |
Destroys this pet owner. 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... | |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Returns the number of pets owned by this pet owner.
Implements infact::PetOwner.
|
inlinevirtual |
Gets the pet with the specified index owned by this pet owner.
Implements infact::PetOwner.
|
inlinevirtual |
Registers a single required initializer.
Reimplemented from infact::FactoryConstructible.