CSCI3081W Drone Delivery System
|
class for IController used for transit service. Uses the Model View More...
#include <IController.h>
Public Member Functions | |
virtual | ~IController () |
A destructor for IController. | |
virtual void | addEntity (const IEntity &entity)=0 |
Add the entity to the program. More... | |
virtual void | updateEntity (const IEntity &entity)=0 |
To update the entity information and add it to the program. More... | |
virtual void | removeEntity (const IEntity &entity)=0 |
To remove the entity from the program. More... | |
virtual void | sendEventToView (const std::string &event, const JsonObject &details)=0 |
To allow message to be passed back to the view. More... | |
class for IController used for transit service. Uses the Model View
Abstract controller class used in the Transit Service. Uses the Model View Controller Pattern
|
pure virtual |
Add the entity to the program.
entity | Type IEntity contain entity object |
|
pure virtual |
To remove the entity from the program.
id | Type int contain the ID of the entity object |
|
pure virtual |
To allow message to be passed back to the view.
event | Type string contain name of the event |
detail | Type JsonObject contain the details of the event |
|
pure virtual |
To update the entity information and add it to the program.
entity | Type IEntity contain entity object |