1 #ifndef CPPUNIT_TOOLS_XMLELEMENT_H 2 #define CPPUNIT_TOOLS_XMLELEMENT_H 6 #if CPPUNIT_NEED_DLL_DECL 7 #pragma warning( push ) 8 #pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z 20 #if CPPUNIT_NEED_DLL_DECL 41 std::string content =
"" );
57 std::string name()
const;
62 std::string content()
const;
67 void setName(
const std::string &name );
72 void setContent(
const std::string &content );
76 void setContent(
int numericContent );
82 void addAttribute( std::string attributeName,
89 void addAttribute( std::string attributeName,
100 int elementCount()
const;
115 XmlElement *elementFor(
const std::string &name )
const;
122 std::string toString(
const std::string &indent =
"" )
const;
127 std::string attributesAsString()
const;
128 std::string escape( std::string value )
const;
144 #if CPPUNIT_NEED_DLL_DECL 145 #pragma warning( pop ) 149 #endif // CPPUNIT_TOOLS_XMLELEMENT_H CppUnitDeque< Attribute > Attributes
Definition: XmlElement.h:134
Elements m_elements
Definition: XmlElement.h:138
std::string m_name
Definition: XmlElement.h:131
A XML Element.
Definition: XmlElement.h:33
Attributes m_attributes
Definition: XmlElement.h:135
#define CPPUNIT_NS_END
Definition: Portability.h:120
std::string m_content
Definition: XmlElement.h:132
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
std::pair< std::string, std::string > Attribute
Definition: XmlElement.h:125
CppUnitDeque< XmlElement * > Elements
Definition: XmlElement.h:137
#define CPPUNIT_API
Definition: CppUnitApi.h:27