MAK RTIspy API Documentation for HLA 1.3
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends
DtSpyXmlBlock Class Reference

Abstract base of all elements / objects in the RTI Spy Web Interface's XML data representation. More...

+ Inheritance diagram for DtSpyXmlBlock:
+ Collaboration diagram for DtSpyXmlBlock:

List of all members.

Public Types

typedef MAKRti::DtString DtXMLParseError
typedef std::pair
< MAKRti::DtEnvValueSP,
MAKRti::DtEnvValueSP > 
DtNodeAndParentPair

Public Member Functions

 DtSpyXmlBlock (const MAKRti::DtString &name, const MAKRti::DtString &type, MAKRti::DtEnvValueSP parent)
 DtSpyXmlBlock (const DtSpyXmlBlock &orig)
 DtSpyXmlBlock (MAKRti::DtEnvValueSP node, MAKRti::DtEnvValueSP parent)
DtSpyXmlBlockoperator= (const DtSpyXmlBlock &orig)
virtual ~DtSpyXmlBlock ()
const MAKRti::DtString & name () const
const MAKRti::DtString & type () const
MAKRti::DtEnvValueSP objectNode () const
void addChild (DtSpyXmlBlockSP child)
void removeChild (DtSpyXmlBlockSP child)
const DtSpyXmlBlockSetchildren () const
DtSpyXmlBlockSetchildren ()
virtual DtSpyXmlBlockSet childrenByType (const MAKRti::DtString &type) const
virtual DtSpyXmlBlockSP lookupChild (const MAKRti::DtString &name, const MAKRti::DtString &type) const
const DtSpyXmlBlockElementsSetsubElements () const
DtSpyXmlBlockElementsSetsubElements ()
virtual std::ostream & print (std::ostream &ostr) const
template<typename SpyXmlBlockType >
DtBoost::shared_ptr
< SpyXmlBlockType > 
getChildByName (const MAKRti::DtString &name, const MAKRti::DtString &type, const DtSpyXmlBlock &block)

Static Public Member Functions

static DtSpyXmlBlockSP create (MAKRti::DtEnvValueSP node, MAKRti::DtEnvValueSP parent)
static bool isCreatable (MAKRti::DtEnvValueSP node)
template<typename SpyXmlBlockType >
static std::set
< DtBoost::shared_ptr
< SpyXmlBlockType > > 
getChildrenOfType (const MAKRti::DtString &type, const DtSpyXmlBlock &block)

Protected Types

typedef DtPluggableFactory
< MAKRti::DtString,
DtSpyXmlBlock,
DtNodeAndParentPair
DtFactory

Protected Member Functions

virtual std::ostream & printAttributes (std::ostream &ostr) const
virtual std::ostream & printElements (std::ostream &ostr) const
void addSubElement (DtSpyXmlBlockElements *element)
void removeSubElement (DtSpyXmlBlockElements *element)
void createChildren ()
MAKRti::DtEnvValueSP findElement (const MAKRti::DtString &type)
MAKRti::DtEnvValueSP findAttribute (const MAKRti::DtString &name)
MAKRti::DtEnvValueSP addElement (const MAKRti::DtString &type, const MAKRti::DtString &initialValue)
MAKRti::DtEnvValueSP addAttribute (const MAKRti::DtString &name, const MAKRti::DtString &initialValue)
MAKRti::DtEnvValueSP removeElement (const MAKRti::DtString &type)
MAKRti::DtEnvValueSP removeAttribute (const MAKRti::DtString &name)
MAKRti::DtEnvValueSP addComment (const MAKRti::DtString &comment)

Protected Attributes

MAKRti::DtString myName
MAKRti::DtString myType
MAKRti::DtEnvValueSP myObjectNode
MAKRti::DtEnvValueSP myParentNode
DtSpyXmlBlockSet myChildren
DtSpyXmlBlockElementsSet myXmlElements
MAKRti::DtEnvironment myEnvironment

Friends

class DtSpyXmlBlockElements

Detailed Description

Abstract base of all elements / objects in the RTI Spy Web Interface's XML data representation.

Simplifies reading/writing of XML for concrete data classes. All elements must have both a name and a type.


Member Typedef Documentation

typedef std::pair< MAKRti::DtEnvValueSP, MAKRti::DtEnvValueSP > DtSpyXmlBlock::DtNodeAndParentPair
typedef MAKRti::DtString DtSpyXmlBlock::DtXMLParseError

Constructor & Destructor Documentation

DtSpyXmlBlock::DtSpyXmlBlock ( const MAKRti::DtString &  name,
const MAKRti::DtString &  type,
MAKRti::DtEnvValueSP  parent 
)
DtSpyXmlBlock::DtSpyXmlBlock ( MAKRti::DtEnvValueSP  node,
MAKRti::DtEnvValueSP  parent 
)

References myObjectNode, and myParentNode.


Member Function Documentation

DtEnvValueSP DtSpyXmlBlock::addAttribute ( const MAKRti::DtString &  name,
const MAKRti::DtString &  initialValue 
) [protected]
void DtSpyXmlBlock::addChild ( DtSpyXmlBlockSP  child) [inline]

References myChildren, myEnvironment, and myObjectNode.

Referenced by DtFomObjectXmlBlock::addAttribute(), DtNetMapXmlBlock::addChildForwarder(), DtNetMapForwarderXmlBlock::addChildForwarder(), DtNetMapForwarderXmlBlock::addChildNode(), DtLrcConsoleLogXmlBlock::addEvent(), DtFederationStateXmlBlock::addFederate(), DtSyncPointXmlBlock::addFederate(), DtFederationListXmlBlock::addFederation(), DtFomStateXmlBlock::addInteraction(), DtFomInteractionXmlBlock::addInteraction(), DtLrcObjInterStatsXmlBlock::addObject(), DtFomStateXmlBlock::addObject(), DtLrcStateDatabaseXmlBlock::addObject(), DtFomObjectXmlBlock::addObject(), DtObjOwnershipInfoXmlBlock::addObject(), DtPubSubXmlBlock::addObject(), DtWwwRequestXmlBlock::addParameter(), DtFomInteractionXmlBlock::addParameter(), DtFederationStateXmlBlock::addSyncPoint(), DtRidParamsXmlBlock::convertRidParams(), createChildren(), DtLrcApiStatsXmlBlock::DtLrcApiStatsXmlBlock(), DtLrcMsgStatsXmlBlock::DtLrcMsgStatsXmlBlock(), DtLrcStateDatabaseXmlBlock::DtLrcStateDatabaseXmlBlock(), DtLrcStateXmlBlock::DtLrcStateXmlBlock(), DtMsgStatsXmlBlock::DtMsgStatsXmlBlock(), DtPubSubXmlBlock::DtPubSubXmlBlock(), DtLrcApiStatsXmlBlock::fedAmbCalled(), DtLrcStateDatabaseXmlBlock::fedAmbCalled(), DtInteractionSendRecvXmlBlock::interactionReceived(), DtInteractionSendRecvXmlBlock::interactionSent(), DtLrcStateDatabaseXmlBlock::messageRead(), DtLrcMsgStatsXmlBlock::messageRead(), DtLrcStateDatabaseXmlBlock::messageSent(), DtLrcMsgStatsXmlBlock::messageSent(), DtLrcObjInterStatsXmlBlock::recordInteraction(), DtLrcStateDatabaseXmlBlock::recordInteraction(), DtLrcApiStatsXmlBlock::rtiAmbCalled(), DtLrcStateDatabaseXmlBlock::rtiAmbCalled(), DtFederateStateContainerXmlBlock::setFederate(), and DtFederateStateXmlBlock::setTimeState().

DtEnvValueSP DtSpyXmlBlock::addComment ( const MAKRti::DtString &  comment) [protected]
DtEnvValueSP DtSpyXmlBlock::addElement ( const MAKRti::DtString &  type,
const MAKRti::DtString &  initialValue 
) [protected]
void DtSpyXmlBlock::addSubElement ( DtSpyXmlBlockElements element) [inline, protected]
const DtSpyXmlBlockSet & DtSpyXmlBlock::children ( ) const [inline]

References myChildren.

Referenced by getChildByName(), and getChildrenOfType().

References myChildren.

DtSpyXmlBlockSet DtSpyXmlBlock::childrenByType ( const MAKRti::DtString &  type) const [virtual]

References myChildren, and type().

DtSpyXmlBlockSP DtSpyXmlBlock::create ( MAKRti::DtEnvValueSP  node,
MAKRti::DtEnvValueSP  parent 
) [static]
void DtSpyXmlBlock::createChildren ( ) [protected]
DtEnvValueSP DtSpyXmlBlock::findAttribute ( const MAKRti::DtString &  name) [protected]
DtEnvValueSP DtSpyXmlBlock::findElement ( const MAKRti::DtString &  type) [protected]
template<typename SpyXmlBlockType >
DtBoost::shared_ptr< SpyXmlBlockType > DtSpyXmlBlock::getChildByName ( const MAKRti::DtString &  name,
const MAKRti::DtString &  type,
const DtSpyXmlBlock block 
)

References children(), and type().

template<typename SpyXmlBlockType >
std::set< DtBoost::shared_ptr< SpyXmlBlockType > > DtSpyXmlBlock::getChildrenOfType ( const MAKRti::DtString &  type,
const DtSpyXmlBlock block 
) [static]

References children(), and type().

bool DtSpyXmlBlock::isCreatable ( MAKRti::DtEnvValueSP  node) [static]
DtSpyXmlBlockSP DtSpyXmlBlock::lookupChild ( const MAKRti::DtString &  name,
const MAKRti::DtString &  type 
) const [virtual]

