My Project  UNKNOWN_GIT_VERSION
ParenPrinter.h
Go to the documentation of this file.
1 #ifndef __cxxtest__ParenPrinter_h__
2 #define __cxxtest__ParenPrinter_h__
3 
4 //
5 // The ParenPrinter is identical to the ErrorPrinter, except it
6 // prints the line number in a format expected by some compilers
7 // (notably, MSVC).
8 //
9 
10 #include <cxxtest/ErrorPrinter.h>
11 
12 namespace CxxTest
13 {
14  class ParenPrinter : public ErrorPrinter
15  {
16  public:
17  ParenPrinter( CXXTEST_STD(ostream) &o = CXXTEST_STD(cout) ) : ErrorPrinter( o, "(", ")" ) {}
18  };
19 }
20 
21 #endif // __cxxtest__ParenPrinter_h__
CxxTest::ParenPrinter::ParenPrinter
ParenPrinter(CXXTEST_STD(ostream) &o=CXXTEST_STD(cout))
Definition: ParenPrinter.h:17
CXXTEST_STD
#define CXXTEST_STD(x)
Definition: StdValueTraits.h:16
ErrorPrinter.h
CxxTest
Definition: Descriptions.cpp:6
CxxTest::ParenPrinter
Definition: ParenPrinter.h:14
CxxTest::ErrorPrinter
Definition: ErrorPrinter.h:28