CSCI3081W Drone Delivery System
CompositeFactory.h
1 #ifndef COMPOSITE_FACTORY_H_
2 #define COMPOSITE_FACTORY_H_
3 
4 #include "IEntityFactory.h"
5 
11  public:
18  IEntity* createEntity(const JsonObject& entity);
19 
24  void addFactory(IEntityFactory* factoryEntity);
25 
29  virtual ~CompositeFactory();
30 
31  private:
32  std::vector<IEntityFactory*> componentFactories;
33 };
34 
35 #endif
Factory method for composite class. Inherits from IEntityFactory.
Definition: CompositeFactory.h:10
virtual ~CompositeFactory()
Destructor for CompositeFactory class.
void addFactory(IEntityFactory *factoryEntity)
Adds given factory.
IEntity * createEntity(const JsonObject &entity)
Creates entity using the given JSON object, if possible.
Composite Factory Interface.
Definition: IEntityFactory.h:11
Represents an entity in a physical system.
Definition: IEntity.h:22
Manages a picojson::object, works with JsonValue to provide implicit casting.