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 2713 of file animation-interface.cc.

Member Function Documentation

◆ AddAttribute()

◆ AppendChild()

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

Append child function.

Parameters
ethe element to add as a child

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

References ToString().

Referenced by ns3::AnimationInterface::WriteXmlIpv4Addresses(), ns3::AnimationInterface::WriteXmlIpv6Addresses(), and ns3::AnimationInterface::WriteXmlRp().

+ Here is the call graph for this function:
+ Here is the caller 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 2771 of file animation-interface.cc.

Referenced by ns3::AnimationInterface::WriteXmlIpv4Addresses(), and ns3::AnimationInterface::WriteXmlIpv6Addresses().

+ Here is the caller graph for this function:

◆ ToString()

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: