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 563 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 2682 of file animation-interface.cc.
References m_tagName, and m_text.
Referenced by AppendChild().
| 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 2690 of file animation-interface.cc.
References m_attributes.
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 2734 of file animation-interface.cc.
References AnimXmlElement(), m_children, and 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 2740 of file animation-interface.cc.
References m_text.
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 2746 of file animation-interface.cc.
References m_attributes, m_children, m_tagName, and m_text.
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 601 of file animation-interface.h.
Referenced by AddAttribute(), and ToString().
| 
 | private | 
list of children
Definition at line 602 of file animation-interface.h.
Referenced by AppendChild(), and ToString().
| 
 | private | 
tag name
Definition at line 599 of file animation-interface.h.
Referenced by AnimXmlElement(), and ToString().
| 
 | private | 
element string
Definition at line 600 of file animation-interface.h.
Referenced by AnimXmlElement(), SetText(), and ToString().