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... | |
AnimXmlElement class.
Definition at line 575 of file animation-interface.h.
ns3::AnimationInterface::AnimXmlElement::AnimXmlElement | ( | std::string | tagName, |
bool | emptyElement = true |
||
) |
Constructor.
tagName | tag name |
emptyElement | empty element? |
Definition at line 2724 of file animation-interface.cc.
void ns3::AnimationInterface::AnimXmlElement::AddAttribute | ( | std::string | attribute, |
T | value, | ||
bool | xmlEscape = false |
||
) |
Add attribute function.
attribute | the attribute name |
value | the attribute value |
xmlEscape | true to escape |
Definition at line 2732 of file animation-interface.cc.
Referenced by ns3::AnimationInterface::WriteXmlAddNodeCounter(), ns3::AnimationInterface::WriteXmlAddResource(), ns3::AnimationInterface::WriteXmlAnim(), ns3::AnimationInterface::WriteXmlIpv4Addresses(), ns3::AnimationInterface::WriteXmlIpv6Addresses(), ns3::AnimationInterface::WriteXmlLink(), ns3::AnimationInterface::WriteXmlNode(), ns3::AnimationInterface::WriteXmlNonP2pLinkProperties(), ns3::AnimationInterface::WriteXmlP(), ns3::AnimationInterface::WriteXmlPRef(), ns3::AnimationInterface::WriteXmlRouting(), ns3::AnimationInterface::WriteXmlRp(), ns3::AnimationInterface::WriteXmlUpdateBackground(), ns3::AnimationInterface::WriteXmlUpdateLink(), ns3::AnimationInterface::WriteXmlUpdateNodeColor(), ns3::AnimationInterface::WriteXmlUpdateNodeCounter(), ns3::AnimationInterface::WriteXmlUpdateNodeDescription(), ns3::AnimationInterface::WriteXmlUpdateNodeImage(), ns3::AnimationInterface::WriteXmlUpdateNodePosition(), and ns3::AnimationInterface::WriteXmlUpdateNodeSize().
void ns3::AnimationInterface::AnimXmlElement::AppendChild | ( | AnimXmlElement | e | ) |
Append child function.
e | the element to add as a child |
Definition at line 2776 of file animation-interface.cc.
References ToString().
Referenced by ns3::AnimationInterface::WriteXmlIpv4Addresses(), ns3::AnimationInterface::WriteXmlIpv6Addresses(), and ns3::AnimationInterface::WriteXmlRp().
void ns3::AnimationInterface::AnimXmlElement::SetText | ( | std::string | text | ) |
Set text function.
text | the text for the element |
Definition at line 2782 of file animation-interface.cc.
Referenced by ns3::AnimationInterface::WriteXmlIpv4Addresses(), and ns3::AnimationInterface::WriteXmlIpv6Addresses().
std::string ns3::AnimationInterface::AnimXmlElement::ToString | ( | bool | autoClose = true | ) |
Get text for the element function.
autoClose | auto close the element |
Definition at line 2788 of file animation-interface.cc.
Referenced by AppendChild(), ns3::AnimationInterface::WriteXmlAddNodeCounter(), ns3::AnimationInterface::WriteXmlAddResource(), ns3::AnimationInterface::WriteXmlAnim(), ns3::AnimationInterface::WriteXmlIpv4Addresses(), ns3::AnimationInterface::WriteXmlIpv6Addresses(), ns3::AnimationInterface::WriteXmlLink(), ns3::AnimationInterface::WriteXmlNode(), ns3::AnimationInterface::WriteXmlNonP2pLinkProperties(), ns3::AnimationInterface::WriteXmlP(), ns3::AnimationInterface::WriteXmlPRef(), ns3::AnimationInterface::WriteXmlRouting(), ns3::AnimationInterface::WriteXmlRp(), ns3::AnimationInterface::WriteXmlUpdateBackground(), ns3::AnimationInterface::WriteXmlUpdateLink(), ns3::AnimationInterface::WriteXmlUpdateNodeColor(), ns3::AnimationInterface::WriteXmlUpdateNodeCounter(), ns3::AnimationInterface::WriteXmlUpdateNodeDescription(), ns3::AnimationInterface::WriteXmlUpdateNodeImage(), ns3::AnimationInterface::WriteXmlUpdateNodePosition(), and ns3::AnimationInterface::WriteXmlUpdateNodeSize().
|
private |
list of attributes
Definition at line 613 of file animation-interface.h.
|
private |
list of children
Definition at line 614 of file animation-interface.h.
|
private |
tag name
Definition at line 611 of file animation-interface.h.
|
private |
element string
Definition at line 612 of file animation-interface.h.