CppUnit project page
FAQ
CppUnit home page
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
cppunit
ProtectorContext.h
Go to the documentation of this file.
1
#ifndef CPPUNIT_PROTECTORCONTEXT_H
2
#define CPPUNIT_PROTECTORCONTEXT_H
3
4
#include <
cppunit/Portability.h
>
5
#include <string>
6
7
#if CPPUNIT_NEED_DLL_DECL
8
#pragma warning( push )
9
#pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z
10
#endif
11
12
CPPUNIT_NS_BEGIN
13
14
class
Test
;
15
class
TestResult
;
16
17
22
class
CPPUNIT_API
ProtectorContext
23
{
24
public
:
25
ProtectorContext
(
Test
*test,
26
TestResult
*result,
27
const
std::string &shortDescription )
28
: m_test( test )
29
, m_result( result )
30
, m_shortDescription( shortDescription )
31
{
32
}
33
34
Test
*
m_test
;
35
TestResult
*
m_result
;
36
std::string
m_shortDescription
;
37
};
38
39
40
CPPUNIT_NS_END
41
42
#if CPPUNIT_NEED_DLL_DECL
43
#pragma warning( pop )
44
#endif
45
46
#endif // CPPUNIT_PROTECTORCONTEXT_H
47
hosts this site.
Send comments to:
CppUnit Developers