VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions
DtApiController Class Reference
Inheritance diagram for DtApiController:
Inheritance graph
[legend]

Public Member Functions

 DtApiController (const std::shared_ptr< ObjectMapper > &objectMapper)
 
 ENDPOINT_INFO (scenarioRun)
 
return handleScenarioRun (request)
 
 ENDPOINT_INFO (scenarioPause)
 
 ENDPOINT_INFO (getScenarioStatus)
 
 ENDPOINT_INFO (deleteObject)
 
 ENDPOINT ("DELETE","/api/objects/{objectName}", deleteObject, PATH(String, objectName), REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (editTacticalGraphic)
 
 ENDPOINT ("PUT","/api/tactical-graphics/{objectName}", editTacticalGraphic, PATH(String, objectName), REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (createTacticalGraphic)
 
 ENDPOINT ("POST","/api/tactical-graphics", createTacticalGraphic, REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (getCommands)
 
 ENDPOINT_INFO (getCommandSpec)
 
 ENDPOINT ("GET","/api/command-specs/{commandType}", getCommandSpec, PATH(String, commandType), REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (issueCommand)
 
 ENDPOINT ("POST","/api/objects/{objectName}/commands", issueCommand, PATH(String, objectName), REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (cancelCurrentCommand)
 
 ENDPOINT ("DELETE","/api/objects/{objectName}/commands/current", cancelCurrentCommand, PATH(String, objectName), REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (setSessionType)
 
 ENDPOINT ("POST","/api/session/type", setSessionType, REQUEST(std::shared_ptr< IncomingRequest >, request))
 

Private Member Functions

std::shared_ptr< OutgoingResponse > handleScenarioRun (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleScenarioPause (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleGetScenarioStatus (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleDeleteObject (const std::shared_ptr< IncomingRequest > &req, const String &objectName)
 
std::shared_ptr< OutgoingResponse > handleEditTacticalGraphic (const std::shared_ptr< IncomingRequest > &req, const String &objectName)
 
std::shared_ptr< OutgoingResponse > handleCreateTacticalGraphic (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleGetCommands (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleGetCommandSpecs (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleGetCommandSpec (const std::shared_ptr< IncomingRequest > &req, const String &commandType)
 
std::shared_ptr< OutgoingResponse > handleIssueCommand (const std::shared_ptr< IncomingRequest > &req, const String &objectName)
 
std::shared_ptr< OutgoingResponse > handleCancelCurrentCommand (const std::shared_ptr< IncomingRequest > &req, const String &objectName)
 
std::shared_ptr< OutgoingResponse > handleSetSessionType (const std::shared_ptr< IncomingRequest > &req)
 

Constructor & Destructor Documentation

DtApiController::DtApiController ( const std::shared_ptr< ObjectMapper > &  objectMapper)
inline

Member Function Documentation

DtApiController::ENDPOINT_INFO ( scenarioRun  )
inline
return DtApiController::handleScenarioRun ( request  )
DtApiController::ENDPOINT_INFO ( scenarioPause  )
inline
DtApiController::ENDPOINT_INFO ( getScenarioStatus  )
inline
DtApiController::ENDPOINT_INFO ( deleteObject  )
inline
DtApiController::ENDPOINT ( "DELETE"  ,
"/api/objects/{objectName}"  ,
deleteObject  ,
PATH(String, objectName)  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline

References handleDeleteObject().

DtApiController::ENDPOINT_INFO ( editTacticalGraphic  )
inline
DtApiController::ENDPOINT ( "PUT"  ,
"/api/tactical-graphics/{objectName}"  ,
editTacticalGraphic  ,
PATH(String, objectName)  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtApiController::ENDPOINT_INFO ( createTacticalGraphic  )
inline
DtApiController::ENDPOINT ( "POST"  ,
"/api/tactical-graphics"  ,
createTacticalGraphic  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtApiController::ENDPOINT_INFO ( getCommands  )
inline
DtApiController::ENDPOINT_INFO ( getCommandSpec  )
inline
DtApiController::ENDPOINT ( "GET"  ,
"/api/command-specs/{commandType}"  ,
getCommandSpec  ,
PATH(String, commandType)  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtApiController::ENDPOINT_INFO ( issueCommand  )
inline
DtApiController::ENDPOINT ( "POST"  ,
"/api/objects/{objectName}/commands"  ,
issueCommand  ,
PATH(String, objectName)  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline

References handleIssueCommand().

DtApiController::ENDPOINT_INFO ( cancelCurrentCommand  )
inline
DtApiController::ENDPOINT ( "DELETE"  ,
"/api/objects/{objectName}/commands/current"  ,
cancelCurrentCommand  ,
PATH(String, objectName)  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtApiController::ENDPOINT_INFO ( setSessionType  )
inline
DtApiController::ENDPOINT ( "POST"  ,
"/api/session/type"  ,
setSessionType  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
std::shared_ptr<OutgoingResponse> DtApiController::handleScenarioRun ( const std::shared_ptr< IncomingRequest > &  req)
private
std::shared_ptr<OutgoingResponse> DtApiController::handleScenarioPause ( const std::shared_ptr< IncomingRequest > &  req)
private
std::shared_ptr<OutgoingResponse> DtApiController::handleGetScenarioStatus ( const std::shared_ptr< IncomingRequest > &  req)
private
std::shared_ptr<OutgoingResponse> DtApiController::handleDeleteObject ( const std::shared_ptr< IncomingRequest > &  req,
const String &  objectName 
)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtApiController::handleEditTacticalGraphic ( const std::shared_ptr< IncomingRequest > &  req,
const String &  objectName 
)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtApiController::handleCreateTacticalGraphic ( const std::shared_ptr< IncomingRequest > &  req)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtApiController::handleGetCommands ( const std::shared_ptr< IncomingRequest > &  req)
private
std::shared_ptr<OutgoingResponse> DtApiController::handleGetCommandSpecs ( const std::shared_ptr< IncomingRequest > &  req)
private
std::shared_ptr<OutgoingResponse> DtApiController::handleGetCommandSpec ( const std::shared_ptr< IncomingRequest > &  req,
const String &  commandType 
)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtApiController::handleIssueCommand ( const std::shared_ptr< IncomingRequest > &  req,
const String &  objectName 
)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtApiController::handleCancelCurrentCommand ( const std::shared_ptr< IncomingRequest > &  req,
const String &  objectName 
)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtApiController::handleSetSessionType ( const std::shared_ptr< IncomingRequest > &  req)
private

Referenced by ENDPOINT().


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)