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 563 of file animation-interface.h.

Constructor & Destructor Documentation

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


tagNametag name
emptyElementempty element?

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

Member Function Documentation

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

Append child function.

ethe element to add as a child

Definition at line 2751 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:

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

Set text function.

textthe text for the element

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

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

+ Here is the caller graph for this function:

Member Data Documentation

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

list of attributes

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

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

list of children

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

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

tag name

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

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

element string

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

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