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

POI Factory to produce POI class. More...

#include <POIFactory.h>

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

Public Member Functions

virtual ~POIFactory ()
 Destructor for POIFactory 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

POI Factory to produce POI class.

Member Function Documentation

◆ createEntity()

IEntity* POIFactory::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: