A Discrete-Event Network Simulator
API
Public Member Functions | Private Attributes | List of all members
ns3::AnimationInterface::AnimXmlElement Class Reference

AnimXmlElement class. More...

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

◆ AnimXmlElement()

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

Constructor.

Parameters
tagNametag name
emptyElementempty element?

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

Member Function Documentation

◆ AddAttribute()

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

◆ AppendChild()

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

Append child function.

Parameters
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().

◆ SetText()

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

Set text function.

Parameters
textthe text for the element

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

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

◆ ToString()

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

Member Data Documentation

◆ m_attributes

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

list of attributes

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

◆ m_children

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

list of children

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

◆ m_tagName

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

tag name

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

◆ m_text

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

element string

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


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