CSCI3081W Drone Delivery System
Public Member Functions | List of all members
DroneFactory Class Reference

Drone Factory to produce Drone class. More...

#include <DroneFactory.h>

Inheritance diagram for DroneFactory:
Inheritance graph
[legend]
Collaboration diagram for DroneFactory:
Collaboration graph
[legend]

Public Member Functions

virtual ~DroneFactory ()
 Destructor for DroneFactory class.
 
IEntitycreateEntity (const JsonObject &entity)
 Creates entity using the given JSON object, if possible. More...
 
- Public Member Functions inherited from IEntityFactory
virtual ~IEntityFactory ()
 Destructor for IEntityFactory class.
 

Detailed Description

Drone Factory to produce Drone class.

Member Function Documentation

◆ createEntity()

IEntity* DroneFactory::createEntity ( const JsonObject entity)
virtual

Creates entity using the given JSON object, if possible.

Parameters
entity- JsonObject to be used to create the new entity.
Returns
Entity that was created if it was created successfully, or a nullpointer if creation failed.

Implements IEntityFactory.


The documentation for this class was generated from the following file: