A Discrete-Event Network Simulator
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. More...
template<typename T >
void AddAttribute (std::string attribute, T value, bool xmlEscape=false)
 Add attribute function. More...
void AppendChild (AnimXmlElement e)
 Append child function. More...
void SetText (std::string text)
 Set text function. More...
std::string ToString (bool autoClose=true)
 Get text for the element function. More...

Private Attributes

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

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 


tagNametag name
emptyElementempty element?

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

Member Function Documentation

◆ AddAttribute()

◆ AppendChild()

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

Append child function.

ethe element to add as a child

Definition at line 2794 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.

textthe text for the element

Definition at line 2800 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

list of attributes

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

◆ m_children

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

list of children

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

◆ m_tagName

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

tag name

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

◆ m_text

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

element string

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

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