VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtStealthCommand Class Reference

The DtStealthCommand is an instance of a stealth command and variables that are used to satisfy the stealth command. More...

Public Member Functions

 DtStealthCommand ()
 default constructor More...
 
 DtStealthCommand (const DtStealthCommand &)
 copy constructor More...
 
virtual ~DtStealthCommand ()
 destructor More...
 
DtStealthCommandoperator= (const DtStealthCommand &orig)
 assignment operator: assigns value only More...
 
virtual bool variable (const std::string &s, DtScriptedTaskVariable &var) const
 Returns the variable associated with the given variable. More...
 
virtual void setStealthCommand (const DtString &)
 
const DtStringstealthCommand () const
 
virtual void setDisplayName (const DtString &)
 
const DtStringdisplayName () const
 
virtual charsetToNet (char *buffer) const
 
virtual const charsetFromNet (const char *buffer)
 
virtual int netRepSize () const
 
virtual void setVariables (const std::vector< DtScriptedTaskVariable > &)
 
virtual void addVariable (const DtScriptedTaskVariable &)
 
virtual void insertVariableBefore (const DtScriptedTaskVariable &, const std::string &variable)
 
virtual void insertVariableBefore (const DtScriptedTaskVariable &, int i)
 
virtual void removeVariable (const std::string &)
 
virtual void removeVariable (int)
 
virtual std::vector
< DtScriptedTaskVariable
variables () const
 
virtual DtRwVariableBindingsdefaultVariableBindings () const
 Returns a variable binding list of all the variables default values. More...
 
virtual void setupDefaultsFromBindings (const DtRwVariableBindings &)
 Sets the default variables from the bindings. More...
 

Protected Attributes

DtString myStealthCommand
 
DtString myDisplayName
 
std::vector< std::string > myVariables
 

Detailed Description

The DtStealthCommand is an instance of a stealth command and variables that are used to satisfy the stealth command.

This is only the object that defines the command – it does not execute it

Constructor & Destructor Documentation

DtStealthCommand::DtStealthCommand ( )

default constructor

DtStealthCommand::DtStealthCommand ( const DtStealthCommand )

copy constructor

virtual DtStealthCommand::~DtStealthCommand ( )
virtual

destructor

Member Function Documentation

DtStealthCommand& DtStealthCommand::operator= ( const DtStealthCommand orig)

assignment operator: assigns value only

virtual void DtStealthCommand::setStealthCommand ( const DtString )
virtual

Stealth command accessors

const DtString& DtStealthCommand::stealthCommand ( ) const
inline
virtual void DtStealthCommand::setDisplayName ( const DtString )
virtual

Display name accessors

const DtString& DtStealthCommand::displayName ( ) const
inline
virtual char* DtStealthCommand::setToNet ( char buffer) const
virtual

Used from buffer serialize

virtual const char* DtStealthCommand::setFromNet ( const char buffer)
virtual
virtual int DtStealthCommand::netRepSize ( ) const
virtual
virtual bool DtStealthCommand::variable ( const std::string &  s,
DtScriptedTaskVariable var 
) const
virtual

Returns the variable associated with the given variable.

If no variable of that name returns false

virtual void DtStealthCommand::setVariables ( const std::vector< DtScriptedTaskVariable > &  )
virtual

Accessor for the variables that are part of this scripted task. The variables will be referenced by their bound name. The order in which they appear in the UI will be the order in which they appear in the variables list

virtual void DtStealthCommand::addVariable ( const DtScriptedTaskVariable )
virtual
virtual void DtStealthCommand::insertVariableBefore ( const DtScriptedTaskVariable ,
const std::string &  variable 
)
virtual
virtual void DtStealthCommand::insertVariableBefore ( const DtScriptedTaskVariable ,
int  i 
)
virtual
virtual void DtStealthCommand::removeVariable ( const std::string &  )
virtual
virtual void DtStealthCommand::removeVariable ( int  )
virtual
virtual std::vector<DtScriptedTaskVariable> DtStealthCommand::variables ( ) const
virtual
virtual DtRwVariableBindings* DtStealthCommand::defaultVariableBindings ( ) const
virtual

Returns a variable binding list of all the variables default values.

This is to be considered a read-only view into the default values. You must also free the return pointer when you are done with it

virtual void DtStealthCommand::setupDefaultsFromBindings ( const DtRwVariableBindings )
virtual

Sets the default variables from the bindings.

Member Data Documentation

DtString DtStealthCommand::myStealthCommand
protected
DtString DtStealthCommand::myDisplayName
protected
std::vector<std::string> DtStealthCommand::myVariables
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)