CSCI3081W Drone Delivery System
IEntityFactory.h
1 #ifndef I_ENTITY_FACTORY_H_
2 #define I_ENTITY_FACTORY_H_
3 
4 #include "IEntity.h"
5 #include "util/json.h"
6 
12  public:
16  virtual ~IEntityFactory() {}
17 
24  virtual IEntity* createEntity(const JsonObject& entity) = 0;
25 };
26 
27 #endif
Composite Factory Interface.
Definition: IEntityFactory.h:11
virtual ~IEntityFactory()
Destructor for IEntityFactory class.
Definition: IEntityFactory.h:16
virtual IEntity * createEntity(const JsonObject &entity)=0
Creates entity using the given JSON object, if possible.
Represents an entity in a physical system.
Definition: IEntity.h:22
Manages a picojson::object, works with JsonValue to provide implicit casting.