Initialize libbullet git in 2.0_beta.
[platform/upstream/libbullet.git] / UnitTests / cppunit / src / cppunit / DefaultProtector.h
1 #ifndef CPPUNIT_DEFAULTPROTECTOR_H
2 #define CPPUNIT_DEFAULTPROTECTOR_H
3
4 #include <cppunit/Protector.h>
5
6 CPPUNIT_NS_BEGIN
7
8 /*! \brief Default protector that catch all exceptions (Implementation).
9  *
10  * Implementation detail.
11  * \internal This protector catch and generate a failure for the following
12  * exception types:
13  * - Exception
14  * - std::exception
15  * - ...
16  */
17 class DefaultProtector : public Protector
18 {
19 public:
20   bool protect( const Functor &functor,
21                 const ProtectorContext &context );
22 };
23
24 CPPUNIT_NS_END
25
26 #endif // CPPUNIT_DEFAULTPROTECTOR_H
27