CppUnit project page FAQ CppUnit home page

ProtectorContext.h
Go to the documentation of this file.
00001 #ifndef CPPUNIT_PROTECTORCONTEXT_H
00002 #define CPPUNIT_PROTECTORCONTEXT_H
00003 
00004 #include <cppunit/Portability.h>
00005 #include <string>
00006 
00007 #if CPPUNIT_NEED_DLL_DECL
00008 #pragma warning( push )
00009 #pragma warning( disable: 4251 )  // X needs to have dll-interface to be used by clients of class Z
00010 #endif 
00011 
00012 CPPUNIT_NS_BEGIN
00013 
00014 class Test;
00015 class TestResult;
00016 
00017 
00022 class CPPUNIT_API ProtectorContext
00023 {
00024 public:
00025   ProtectorContext( Test *test,
00026                     TestResult *result,
00027                     const std::string &shortDescription )
00028       : m_test( test )
00029       , m_result( result )
00030       , m_shortDescription( shortDescription )
00031   {
00032   }
00033 
00034   Test *m_test;
00035   TestResult *m_result;
00036   std::string m_shortDescription;
00037 };
00038 
00039 
00040 CPPUNIT_NS_END
00041 
00042 #if CPPUNIT_NEED_DLL_DECL
00043 #pragma warning( pop )
00044 #endif
00045 
00046 #endif // CPPUNIT_PROTECTORCONTEXT_H
00047 

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers