A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::AnimationInterface::AnimXmlElement Class Reference

AnimXmlElement class. More...

+ Collaboration diagram for ns3::AnimationInterface::AnimXmlElement:

Public Member Functions

 AnimXmlElement (std::string tagName, bool emptyElement=true)
 Constructor.
 
template<typename T >
void AddAttribute (std::string attribute, T value, bool xmlEscape=false)
 Add attribute function.
 
void AppendChild (AnimXmlElement e)
 Append child function.
 
void SetText (std::string text)
 Set text function.
 
std::string ToString (bool autoClose=true)
 Get text for the element function.
 

Private Attributes

std::vector< std::string > m_attributes
 list of attributes
 
std::vector< std::string > m_children
 list of children
 
std::string m_tagName
 tag name
 
std::string m_text
 element string
 

Detailed Description

AnimXmlElement class.

Definition at line 564 of file animation-interface.h.

Constructor & Destructor Documentation

◆ AnimXmlElement()

ns3::AnimationInterface::AnimXmlElement::AnimXmlElement ( std::string  tagName,
bool  emptyElement = true 
)

Constructor.

Parameters
tagNametag name
emptyElementempty element?

Definition at line 2712 of file animation-interface.cc.

Member Function Documentation

◆ AddAttribute()

template<typename T >
void ns3::AnimationInterface::AnimXmlElement::AddAttribute ( std::string  attribute,
value,
bool  xmlEscape = false 
)

Add attribute function.

Parameters
attributethe attribute name
valuethe attribute value
xmlEscapetrue to escape

Definition at line 2720 of file animation-interface.cc.

References ns3::Create(), and ns3::value().

+ Here is the call graph for this function:

◆ AppendChild()

void ns3::AnimationInterface::AnimXmlElement::AppendChild ( AnimXmlElement  e)

Append child function.

Parameters
ethe element to add as a child

Definition at line 2764 of file animation-interface.cc.

References ToString().

+ Here is the call graph for this function:

◆ SetText()

void ns3::AnimationInterface::AnimXmlElement::SetText ( std::string  text)

Set text function.

Parameters
textthe text for the element

Definition at line 2770 of file animation-interface.cc.

References ns3::Create().

+ Here is the call graph for this function:

◆ ToString()

std::string ns3::AnimationInterface::AnimXmlElement::ToString ( bool  autoClose = true)

Get text for the element function.

Parameters
autoCloseauto close the element
Returns
the text

Definition at line 2776 of file animation-interface.cc.

References ns3::Create().

Referenced by AppendChild().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_attributes

std::vector<std::string> ns3::AnimationInterface::AnimXmlElement::m_attributes
private

list of attributes

Definition at line 602 of file animation-interface.h.

◆ m_children

std::vector<std::string> ns3::AnimationInterface::AnimXmlElement::m_children
private

list of children

Definition at line 603 of file animation-interface.h.

◆ m_tagName

std::string ns3::AnimationInterface::AnimXmlElement::m_tagName
private

tag name

Definition at line 600 of file animation-interface.h.

◆ m_text

std::string ns3::AnimationInterface::AnimXmlElement::m_text
private

element string

Definition at line 601 of file animation-interface.h.


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