References myChildren, and name().

const MAKRti::DtString & DtSpyXmlBlock::name ( ) const [inline]
MAKRti::DtEnvValueSP DtSpyXmlBlock::objectNode ( ) const [inline]

References myObjectNode.

Referenced by DtFomObjectXmlBlock::addAttribute(), DtNetMapXmlBlock::addChildForwarder(), DtNetMapForwarderXmlBlock::addChildForwarder(), DtNetMapForwarderXmlBlock::addChildNode(), DtLrcConsoleLogXmlBlock::addEvent(), DtFederationStateXmlBlock::addFederate(), DtSyncPointXmlBlock::addFederate(), DtFederationListXmlBlock::addFederation(), DtFomStateXmlBlock::addInteraction(), DtFomInteractionXmlBlock::addInteraction(), DtLrcObjInterStatsXmlBlock::addObject(), DtFomStateXmlBlock::addObject(), DtLrcStateDatabaseXmlBlock::addObject(), DtFomObjectXmlBlock::addObject(), DtObjOwnershipInfoXmlBlock::addObject(), DtPubSubXmlBlock::addObject(), DtFomInteractionXmlBlock::addParameter(), DtWwwRequestXmlBlock::addParameter(), DtFederationStateXmlBlock::addSyncPoint(), DtRidParamsXmlBlock::convertRidParams(), createChildren(), DtLrcApiStatsXmlBlock::DtLrcApiStatsXmlBlock(), DtLrcMsgStatsXmlBlock::DtLrcMsgStatsXmlBlock(), DtLrcStateDatabaseXmlBlock::DtLrcStateDatabaseXmlBlock(), DtLrcStateXmlBlock::DtLrcStateXmlBlock(), DtMsgStatsXmlBlock::DtMsgStatsXmlBlock(), DtPubSubXmlBlock::DtPubSubXmlBlock(), DtLrcApiStatsXmlBlock::fedAmbCalled(), DtLrcStateDatabaseXmlBlock::fedAmbCalled(), DtInteractionSendRecvXmlBlock::interactionReceived(), DtInteractionSendRecvXmlBlock::interactionSent(), DtLrcStateDatabaseXmlBlock::messageRead(), DtLrcMsgStatsXmlBlock::messageRead(), DtLrcStateDatabaseXmlBlock::messageSent(), DtLrcMsgStatsXmlBlock::messageSent(), DtLrcObjInterStatsXmlBlock::recordInteraction(), DtLrcStateDatabaseXmlBlock::recordInteraction(), DtLrcApiStatsXmlBlock::rtiAmbCalled(), DtLrcStateDatabaseXmlBlock::rtiAmbCalled(), and DtFederateStateXmlBlock::setTimeState().

DtSpyXmlBlock & DtSpyXmlBlock::operator= ( const DtSpyXmlBlock orig)
ostream & DtSpyXmlBlock::print ( std::ostream &  ostr) const [virtual]

References myName, myType, printAttributes(), and printElements().

Referenced by operator<<().

ostream & DtSpyXmlBlock::printAttributes ( std::ostream &  ostr) const [protected, virtual]

References myXmlElements.

Referenced by print().

ostream & DtSpyXmlBlock::printElements ( std::ostream &  ostr) const [protected, virtual]

References myChildren, and myXmlElements.

Referenced by print().

DtEnvValueSP DtSpyXmlBlock::removeAttribute ( const MAKRti::DtString &  name) [protected]

References findAttribute(), and myEnvironment.

void DtSpyXmlBlock::removeChild ( DtSpyXmlBlockSP  child) [inline]
DtEnvValueSP DtSpyXmlBlock::removeElement ( const MAKRti::DtString &  type) [protected]

References findElement(), and myEnvironment.

void DtSpyXmlBlock::removeSubElement ( DtSpyXmlBlockElements element) [inline, protected]

References myXmlElements.

References myXmlElements.

const MAKRti::DtString & DtSpyXmlBlock::type ( ) const [inline]

Friends And Related Function Documentation

friend class DtSpyXmlBlockElements [friend]

Member Data Documentation

MAKRti::DtEnvironment DtSpyXmlBlock::myEnvironment [mutable, protected]
MAKRti::DtString DtSpyXmlBlock::myName [protected]

Referenced by name(), operator=(), and print().

MAKRti::DtEnvValueSP DtSpyXmlBlock::myObjectNode [protected]
MAKRti::DtEnvValueSP DtSpyXmlBlock::myParentNode [protected]

Referenced by operator=(), and ~DtSpyXmlBlock().

MAKRti::DtString DtSpyXmlBlock::myType [protected]

Reimplemented in DtNetMapNodeXmlBlock, and DtRidParameterXmlBlock.

Referenced by operator=(), print(), and type().


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

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)