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

8 bytes total More...

Inheritance diagram for DtIfMultiplePlanSet:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtIfMultiplePlanSet ()
 default constructor
virtual ~DtIfMultiplePlanSet ()
 destructor
 DtIfMultiplePlanSet (const DtIfMultiplePlanSet &orig)
 copy constructor
DtIfMultiplePlanSetoperator= (const DtIfMultiplePlanSet &orig)
 assignment operator
virtual int type () const
 Returns the type of Interface Content.
virtual DtSimInterfaceContentclone () const
virtual void setEntities (const std::vector< DtString > &)
 Get/set entities that this plan should be assigned to.
virtual const std::vector
< DtString > & 
entities () const
virtual void setName (const DtString &name)
 Sets name and sets myNameSet to true if name is non-blank.
virtual const DtStringname () const
 Returns comma separated list of all entities assigned, unless myNameSet is set, in which case it returns myName.
virtual int netRepSize () const
 Get the list of statements in the message.
virtual const char * restoreName (const char *contentBuffer)
 Restores the name portion of the network buffer.
virtual char * setNameToNet ()
 Sets the names to the network buffer and returns a pointer immediately after the name.

Static Public Member Functions

static DtSimInterfaceContentcreator ()

Protected Attributes

std::vector< DtStringmyEntities
bool myNameSet

Detailed Description

8 bytes total

class DtIfMultiplePlanSet:

Instances of DtIfMultiplePlanSet are the content portions of a plan message. This message contains enough information to reconstruct a DtPlan, minus the the content of the actual statements. The message is intended to be used with DtPlanStatement messages, which convey the rest of the content needed to fully represent the plan. This message is equivalent to DtIfPlan, except it stores a list of entities

Content-Type: DtMultiplePlanSetMessageType

statement count: The number of DtSimStatements contained in this message.

plan statements: A list of <statement count>=""> DtSimStatements in this message. Statements should be appended to the plan’s main block in the order they appear in the message. If the plan is large enough to require multiple messages, then the messages should be processed in the order they are received, further appending to the statements to received in earlier DtPlan messages.

append flag: bool flag indicating the plan message should be appended to an existing plan. This is used when a plan is large enough to require multiple messages. The first message should have this flag set to false. Subsequent messages should set this flag to true. DtNetIfMultiplePlanSet is the FIXED portion of the simulation network representation of a plan message, padded to an 8 byte boundary.

Fixed portion is immediately followed by:

<net rep of a DtSimStatement 1 (already padded to 8 byte boundary)> <net rep of a DtSimStatement n (already padded to 8 byte boundary)>

where n is myStatementCount.

Statements are top-level statements, added in the order they appear in the plan. Individual statements may contain nested statements (e.g. for 'If/else/then' and 'When' statements). Append flag indicates if message is intended for appending an existing plan (as opposed to creating a new plan). Append flag is false by default.


Constructor & Destructor Documentation

default constructor

destructor

copy constructor


Member Function Documentation

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

assignment operator

virtual int DtIfMultiplePlanSet::type ( ) const [virtual]

Returns the type of Interface Content.

Reimplemented from DtIfPlan.

virtual DtSimInterfaceContent* DtIfMultiplePlanSet::clone ( ) const [virtual]

Reimplemented from DtIfPlan.

virtual void DtIfMultiplePlanSet::setEntities ( const std::vector< DtString > &  ) [virtual]

Get/set entities that this plan should be assigned to.

virtual const std::vector<DtString>& DtIfMultiplePlanSet::entities ( ) const [virtual]
virtual void DtIfMultiplePlanSet::setName ( const DtString name) [virtual]

Sets name and sets myNameSet to true if name is non-blank.

Reimplemented from DtIfPlan.

virtual const DtString& DtIfMultiplePlanSet::name ( ) const [virtual]

Returns comma separated list of all entities assigned, unless myNameSet is set, in which case it returns myName.

Reimplemented from DtIfPlan.

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

Get the list of statements in the message.

Statement returns the size of the full network representation (control object name included) padded to an 8-byte boundary.

Reimplemented from DtIfPlan.

Reimplemented from DtIfPlan.

virtual const char* DtIfMultiplePlanSet::restoreName ( const char *  contentBuffer) [virtual]

Restores the name portion of the network buffer.

This will return the pointer immediately after the name

Reimplemented from DtIfPlan.

virtual char* DtIfMultiplePlanSet::setNameToNet ( ) [virtual]

Sets the names to the network buffer and returns a pointer immediately after the name.

Reimplemented from DtIfPlan.


Member Data Documentation

std::vector<DtString> DtIfMultiplePlanSet::myEntities [protected]

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)