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 | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Attributes
DtCommandLineRemoteController Class Reference

Public Member Functions

 DtCommandLineRemoteController (makVrf::DtVrlinkVrfRemoteController *controller)
 
virtual ~DtCommandLineRemoteController ()
 
void readStdin ()
 
virtual void setTimeToQuit (bool yesNo)
 
virtual bool timeToQuit () const
 
virtual
makVrf::DtVrlinkVrfRemoteController
controller () const
 
virtual DtCommandStatus createWaypoint (const std::vector< std::string > &args)
 
virtual DtCommandStatus createRoute (const std::vector< std::string > &args)
 
virtual DtCommandStatus createTank (const std::vector< std::string > &args)
 
virtual DtCommandStatus printEnv (const std::vector< std::string > &args)
 
virtual DtCommandStatus createAggregate (const std::vector< std::string > &args)
 
virtual DtCommandStatus createAerodrome (const std::vector< std::string > &args)
 
virtual DtCommandStatus setPlan (const std::vector< std::string > &args)
 
virtual DtCommandStatus setLabel (const std::vector< std::string > &args)
 
virtual DtCommandStatus setSystemEnabled (const std::vector< std::string > &args)
 
virtual DtCommandStatus setLocation (const std::vector< std::string > &args)
 
virtual DtCommandStatus setFuel (const std::vector< std::string > &args)
 
virtual DtCommandStatus setTarget (const std::vector< std::string > &args)
 
virtual DtCommandStatus setRestore (const std::vector< std::string > &args)
 
virtual DtCommandStatus patrolRoute (const std::vector< std::string > &args)
 
virtual DtCommandStatus moveToPoint (const std::vector< std::string > &args)
 
virtual DtCommandStatus follow (const std::vector< std::string > &args)
 
virtual DtCommandStatus wait (const std::vector< std::string > &args)
 
virtual void bigRoute (int iPoints)
 
virtual void listSnapshots ()
 
virtual void printSimulationStatus (DtSimulationStatus)
 
void setRemoveListCallback (bool b)
 

Static Public Member Functions

static const bool hasEnoughArguments (const int minNumberOfArguments, const std::vector< std::string > &args)
 
static DtCommandStatus listCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus loadCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus newCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus saveCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus createCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus printCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus setCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus taskCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus aggregateCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus deleteCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus closeCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus monitorResourcesCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus removeMonitorResourcesCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus rewindCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus runCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus pauseCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus simrunCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus simpauseCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus timemultiplierCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus timeCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus quitCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus helpCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus helpCommand (const std::string command, DtCommandLineRemoteController *a)
 
static DtCommandStatus bigRouteCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus listSnapshotsCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus takeSnapshotCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus turnOnSnapshotsCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus turnOffSnapshotsCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus rollbackToSnapshotCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus simulationStatusCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static DtCommandStatus etrfireatCommand (const std::vector< std::string > &args, DtCommandLineRemoteController *a)
 
static bool missingBackends (DtBackendMap *map, const std::set< DtSimulationAddress > &currentBackends, void *usr)
 
static void backendAddedCb (const DtSimulationAddress &addr, void *usr)
 
static void backendRemovedCb (const DtSimulationAddress &addr, void *usr)
 
static void simulationStatusChanged (DtSimulationStatus, void *usr)
 
static void backendLoadedCb (const DtSimulationAddress &addr, void *usr)
 
static void backendSavedCb (const DtSimulationAddress &addr, DtSaveResult result, void *usr)
 
static void ScenarioLoadedCb (void *usr)
 
static void ScenarioSavedCb (void *usr)
 
static void vrfObjectCreatedCb (const DtString &name, const DtEntityIdentifier &id, const DtUUID &uuid, void *usr)
 
static void printStatement (const DtSimStatement *stmt, int indent=1)
 
static void printBlock (const DtSimBlock *stmt, int indent=1)
 
static void planCb (const DtUUID &name, const std::vector< DtSimStatement * > &statements, bool append, void *usr)
 
static void planStmtCb (const DtUUID &id, DtPlanStatus status, void *usr)
 
static void planCompleteCb (const DtUUID &id, void *usr)
 
static void ProcessResourceResponse (const makVrfEvents::DtEvent &)
 
static void scenarioSnapshotResponseCb (DtSimMessage *msg, void *usr)
 

Protected Member Functions

void prompt ()
 
void processCommand (const std::string buff)
 
const bool parsePoint (const std::string &pointString, DtVector &returnVector)
 
const std::vector< std::string > parseCommand (const std::string &rawCommand)
 

Protected Attributes

bool myTimeToQuit
 
makVrf::DtVrlinkVrfRemoteControllermyController
 
bool myRemoveListCallback
 

Static Protected Attributes

static unsigned int theNextAggregateId
 
static unsigned int theNextSubordinateId
 

Private Attributes

int kbInterest
 

Constructor & Destructor Documentation

DtCommandLineRemoteController::DtCommandLineRemoteController ( makVrf::DtVrlinkVrfRemoteController controller)
virtual DtCommandLineRemoteController::~DtCommandLineRemoteController ( )
virtual

Member Function Documentation

