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 
   42   explicit Message( 
const std::string &shortDescription );
 
   44   Message( 
const std::string &shortDescription,
 
   45            const std::string &detail1 );
 
   47   Message( 
const std::string &shortDescription,
 
   48            const std::string &detail1,
 
   49            const std::string &detail2 );
 
   51   Message( 
const std::string &shortDescription,
 
   52            const std::string &detail1,
 
   53            const std::string &detail2,
 
   54            const std::string &detail3 );
 
   63   const std::string &shortDescription() 
const;
 
   68   int detailCount() 
const;
 
   75   std::string detailAt( 
int index ) 
const;
 
   90   std::string details() 
const;
 
   99   void addDetail( 
const std::string &detail );
 
  105   void addDetail( 
const std::string &detail1,
 
  106                   const std::string &detail2 );
 
  113   void addDetail( 
const std::string &detail1,
 
  114                   const std::string &detail2,
 
  115                   const std::string &detail3 );
 
  120   void addDetail( 
const Message &message );
 
  125   void setShortDescription( 
const std::string &shortDescription );
 
  131   bool operator ==( 
const Message &other ) 
const;
 
  137   bool operator !=( 
const Message &other ) 
const;
 
  149 #if CPPUNIT_NEED_DLL_DECL 
  150 #pragma warning( pop ) 
  154 #endif  // CPPUNIT_MESSAGE_H