CSCI3081W Drone Delivery System
|
Factory method for composite class. Inherits from IEntityFactory. More...
#include <CompositeFactory.h>
Public Member Functions | |
IEntity * | createEntity (const JsonObject &entity) |
Creates entity using the given JSON object, if possible. More... | |
void | addFactory (IEntityFactory *factoryEntity) |
Adds given factory. More... | |
virtual | ~CompositeFactory () |
Destructor for CompositeFactory class. | |
Public Member Functions inherited from IEntityFactory | |
virtual | ~IEntityFactory () |
Destructor for IEntityFactory class. | |
Factory method for composite class. Inherits from IEntityFactory.
void CompositeFactory::addFactory | ( | IEntityFactory * | factoryEntity | ) |
Adds given factory.
factoryEntity | - Factory to be added. |
|
virtual |
Creates entity using the given JSON object, if possible.
entity | - JsonObject to be used to create the new entity. |
Implements IEntityFactory.