VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Attributes
DtTextInterface Class Reference

Public Types

typedef std::list< std::string > TokenList
typedef TokenList::const_iterator TokenIter
typedef std::map< std::string,
boost::function< void(const
TokenList &)> > 
CommandMap

Public Member Functions

 DtTextInterface (DtVrfRemoteController *controller)
virtual ~DtTextInterface ()
void readStdin ()
void createScenario (char *str)
virtual void setTimeToQuit (bool yesNo)
virtual bool timeToQuit () const
virtual bool scenarioLoaded () const
void prompt ()
virtual DtVrfRemoteControllercontroller () const
virtual void createTank (char *str)
virtual void createWanderTask ()
 DtTextInterface (DtVrfRemoteController *controller)
virtual ~DtTextInterface ()
void readStdin ()
virtual void setTimeToQuit (bool yesNo)
virtual bool timeToQuit () const
virtual DtVrfRemoteControllercontroller () const
virtual void createWaypoint (char *str)
virtual void createRoute (char *str)
virtual void createTank (char *str)
virtual void createAggregate (char *str)
virtual void setPlan (char *str)
virtual void setLabel (char *str)
virtual void setLocation (char *str)
virtual void setFuel (char *str)
virtual void setTarget (char *str)
virtual void setRestore (char *str)
virtual void patrolRoute (char *str)
virtual void moveToPoint (char *str)
virtual void follow (char *str)
virtual void wait (char *str)
virtual void bigRoute (int iPoints)
 DtTextInterface (DtExerciseConn *controller)
virtual ~DtTextInterface ()
void readStdin ()
 Process entered text.
virtual void setTimeToQuit (bool yesNo)
 Set/Get time to quit.
virtual bool timeToQuit () const
void helpCmd (const TokenList &tokens)
void quitCmd (const TokenList &tokens)
void resetViewCmd (const TokenList &tokens)
 Functions for parsing command strings and sending the right commands.
void absViewCmd (const TokenList &tokens)
void followViewCmd (const TokenList &tokens)
void mimicViewCmd (const TokenList &tokens)
void tetherViewCmd (const TokenList &tokens)
void trackViewCmd (const TokenList &tokens)
void mimicTrackViewCmd (const TokenList &tokens)
void tetherTrackViewCmd (const TokenList &tokens)
void spaceFollowViewCmd (const TokenList &tokens)
void observerSettingCmd (unsigned int settingType, const TokenList &tokens)
void groundClampingCmd (const TokenList &tokens)
void modelSetCmd (const TokenList &tokens)
void tacticalGraphicsCmd (const TokenList &tokens)
void tacticalGraphicsLabelsCmd (const TokenList &tokens)
void radioCommsCmd (const TokenList &tokens)
void commLinesCmd (const TokenList &tokens)
void squawkIndicatorsCmd (const TokenList &tokens)
void entityLabelsCmd (const TokenList &tokens)
void entitySmoothingCmd (const TokenList &tokens)
void fireDetonateLinesCmd (const TokenList &tokens)
void fogCmd (const TokenList &tokens)
void hazeCmd (const TokenList &tokens)
void precipitationCmd (const TokenList &tokens)
void cloudLayersCmd (const TokenList &tokens)
void dateTimeCmd (const TokenList &tokens)
void timeScaleCmd (const TokenList &tokens)
void shadowCmd (const TokenList &tokens)
void shadowSettingsCmd (const TokenList &tokens)
void performanceStatsCmd (const TokenList &tokens)
void hudsCmd (const TokenList &tokens)
void remoteGraphicsSetCmd (const TokenList &tokens)
void wireframeCmd (const TokenList &tokens)
void observerModeCmd (const TokenList &tokens)
void zoomCmd (const TokenList &tokens)
void viewMagnificationCmd (const TokenList &tokens)
void sensorModeCmd (const TokenList &tokens)
void sensorBoolParameterCmd (const TokenList &tokens)
void sensorFloatParameterCmd (const TokenList &tokens)
void sensorStringParameterCmd (const TokenList &tokens)
void sensorIntParameterCmd (const TokenList &tokens)
void streamingVideoCmd (const TokenList &tokens)
void observerSpeedLinearCmd (const TokenList &tokens)
void observerSpeedRotationalCmd (const TokenList &tokens)
void observerSpeedOrbitalCmd (const TokenList &tokens)
void modelScaleTypeCmd (const TokenList &tokens)
void modelScaleFactorCmd (const TokenList &tokens)
void projectionCmd (const TokenList &tokens)
void audioCmd (const TokenList &tokens)
void audioVolumeCmd (const TokenList &tokens)
void terrainScalingCmd (const TokenList &tokens)
void terrainScaleFactorCmd (const TokenList &tokens)
void trackHistoryRibbonLengthCmd (const TokenList &tokens)
void trackHistoryRibbonSpacingCmd (const TokenList &tokens)
void observerModeRestoreCmd (const TokenList &tokens)
void savedViewCmd (const TokenList &tokens)
void advancedLightingCmd (const TokenList &tokens)
void planarReflectionsCmd (const TokenList &tokens)
void lensFlareCmd (const TokenList &tokens)
void crepuscularRaysCmd (const TokenList &tokens)
void rainSplashCmd (const TokenList &tokens)
void waveSplashCmd (const TokenList &tokens)
void oceanSprayCmd (const TokenList &tokens)
void depthOfFieldCmd (const TokenList &tokens)
void entityHatCmd (const TokenList &tokens)
void tacticalGraphicsHatCmd (const TokenList &tokens)
void emitterVolumesCmd (const TokenList &tokens)
void senderIdCmd (const TokenList &tokens)
void receiverIdCmd (const TokenList &tokens)
void wakesCmd (const TokenList &tokens)
void laserDesignatorsCmd (const TokenList &tokens)
void wavesSprayEffectCmd (const TokenList &tokens)
void rotorWashDecalCmd (const TokenList &tokens)
void seaStateCmd (const TokenList &tokens)
void seaStateCtrlCmd (const TokenList &tokens)
void swellStateCmd (const TokenList &tokens)
void depthOfFieldAutoFocusCmd (const TokenList &tokens)
void depthOfFieldFocusDistanceCmd (const TokenList &tokens)
void depthOfFieldDepthCmd (const TokenList &tokens)
void windDirectionCmd (const TokenList &tokens)
void windSpeedCmd (const TokenList &tokens)
void visibilityCmd (const TokenList &tokens)
void cloudCoverCmd (const TokenList &tokens)
void useGlobalTimeZoneCmd (const TokenList &tokens)
void detachViewCmd (const TokenList &tokens)
void diffuseLightScaleCmd (const TokenList &tokens)
void ambientLightScaleCmd (const TokenList &tokens)
void processCmd (const std::string &buff)

