67 if (env_impl !=
nullptr &&
68 env_impl->
Get(
"age", &env_age)) {
#define REGISTER_DATE(TYPE)
The macro by which Date implementations may register themselves with the Factory that can construct...
Provides various example class headers.
#define IMPLEMENT_FACTORY(BASE)
Provides the necessary implementation for a factory for the specified BASE class type.
bool Get(const string &varname, T *value) const
Retrieves the value of the variable with the specified name and puts into into the object pointed to ...
A very simple class to represent an animal.
An implementation of the Date interface that can be constructed by a Factory (because of the REGISTER...
#define REGISTER_ANIMAL(TYPE)
Registers the Animal with the specified subtype TYPE and NAME with the Animal Factory.
#define REGISTER_PET_OWNER(TYPE)
The macro by which PetOwner implementations may register themselves with the Factory that can const...
An interface representing a person.
#define REGISTER_PERSON(TYPE)
The macro by which Person implementations may register themselves with the Factory that can constru...
An interface for an environment in which variables of various types are mapped to their values...
A class to represent a cow.
Provides an environment for variables and their values, either primitive or Factory-constructible obj...
A concrete implementation of the Person interface that can be constructed by a Factory (because of th...
Provides a set of named variables and their types, as well as the values for those variables...
A concrete type of PetOwner that can be constructed by a Factory<PetOwner> instance.