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