1 #ifndef CPPUNIT_MESSAGE_H 2 #define CPPUNIT_MESSAGE_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 18 #if CPPUNIT_NEED_DLL_DECL 46 explicit Message(
const std::string &shortDescription );
48 Message(
const std::string &shortDescription,
49 const std::string &detail1 );
51 Message(
const std::string &shortDescription,
52 const std::string &detail1,
53 const std::string &detail2 );
55 Message(
const std::string &shortDescription,
56 const std::string &detail1,
57 const std::string &detail2,
58 const std::string &detail3 );
67 const std::string &shortDescription()
const;
72 int detailCount()
const;
79 std::string detailAt(
int index )
const;
94 std::string details()
const;
103 void addDetail(
const std::string &detail );
109 void addDetail(
const std::string &detail1,
110 const std::string &detail2 );
117 void addDetail(
const std::string &detail1,
118 const std::string &detail2,
119 const std::string &detail3 );
124 void addDetail(
const Message &message );
129 void setShortDescription(
const std::string &shortDescription );
135 bool operator ==(
const Message &other )
const;
141 bool operator !=(
const Message &other )
const;
153 #if CPPUNIT_NEED_DLL_DECL 154 #pragma warning( pop ) 158 #endif // CPPUNIT_MESSAGE_H
Details m_details
Definition: Message.h:147
CppUnitDeque< std::string > Details
Definition: Message.h:146
#define CPPUNIT_NS_END
Definition: Portability.h:120
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
Message associated to an Exception.A message is composed of two items:
Definition: Message.h:38
std::string m_shortDescription
Definition: Message.h:144
#define CPPUNIT_API
Definition: CppUnitApi.h:27