void DtCommandLineRemoteController::readStdin ( )
virtual void DtCommandLineRemoteController::setTimeToQuit ( bool  yesNo)
virtual
virtual bool DtCommandLineRemoteController::timeToQuit ( ) const
virtual
virtual makVrf::DtVrlinkVrfRemoteController* DtCommandLineRemoteController::controller ( ) const
virtual
static const bool DtCommandLineRemoteController::hasEnoughArguments ( const int  minNumberOfArguments,
const std::vector< std::string > &  args 
)
static
virtual DtCommandStatus DtCommandLineRemoteController::createWaypoint ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::createRoute ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::createTank ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::printEnv ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::createAggregate ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::createAerodrome ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::setPlan ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::setLabel ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::setSystemEnabled ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::setLocation ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::setFuel ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::setTarget ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::setRestore ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::patrolRoute ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::moveToPoint ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::follow ( const std::vector< std::string > &  args)
virtual
virtual DtCommandStatus DtCommandLineRemoteController::wait ( const std::vector< std::string > &  args)
virtual
virtual void DtCommandLineRemoteController::bigRoute ( int  iPoints)
virtual
virtual void DtCommandLineRemoteController::listSnapshots ( )
virtual
virtual void DtCommandLineRemoteController::printSimulationStatus ( DtSimulationStatus  )
virtual
static DtCommandStatus DtCommandLineRemoteController::listCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::loadCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::newCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::saveCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::createCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::printCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::setCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::taskCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::aggregateCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::deleteCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::closeCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::monitorResourcesCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::removeMonitorResourcesCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::rewindCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::runCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::pauseCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::simrunCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::simpauseCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::timemultiplierCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::timeCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::quitCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::helpCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::helpCommand ( const std::string  command,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::bigRouteCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::listSnapshotsCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::takeSnapshotCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::turnOnSnapshotsCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::turnOffSnapshotsCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::rollbackToSnapshotCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::simulationStatusCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static DtCommandStatus DtCommandLineRemoteController::etrfireatCommand ( const std::vector< std::string > &  args,
DtCommandLineRemoteController a 
)
static
static bool DtCommandLineRemoteController::missingBackends ( DtBackendMap map,
const std::set< DtSimulationAddress > &  currentBackends,
void *  usr 
)
static
static void DtCommandLineRemoteController::backendAddedCb ( const DtSimulationAddress &  addr,
void *  usr 
)
static
static void DtCommandLineRemoteController::backendRemovedCb ( const DtSimulationAddress &  addr,
void *  usr 
)
static
static void DtCommandLineRemoteController::simulationStatusChanged ( DtSimulationStatus  ,
void *  usr 
)
static
static void DtCommandLineRemoteController::backendLoadedCb ( const DtSimulationAddress &  addr,
void *  usr 
)
static
static void DtCommandLineRemoteController::backendSavedCb ( const DtSimulationAddress &  addr,
DtSaveResult  result,
void *  usr 
)
static
static void DtCommandLineRemoteController::ScenarioLoadedCb ( void *  usr)
static
static void DtCommandLineRemoteController::ScenarioSavedCb ( void *  usr)
static
static void DtCommandLineRemoteController::vrfObjectCreatedCb ( const DtString name,
const DtEntityIdentifier &  id,
const DtUUID uuid,
void *  usr 
)
static
static void DtCommandLineRemoteController::printStatement ( const DtSimStatement stmt,
int  indent = 1 
)
static
static void DtCommandLineRemoteController::printBlock ( const DtSimBlock stmt,
int  indent = 1 
)
static
static void DtCommandLineRemoteController::planCb ( const DtUUID name,
const std::vector< DtSimStatement * > &  statements,
bool  append,
void *  usr 
)
static
static void DtCommandLineRemoteController::planStmtCb ( const DtUUID id,
DtPlanStatus  status,
void *  usr 
)
static
static void DtCommandLineRemoteController::planCompleteCb ( const DtUUID id,
void *  usr 
)
static
static void DtCommandLineRemoteController::ProcessResourceResponse ( const makVrfEvents::DtEvent )
static
static void DtCommandLineRemoteController::scenarioSnapshotResponseCb ( DtSimMessage msg,
void *  usr 
)
static
void DtCommandLineRemoteController::setRemoveListCallback ( bool  b)
inline

References myRemoveListCallback.

void DtCommandLineRemoteController::prompt ( )
protected
void DtCommandLineRemoteController::processCommand ( const std::string  buff)
protected
const bool DtCommandLineRemoteController::parsePoint ( const std::string &  pointString,
DtVector &  returnVector 
)
protected
const std::vector<std::string> DtCommandLineRemoteController::parseCommand ( const std::string &  rawCommand)
protected

Member Data Documentation

bool DtCommandLineRemoteController::myTimeToQuit
protected
makVrf::DtVrlinkVrfRemoteController* DtCommandLineRemoteController::myController
protected
unsigned int DtCommandLineRemoteController::theNextAggregateId
staticprotected
unsigned int DtCommandLineRemoteController::theNextSubordinateId
staticprotected
bool DtCommandLineRemoteController::myRemoveListCallback
protected

Referenced by setRemoveListCallback().

int DtCommandLineRemoteController::kbInterest
private

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)