AnimXmlElement class. More...
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 | |
AnimXmlElement class.
Definition at line 564 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 2713 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 2721 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::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 2765 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 2771 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 2777 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::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 602 of file animation-interface.h.
|
private |
list of children
Definition at line 603 of file animation-interface.h.
|
private |
tag name
Definition at line 600 of file animation-interface.h.
|
private |
element string
Definition at line 601 of file animation-interface.h.