CSCI3081W Drone Delivery System
DroneFactory.h
1 #ifndef DRONE_FACTORY_H_
2 #define DRONE_FACTORY_H_
3 
4 #include <vector>
5 
6 #include "Drone.h"
7 #include "IEntityFactory.h"
8 
13 class DroneFactory : public IEntityFactory {
14  public:
18  virtual ~DroneFactory() {}
19 
26  IEntity* createEntity(const JsonObject& entity);
27 };
28 
29 #endif
Drone Factory to produce Drone class.
Definition: DroneFactory.h:13
IEntity * createEntity(const JsonObject &entity)
Creates entity using the given JSON object, if possible.
virtual ~DroneFactory()
Destructor for DroneFactory class.
Definition: DroneFactory.h:18
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.