Static Public Member Functions

static void scenarioLoadedCb (void *usr)
static void vrfObjectCreatedCb (const DtString &name, const DtEntityIdentifier &id, void *usr)
static void listCmd (char *s, DtTextInterface *a)
static void loadCmd (char *s, DtTextInterface *a)
static bool missingBackends (DtBackendMap *map, void *usr)
static void newCmd (char *s, DtTextInterface *a)
static void saveCmd (char *s, DtTextInterface *a)
static void createCmd (char *s, DtTextInterface *a)
static void setCmd (char *s, DtTextInterface *a)
static void taskCmd (char *s, DtTextInterface *a)
static void aggregateCmd (char *s, DtTextInterface *a)
static void deleteCmd (char *s, DtTextInterface *a)
static void closeCmd (char *s, DtTextInterface *a)
static void monitorResourcesCmd (char *s, DtTextInterface *a)
static void removeMonitorResourcesCmd (char *s, DtTextInterface *a)
static void rewindCmd (char *s, DtTextInterface *a)
static void runCmd (char *s, DtTextInterface *a)
static void pauseCmd (char *s, DtTextInterface *a)
static void simrunCmd (char *s, DtTextInterface *a)
static void simpauseCmd (char *s, DtTextInterface *a)
static void timemultiplierCmd (char *s, DtTextInterface *a)
static void quitCmd (char *s, DtTextInterface *a)
static void helpCmd (char *s, DtTextInterface *a)
static void bigRouteCmd (char *s, DtTextInterface *a)
static void backendAddedCb (const DtSimulationAddress &addr, void *usr)
static void backendRemovedCb (const DtSimulationAddress &addr, 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, void *usr)
static void planCb (const DtString &name, const DtList &stmts, bool append, void *usr)
static void planStmtCb (const DtString &id, DtPlanStatus status, void *usr)
static void planCompleteCb (const DtString &id, void *usr)
static void resourcesProcessedCb (DtSimMessage *msg, void *usr)
static void objectConsoleMessageCb (const DtEntityIdentifier &id, int notifyLevel, const DtString &message, void *usr)

Protected Member Functions

void prompt ()
void processCmd (char *buff)
void prompt ()
TokenList tokenize (const std::string &str, const std::string &delim)
void packageAndSend (vrvControlToolkit::DtVrvControl_v1 *cmd)

