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 Attributes
DtStealthCommandCommand Class Reference

A DtSimCommand subclass which specifies how to manipulate the stealth for a particular front-end or all front-ends.

Inheritance diagram for DtStealthCommandCommand:
Inheritance graph
[legend]

Public Member Functions

 DtStealthCommandCommand ()
 
 DtStealthCommandCommand (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtStealthCommandCommand (const DtString &writeName, const DtStealthCommandCommand &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtStealthCommandCommand (const DtStealthCommandCommand &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
virtual ~DtStealthCommandCommand ()
 
DtStealthCommandCommandoperator= (const DtStealthCommandCommand &orig)
 
bool operator== (const DtStealthCommandCommand &) const
 
virtual DtString stringRep () const
 
virtual const
DtSimCommandMessageType
type () const
 
virtual DtSimCommandclone (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const
 
virtual int netRepSize () const
 
virtual bool setFromNet (const char *contentBuffer, unsigned contentSize)
 
virtual bool setToNet ()
 
virtual void setStealthCommand (const DtString &)
 
virtual const DtStringstealthCommand () const
 
virtual DtRwVariableBindingsvariables ()
 
virtual const
DtRwVariableBindings
variables () const
 
virtual void setVariables (const DtRwVariableBindings &)
 
virtual void addVariable (const DtReaderWriter &)
 
virtual void removeVariable (const DtString &)
 
- Public Member Functions inherited from DtSimCommand
virtual ~DtSimCommand ()
 
virtual bool init ()
 
virtual DtSimCommandclone () const
 
virtual void putData (std::string &fp, int indentLevel=0)
 
virtual DtlObjPtr getData (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
 
virtual charnetRep ()
 
virtual void setLocalDelivery (bool)
 
virtual bool localDelivery () const
 
- Public Member Functions inherited from DtReaderWriter
 DtReaderWriter ()
 
 DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false)
 
 DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false)
 
 DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL)
 
const DtReaderWriteroperator= (const DtReaderWriter &orig)
 
bool operator== (const DtReaderWriter &) const
 
bool operator!= (const DtReaderWriter &rhs)
 
virtual ~DtReaderWriter ()
 
virtual void putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
 
virtual void postPutSelf ()
 
virtual void prePutSelf ()
 
virtual void getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
 
virtual void postGetSelf ()
 
virtual void preGetSelf ()
 
virtual void writeSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
 
virtual DtSymbolString name () const
 
virtual void addAlias (const DtSymbolString &alias)
 
virtual void addAlias (const DtString &alias)
 
virtual bool hasAlias (const DtSymbolString &alias)
 
virtual const aliasContaineraliases () const
 
virtual void setReadonly (bool flag)
 
bool isReadonly () const
 
virtual void reset ()
 
virtual int alignment () const
 
virtual bool variableIsBound () const
 
virtual void unbindVariable ()
 
virtual void setName (const DtString &)
 
virtual const charreaderWriterType () const
 
virtual const charxmlType () const
 
virtual DtString prettyPrint () const
 
std::string debugText () const
 
virtual void bindVariables (DtVariableBindingsList variableBindings)
 
virtual std::list
< DtVariableNameType
unboundVariables () const
 
bool invalid () const
 
virtual bool hasChild (const DtReaderWriter *p) const
 
virtual bool hasVariableReference () const
 
virtual void bindLocalVariables (const DtVariableBindingsList &variableBindings)
 
virtual void recordUpdateTime () const
 
virtual bool changedSinceLastChecked ()
 
virtual bool peekChangedSinceLastChecked () const
 
virtual void setValueSpecified (bool specified, bool recurse=false)
 
virtual bool valueSpecified () const
 
virtual bool isVariableReference () const
 
virtual void setIsVariableReference (bool value)
 
virtual void clearAllVariableReferenceFlags ()
 
virtual DtSymbolString variableName () const
 
virtual void setVariableName (const DtSymbolString variableName)
 
virtual const DtReaderWriterdefaultRWValue () const
 
virtual DtReaderWriterdefaultRWValue ()
 
virtual void setDefaultRWValue (DtReaderWriter *)
 
virtual bool checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
 
const DtReaderWriterRegistryregistry () const
 
DtReaderWriterRegistryregistry ()
 
virtual DtPropertyInterfaceproperty ()
 
virtual const DtPropertyInterfaceproperty () const
 
virtual DtString toXml () const
 
virtual DtRwVariableBindingsgenerateVariableBindings () const
 
virtual bool toXml (const DtFilename &) const
 
virtual bool fromXml (const DtString &)
 
virtual bool fromXmlFile (const DtFilename &)
 
virtual void putSelf (DtEnvironmentSP, DtEnvValueSP parent) const
 
virtual void putData (DtEnvironmentSP, DtEnvValueSP value) const
 
virtual void putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const
 
virtual void getSelf (const DtEnvironmentSP, const DtEnvValueSP root, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList())
 
virtual void getData (const DtEnvironmentSP, const DtEnvValueSP, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList())
 
virtual void unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings)
 
virtual void getVariableReference (DtEnvironmentSP, DtEnvValueSP value)
 

Static Public Member Functions

static DtSimCommandcreator ()
 
- Static Public Member Functions inherited from DtSimCommand
static DtSimCommandcreateSimCommand (DtlObjPtr mtlStream)
 
static DtSimCommandcreateSimCommand (const DtSimCommandMessageType &simCommandType)
 
static DtSimCommandcreateFromFactory (const DtSimCommandMessageType &simCommandType)
 
static void addSimCommandCreatorFcn (const DtSimCommandMessageType &simCommandName, DtSimCommandCreatorFcn fcn)
 
static void setFactory (DtSimCommandFactory *factory)
 
static DtSimCommandFactoryfactory ()
 
- Static Public Member Functions inherited from DtReaderWriter
static void putIndent (std::string &fp, int indentLevel)
 
static const
DtVariableBindingsList
nullVariableReference ()
 
static void setPostGetSelfCallback (DtGetSelfCallbackFcn fcn, void *usrData)
 
static void setPrePutSelfCallback (DtPutSelfCallbackFcn fcn, void *usrData)
 
static void setPutIndent (bool)
 
static bool putIndent ()
 
static const chartheXmlType ()
 
static const DtFilename & appPath ()
 
static void setFactoryCreatorFunction (DtReaderWriterFactoryCreatorFcn fcn)
 
static void createReaderWriterFactory ()
 
static void cleanupFactory ()
 
static DtReaderWriterFactoryfactory ()
 
static void setOutputStream (DtOutputStream *stream)
 
static DtOutputStream & outputStream ()
 
static DtReaderWritercreateFromXmlFile (const DtFilename &, bool createAsProperty=false)
 
static DtReaderWritercreateFromXml (const DtString &, bool createAsProperty=false)
 
static DtReaderWritercreateFromEnvironment (DtEnvironmentSP, bool createAsProperty=false)
 
static DtString getAttribute (DtEnvironmentSP env, const DtString &name, DtEnvValueSP root)
 

Protected Attributes

DtRwString myStealthCommand
 
DtRwVariableBindings myVariables
 
- Protected Attributes inherited from DtSimCommand
charmyNetRep
 
bool myLocalDelivery
 
- Protected Attributes inherited from DtReaderWriter
const DtSymbolString myName
 
DtReaderWriterRegistry myRegistry
 
DtReaderWriterRegistrymyParentRegistry
 
bool myValueSpecified
 
bool myReadOnlyFlag
 
bool myIsVariableReference
 
DtSymbolString myVariableName
 
bool myVariableIsBound
 
DtReaderWritermyDefaultValue
 
aliasContainer myAliases
 
bool myInvalid
 
bool myChangedFlag
 

Additional Inherited Members

- Public Types inherited from DtSimCommand
typedef DtSimCommandMessageType FactoryKeyType
 
- Public Types inherited from DtReaderWriter
typedef std::vector
< DtSymbolString
aliasContainer
 
typedef std::vector
< DtSymbolString >::iterator 
aliasIter
 
typedef std::vector
< DtSymbolString >
::const_iterator 
aliasConstIter
 
typedef std::vector< DtFilename > SearchPaths
 
typedef std::pair
< DtSymbolString, DtString
DtVariableNameType
 
typedef DtReaderWriterFactory *(* DtReaderWriterFactoryCreatorFcn )()
 
- Protected Member Functions inherited from DtSimCommand
 DtSimCommand ()
 
 DtSimCommand (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=0)
 
 DtSimCommand (const DtString &writeName, const DtSimCommand &orig, DtReaderWriterRegistry *parentRegistry=0)
 
const DtSimCommandoperator= (const DtSimCommand &orig)
 
virtual charcreateNetworkBuffer ()
 
virtual bool isTypeRegistered (const DtSimCommandMessageType &commandType)
 
- Protected Member Functions inherited from DtReaderWriter
virtual void bindToRwAsVariable (const DtReaderWriter *rw)
 
- Static Protected Attributes inherited from DtSimCommand
static DtSimCommandFactorymyFactory
 
- Static Protected Attributes inherited from DtReaderWriter
static DtString theUnspecifiedValue
 
static DtGetSelfCallbackInfo thePostGetSelfCallback
 
static DtPutSelfCallbackInfo thePrePutSelfCallback
 
static const DtVariableBindingsList theEmptyVariableBindingsList
 
static bool theCreatorFcnSet
 
static DtReaderWriterFactorytheFactory
 
static
DtReaderWriterFactoryCreatorFcn 
theFactoryCreatorFcn
 
static bool thePutIndent
 
static DtOutputStream * theOutputStream
 

Constructor & Destructor Documentation

DtStealthCommandCommand::DtStealthCommandCommand ( )

default constructor

DtStealthCommandCommand::DtStealthCommandCommand ( const DtString writeName,
DtReaderWriterRegistry parentRegistry = NULL 
)

Usual constructor.

DtStealthCommandCommand::DtStealthCommandCommand ( const DtString writeName,
const DtStealthCommandCommand orig,
DtReaderWriterRegistry parentRegistry = NULL 
)

copy constructor

DtStealthCommandCommand::DtStealthCommandCommand ( const DtStealthCommandCommand orig,
DtReaderWriterRegistry parentRegistry = NULL 
)

copy constructor

virtual DtStealthCommandCommand::~DtStealthCommandCommand ( )
virtual

destructor

Member Function Documentation

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

assignment operator

bool DtStealthCommandCommand::operator== ( const DtStealthCommandCommand ) const
virtual DtString DtStealthCommandCommand::stringRep ( ) const
virtual

Returns a human-readable string representation of the command. This string representation is used to display information about the command in the plan editor and viewer. The type and parameters for the command are typically encoded in the string. The format of the string is up to you.

Implements DtSimCommand.

static DtSimCommand* DtStealthCommandCommand::creator ( )
static
virtual const DtSimCommandMessageType& DtStealthCommandCommand::type ( ) const
virtual
Returns
The type of this DtSimCommand (specified in radioMsgTypes.h)

Implements DtSimCommand.

virtual DtSimCommand* DtStealthCommandCommand::clone ( const DtString name,
DtReaderWriterRegistry parentRegistry = 0 
) const
virtual
Returns
A new instance of this class, copied from the original.

Implements DtSimCommand.

virtual int DtStealthCommandCommand::netRepSize ( ) const
virtual

Returns the size in bytes of the network representation of the class. This is the size in bytes of the DtNetSimSimCommand structure. Derived classes should take into acount the size returned by this class when overriding (they should call down to this class and add the result to their additional size).

Reimplemented from DtSimCommand.

virtual bool DtStealthCommandCommand::setFromNet ( const char contentBuffer,
unsigned  contentSize 
)
virtual

Sets mySubsimCommand member from the incoming contentBuffer (cast to type DtNetSimSimCommand). Derived classes should call down to this function first, and then extract their own data starting at the location contentBuffer + DtSimCommand::netRepSize().

Reimplemented from DtSimCommand.

virtual bool DtStealthCommandCommand::setToNet ( )
virtual

Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*, and then sets the mySubsimCommand member in the DtNetSimSimCommand from mySubsimCommand. Derived classes should call down to the base class version of setToNet() at the start of the function (before doing any processing on the network representation) They can then start to fill in their network data, starting at the location myNetRep + DtSimCommand::netRepSize().

Reimplemented from DtSimCommand.

virtual void DtStealthCommandCommand::setStealthCommand ( const DtString )
virtual

Stealth command to execute. The stealth command given will determine how the supplied parameters are used.

virtual const DtString& DtStealthCommandCommand::stealthCommand ( ) const
virtual

Stealth command to execute. The stealth command given will determine how the supplied parameters are used.

virtual DtRwVariableBindings& DtStealthCommandCommand::variables ( )
virtual

The variables that are used to statisfy the execution of the given stealth command. These variables are supplied and determined by the stealth command give. For example, an absolute setting might have a location and an orientation whereas an attachment command will also have the entity to attach to.

virtual const DtRwVariableBindings& DtStealthCommandCommand::variables ( ) const
virtual

The variables that are used to statisfy the execution of the given stealth command. These variables are supplied and determined by the stealth command give. For example, an absolute setting might have a location and an orientation whereas an attachment command will also have the entity to attach to.

virtual void DtStealthCommandCommand::setVariables ( const DtRwVariableBindings )
virtual

The variables that are used to statisfy the execution of the given stealth command. These variables are supplied and determined by the stealth command give. For example, an absolute setting might have a location and an orientation whereas an attachment command will also have the entity to attach to.

virtual void DtStealthCommandCommand::addVariable ( const DtReaderWriter )
virtual

Adding a variable will clone the variable and add it to the variable bindings.

virtual void DtStealthCommandCommand::removeVariable ( const DtString )
virtual

Removes variable by name and deletes memory allocated for variable.

Member Data Documentation

DtRwString DtStealthCommandCommand::myStealthCommand
protected
DtRwVariableBindings DtStealthCommandCommand::myVariables
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)