CSCI3081W Drone Delivery System
Public Member Functions | List of all members
IController Class Referenceabstract

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...
 

Detailed Description

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

Member Function Documentation

◆ addEntity()

virtual void IController::addEntity ( const IEntity entity)
pure virtual

Add the entity to the program.

Parameters
entityType IEntity contain entity object

◆ removeEntity()

virtual void IController::removeEntity ( const IEntity entity)
pure virtual

To remove the entity from the program.

Parameters
idType int contain the ID of the entity object

◆ sendEventToView()

virtual void IController::sendEventToView ( const std::string &  event,
const JsonObject details 
)
pure virtual

To allow message to be passed back to the view.

Parameters
eventType string contain name of the event
detailType JsonObject contain the details of the event

◆ updateEntity()

virtual void IController::updateEntity ( const IEntity entity)
pure virtual

To update the entity information and add it to the program.

Parameters
entityType IEntity contain entity object

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