VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
DtStealthCommand Class Reference

Abstract base class for all stealth command types. More...

Inheritance diagram for DtStealthCommand:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtStealthCommand ()
 Default constructor.
 DtStealthCommand (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=NULL)
 Usual constructor.
 DtStealthCommand (const DtString &writeName, const DtStealthCommand &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 copy constructor
virtual ~DtStealthCommand ()
 destructor
DtStealthCommandoperator= (const DtStealthCommand &orig)
 assignment operator
virtual void addAttachment (const DtString &entityName)
 Adds the give entity name to the list of entities to attach.
virtual void setAttachToName (const DtString &entityName)
 Calls add attachment.
virtual DtString attachToName () const
 Returns the first name in myAttachments.
virtual const DtRwStringListattachToList () const
 Returns the entire list of attachments (myAttachments)
virtual DtString stringRep () const
 Get a readable string representation of this Stealth statement.
virtual int netRepSize () const
 Returns the size of the full network representation padded to an 8-byte boundary.
virtual bool setFromNet (const char *contentBuffer, unsigned contentSize)
 Fills in the request from the network buffer.
virtual bool setToNet ()
 Fills in the network buffer (created by base class sim statement) with the set data request contents.

Protected Attributes

DtRwStringList myAttachments

Detailed Description

Abstract base class for all stealth command types.

Includes a list of attached entity names.


Constructor & Destructor Documentation

Default constructor.

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

Usual constructor.

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

copy constructor

virtual DtStealthCommand::~DtStealthCommand ( ) [virtual]

destructor


Member Function Documentation

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

assignment operator

virtual void DtStealthCommand::addAttachment ( const DtString entityName) [virtual]

Adds the give entity name to the list of entities to attach.

Multiple entities are only supported in group mode.

virtual void DtStealthCommand::setAttachToName ( const DtString entityName) [virtual]

Calls add attachment.

virtual DtString DtStealthCommand::attachToName ( ) const [virtual]

Returns the first name in myAttachments.

virtual const DtRwStringList& DtStealthCommand::attachToList ( ) const [virtual]

Returns the entire list of attachments (myAttachments)

virtual DtString DtStealthCommand::stringRep ( ) const [virtual]

Get a readable string representation of this Stealth statement.

Implements DtSimCommand.

Reimplemented in DtStealthCompassCommand, DtStealthDetachCommand, DtStealthGroupCommand, and DtStealthMimicCommand.

virtual int DtStealthCommand::netRepSize ( ) const [virtual]

Returns the size of the full network representation padded to an 8-byte boundary.

Reimplemented from DtSimCommand.

virtual bool DtStealthCommand::setFromNet ( const char *  contentBuffer,
unsigned  contentSize 
) [virtual]

Fills in the request from the network buffer.

Reimplemented from DtSimCommand.

virtual bool DtStealthCommand::setToNet ( ) [virtual]

Fills in the network buffer (created by base class sim statement) with the set data request contents.

Reimplemented from DtSimCommand.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)