|
InFact
Interpreter and factory for easily creating C++ objects at run-time
|
An owner of a pet. More...
#include <example.h>
Public Member Functions | |
| PetOwner () | |
| Constructs a generic pet owner. More... | |
| virtual | ~PetOwner () |
| Destroys this pet owner. More... | |
| virtual int | GetNumberOfPets ()=0 |
| Returns the number of pets owned by this pet owner. More... | |
| virtual shared_ptr< Animal > | GetPet (int i)=0 |
| Gets the pet with the specified index owned by this pet owner. 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... | |
|
inline |
|
inlinevirtual |
|
pure virtual |
Returns the number of pets owned by this pet owner.
Implemented in infact::HumanPetOwner.
|
pure virtual |
Gets the pet with the specified index owned by this pet owner.
Implemented in infact::HumanPetOwner.
1.8.6