root / Community Core Vision / Linux / libs / poco / include / CppUnit / Guards.h @ 9

View | Annotate | Download (372 Bytes)

1 9 amit
//
2 9 amit
// Guards.h
3 9 amit
//
4 9 amit
// $Id: //poco/1.3/CppUnit/include/CppUnit/Guards.h#1 $
5 9 amit
//
6 9 amit
7 9 amit
8 9 amit
#ifndef CppUnit_Guards_INCLUDED
9 9 amit
#define CppUnit_Guards_INCLUDED
10 9 amit
11 9 amit
12 9 amit
// Prevent copy construction and assignment for a class
13 9 amit
#define REFERENCEOBJECT(className) \
14 9 amit
private: \
15 9 amit
        className(const className& other); \
16 9 amit
        className& operator = (const className& other);
17 9 amit
18 9 amit
19 9 amit
#endif // CppUnit_Guards_INCLUDED