Protected Attributes

bool myTimeToQuit
DtVrfRemoteControllermyController
DtSelectParam sparam
DtExerciseConn * myExconn
CommandMap myCommands
DtEntityIdentifier mySenderId
DtEntityIdentifier myReceiverId

Static Protected Attributes

static bool myScenarioLoaded
static bool myTankCreated
static DtString myMsg
static unsigned int theNextAggregateId
static unsigned int theNextSubordinateId

Private Attributes

int kbInterest

Member Typedef Documentation

typedef std::list<std::string> DtTextInterface::TokenList
typedef TokenList::const_iterator DtTextInterface::TokenIter
typedef std::map<std::string, boost::function<void (const TokenList& )> > DtTextInterface::CommandMap

Constructor & Destructor Documentation

DtTextInterface::DtTextInterface ( DtVrfRemoteController controller)
virtual DtTextInterface::~DtTextInterface ( )
virtual
DtTextInterface::DtTextInterface ( DtVrfRemoteController controller)
virtual DtTextInterface::~DtTextInterface ( )
virtual
DtTextInterface::DtTextInterface ( DtExerciseConn *  controller)
virtual DtTextInterface::~DtTextInterface ( )
virtual

Member Function Documentation

void DtTextInterface::readStdin ( )
void DtTextInterface::createScenario ( char str)
virtual void DtTextInterface::setTimeToQuit ( bool  yesNo)
virtual
virtual bool DtTextInterface::timeToQuit ( ) const
virtual
virtual bool DtTextInterface::scenarioLoaded ( ) const
virtual
void DtTextInterface::prompt ( )
virtual DtVrfRemoteController* DtTextInterface::controller ( ) const
virtual
virtual void DtTextInterface::createTank ( char str)
virtual
virtual void DtTextInterface::createWanderTask ( )
virtual
static void DtTextInterface::scenarioLoadedCb ( void *  usr)
static
static void DtTextInterface::vrfObjectCreatedCb ( const DtString name,
const DtEntityIdentifier &  id,
void *  usr 
)
static
void DtTextInterface::readStdin ( )
virtual void DtTextInterface::setTimeToQuit ( bool  yesNo)
virtual
virtual bool DtTextInterface::timeToQuit ( ) const
virtual
virtual DtVrfRemoteController* DtTextInterface::controller ( ) const
virtual
virtual void DtTextInterface::createWaypoint ( char str)
virtual
virtual void DtTextInterface::createRoute ( char str)
virtual
virtual void DtTextInterface::createTank ( char str)
virtual
virtual void DtTextInterface::createAggregate ( char str)
virtual
virtual void DtTextInterface::setPlan ( char str)
virtual
virtual void DtTextInterface::setLabel ( char str)
virtual
virtual void DtTextInterface::setLocation ( char str)
virtual
virtual void DtTextInterface::setFuel ( char str)
virtual
virtual void DtTextInterface::setTarget ( char str)
virtual
virtual void DtTextInterface::setRestore ( char str)
virtual
virtual void DtTextInterface::patrolRoute ( char str)
virtual
virtual void DtTextInterface::moveToPoint ( char str)
virtual
virtual void DtTextInterface::follow ( char str)
virtual
virtual void DtTextInterface::wait ( char str)
virtual
virtual void DtTextInterface::bigRoute ( int  iPoints)
virtual
static void DtTextInterface::listCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::loadCmd ( char s,
DtTextInterface a 
)
static
static bool DtTextInterface::missingBackends ( DtBackendMap map,
void *  usr 
)
static
static void DtTextInterface::newCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::saveCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::createCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::setCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::taskCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::aggregateCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::deleteCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::closeCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::monitorResourcesCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::removeMonitorResourcesCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::rewindCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::runCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::pauseCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::simrunCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::simpauseCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::timemultiplierCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::quitCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::helpCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::bigRouteCmd ( char s,
DtTextInterface a 
)
static
static void DtTextInterface::backendAddedCb ( const DtSimulationAddress &  addr,
void *  usr 
)
static
static void DtTextInterface::backendRemovedCb ( const DtSimulationAddress &  addr,
void *  usr 
)
static
static void DtTextInterface::backendLoadedCb ( const DtSimulationAddress &  addr,
void *  usr 
)
static
static void DtTextInterface::backendSavedCb ( const DtSimulationAddress &  addr,
DtSaveResult  result,
void *  usr 
)
static
static void DtTextInterface::ScenarioLoadedCb ( void *  usr)
static
static void DtTextInterface::ScenarioSavedCb ( void *  usr)
static
static void DtTextInterface::vrfObjectCreatedCb ( const DtString name,
const DtEntityIdentifier &  id,
void *  usr 
)
static
static void DtTextInterface::planCb ( const DtString name,
const DtList &  stmts,
bool  append,
void *  usr 
)
static
static void DtTextInterface::planStmtCb ( const DtString id,
DtPlanStatus  status,
void *  usr 
)
static
static void DtTextInterface::planCompleteCb ( const DtString id,
void *  usr 
)
static
static void DtTextInterface::resourcesProcessedCb ( DtSimMessage msg,
void *  usr 
)
static
static void DtTextInterface::objectConsoleMessageCb ( const DtEntityIdentifier &  id,
int  notifyLevel,
const DtString message,
void *  usr 
)
static
void DtTextInterface::prompt ( )
protected
void DtTextInterface::processCmd ( char buff)
protected
void DtTextInterface::readStdin ( )

