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::PetOwner Class Referenceabstract

An owner of a pet. More...

#include <example.h>

Inheritance diagram for infact::PetOwner:
infact::FactoryConstructible infact::HumanPetOwner

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< AnimalGetPet (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...
 

Detailed Description

An owner of a pet.

Definition at line 254 of file example.h.

Constructor & Destructor Documentation

infact::PetOwner::PetOwner ( )
inline

Constructs a generic pet owner.

Definition at line 257 of file example.h.

virtual infact::PetOwner::~PetOwner ( )
inlinevirtual

Destroys this pet owner.

Definition at line 260 of file example.h.

Member Function Documentation

virtual int infact::PetOwner::GetNumberOfPets ( )
pure virtual

Returns the number of pets owned by this pet owner.

Implemented in infact::HumanPetOwner.

virtual shared_ptr<Animal> infact::PetOwner::GetPet ( int  i)
pure virtual

Gets the pet with the specified index owned by this pet owner.

Implemented in infact::HumanPetOwner.


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