Go to the documentation of this file.    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 
 
std::string m_content
Definition: XmlElement.h:132
#define CPPUNIT_API
Definition: CppUnitApi.h:27
std::deque< Attribute > Attributes
Definition: XmlElement.h:134
Elements m_elements
Definition: XmlElement.h:138
A XML Element.
Definition: XmlElement.h:34
std::string m_name
Definition: XmlElement.h:131
std::deque< XmlElement * > Elements
Definition: XmlElement.h:137
std::pair< std::string, std::string > Attribute
Definition: XmlElement.h:125
std::enable_if<!std::is_enum< T >::value, std::string >::type toString(const T &x)
Definition: StringHelper.h:22
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:105
#define CPPUNIT_NS_END
Definition: Portability.h:106
Attributes m_attributes
Definition: XmlElement.h:135