Process entered text.

virtual void DtTextInterface::setTimeToQuit ( bool  yesNo)
virtual

Set/Get time to quit.

virtual bool DtTextInterface::timeToQuit ( ) const
virtual
void DtTextInterface::helpCmd ( const TokenList tokens)
void DtTextInterface::quitCmd ( const TokenList tokens)
void DtTextInterface::resetViewCmd ( const TokenList tokens)

Functions for parsing command strings and sending the right commands.

void DtTextInterface::absViewCmd ( const TokenList tokens)
void DtTextInterface::followViewCmd ( const TokenList tokens)
void DtTextInterface::mimicViewCmd ( const TokenList tokens)
void DtTextInterface::tetherViewCmd ( const TokenList tokens)
void DtTextInterface::trackViewCmd ( const TokenList tokens)
void DtTextInterface::mimicTrackViewCmd ( const TokenList tokens)
void DtTextInterface::tetherTrackViewCmd ( const TokenList tokens)
void DtTextInterface::spaceFollowViewCmd ( const TokenList tokens)
void DtTextInterface::observerSettingCmd ( unsigned int  settingType,
const TokenList tokens 
)
void DtTextInterface::groundClampingCmd ( const TokenList tokens)
void DtTextInterface::modelSetCmd ( const TokenList tokens)
void DtTextInterface::tacticalGraphicsCmd ( const TokenList tokens)
void DtTextInterface::tacticalGraphicsLabelsCmd ( const TokenList tokens)
void DtTextInterface::radioCommsCmd ( const TokenList tokens)
void DtTextInterface::commLinesCmd ( const TokenList tokens)
void DtTextInterface::squawkIndicatorsCmd ( const TokenList tokens)
void DtTextInterface::entityLabelsCmd ( const TokenList tokens)
void DtTextInterface::entitySmoothingCmd ( const TokenList tokens)
void DtTextInterface::fireDetonateLinesCmd ( const TokenList tokens)
void DtTextInterface::fogCmd ( const TokenList tokens)
void DtTextInterface::hazeCmd ( const TokenList tokens)
void DtTextInterface::precipitationCmd ( const TokenList tokens)
void DtTextInterface::cloudLayersCmd ( const TokenList tokens)
void DtTextInterface::dateTimeCmd ( const TokenList tokens)
void DtTextInterface::timeScaleCmd ( const TokenList tokens)
void DtTextInterface::shadowCmd ( const TokenList tokens)
void DtTextInterface::shadowSettingsCmd ( const TokenList tokens)
void DtTextInterface::performanceStatsCmd ( const TokenList tokens)
void DtTextInterface::hudsCmd ( const TokenList tokens)
void DtTextInterface::remoteGraphicsSetCmd ( const TokenList tokens)
void DtTextInterface::wireframeCmd ( const TokenList tokens)
void DtTextInterface::observerModeCmd ( const TokenList tokens)
void DtTextInterface::zoomCmd ( const TokenList tokens)
void DtTextInterface::viewMagnificationCmd ( const TokenList tokens)
void DtTextInterface::sensorModeCmd ( const TokenList tokens)
void DtTextInterface::sensorBoolParameterCmd ( const TokenList tokens)
void DtTextInterface::sensorFloatParameterCmd ( const TokenList tokens)
void DtTextInterface::sensorStringParameterCmd ( const TokenList tokens)
void DtTextInterface::sensorIntParameterCmd ( const TokenList tokens)
void DtTextInterface::streamingVideoCmd ( const TokenList tokens)
void DtTextInterface::observerSpeedLinearCmd ( const TokenList tokens)
void DtTextInterface::observerSpeedRotationalCmd ( const TokenList tokens)
void DtTextInterface::observerSpeedOrbitalCmd ( const TokenList tokens)
void DtTextInterface::modelScaleTypeCmd ( const TokenList tokens)
void DtTextInterface::modelScaleFactorCmd ( const TokenList tokens)
void DtTextInterface::projectionCmd ( const TokenList tokens)
void DtTextInterface::audioCmd ( const TokenList tokens)
void DtTextInterface::audioVolumeCmd ( const TokenList tokens)
void DtTextInterface::terrainScalingCmd ( const TokenList tokens)
void DtTextInterface::terrainScaleFactorCmd ( const TokenList tokens)
void DtTextInterface::trackHistoryRibbonLengthCmd ( const TokenList tokens)
void DtTextInterface::trackHistoryRibbonSpacingCmd ( const TokenList tokens)
void DtTextInterface::observerModeRestoreCmd ( const TokenList tokens)
void DtTextInterface::savedViewCmd ( const TokenList tokens)
void DtTextInterface::advancedLightingCmd ( const TokenList tokens)
void DtTextInterface::planarReflectionsCmd ( const TokenList tokens)
void DtTextInterface::lensFlareCmd ( const TokenList tokens)
void DtTextInterface::crepuscularRaysCmd ( const TokenList tokens)
void DtTextInterface::rainSplashCmd ( const TokenList tokens)
void DtTextInterface::waveSplashCmd ( const TokenList tokens)
void DtTextInterface::oceanSprayCmd ( const TokenList tokens)
void DtTextInterface::depthOfFieldCmd ( const TokenList tokens)
void DtTextInterface::entityHatCmd ( const TokenList tokens)
void DtTextInterface::tacticalGraphicsHatCmd ( const TokenList tokens)
void DtTextInterface::emitterVolumesCmd ( const TokenList tokens)
void DtTextInterface::senderIdCmd ( const TokenList tokens)
void DtTextInterface::receiverIdCmd ( const TokenList tokens)
void DtTextInterface::wakesCmd ( const TokenList tokens)
void DtTextInterface::laserDesignatorsCmd ( const TokenList tokens)
void DtTextInterface::wavesSprayEffectCmd ( const TokenList tokens)
void DtTextInterface::rotorWashDecalCmd ( const TokenList tokens)
void DtTextInterface::seaStateCmd ( const TokenList tokens)
void DtTextInterface::seaStateCtrlCmd ( const TokenList tokens)
void DtTextInterface::swellStateCmd ( const TokenList tokens)
void DtTextInterface::depthOfFieldAutoFocusCmd ( const TokenList tokens)
void DtTextInterface::depthOfFieldFocusDistanceCmd ( const TokenList tokens)
void DtTextInterface::depthOfFieldDepthCmd ( const TokenList tokens)
void DtTextInterface::windDirectionCmd ( const TokenList tokens)
void DtTextInterface::windSpeedCmd ( const TokenList tokens)
void DtTextInterface::visibilityCmd ( const TokenList tokens)
void DtTextInterface::cloudCoverCmd ( const TokenList tokens)
void DtTextInterface::useGlobalTimeZoneCmd ( const TokenList tokens)
void DtTextInterface::detachViewCmd ( const TokenList tokens)
void DtTextInterface::diffuseLightScaleCmd ( const TokenList tokens)
void DtTextInterface::ambientLightScaleCmd ( const TokenList tokens)
void DtTextInterface::processCmd ( const std::string &  buff)
void DtTextInterface::prompt ( )
protected
TokenList DtTextInterface::tokenize ( const std::string &  str,
const std::string &  delim 
)
protected
void DtTextInterface::packageAndSend ( vrvControlToolkit::DtVrvControl_v1 cmd)
protected

Member Data Documentation

bool DtTextInterface::myTimeToQuit
protected
DtVrfRemoteController * DtTextInterface::myController
protected
bool DtTextInterface::myScenarioLoaded
staticprotected
bool DtTextInterface::myTankCreated
staticprotected
DtString DtTextInterface::myMsg
staticprotected
DtSelectParam DtTextInterface::sparam
protected
unsigned int DtTextInterface::theNextAggregateId
staticprotected
unsigned int DtTextInterface::theNextSubordinateId
staticprotected
int DtTextInterface::kbInterest
private
DtExerciseConn* DtTextInterface::myExconn
protected
CommandMap DtTextInterface::myCommands
protected
DtEntityIdentifier DtTextInterface::mySenderId
protected
DtEntityIdentifier DtTextInterface::myReceiverId
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)