autoregister.h

Go to the documentation of this file.
00001 
00016 #ifndef _DLR_TEST_AUTOREGISTER_H_
00017 #define _DLR_TEST_AUTOREGISTER_H_
00018 
00019 #include <set>
00020 
00021 namespace dlr {
00022 
00023   namespace test {
00024 
00025     // Forward declaration.
00026     class RunnableObject;
00027 
00028 
00029     void
00030     private_registerTestFixture(RunnableObject& testFixture);
00031 
00032     void
00033     private_unregisterTestFixture(RunnableObject& testFixture);
00034     
00035       
00036 #ifndef DLR_TEST_NO_AUTOMATIC_REGISTRATION
00037 
00047     inline void
00048     registerTestFixture(RunnableObject& testFixture) {
00049       private_registerTestFixture(testFixture);
00050     }
00051 
00052 
00063     inline void
00064     unregisterTestFixture(RunnableObject& testFixture) {
00065       private_unregisterTestFixture(testFixture);
00066     }
00067 
00068 #else /* #ifndef DLR_TEST_NO_AUTOMATIC_REGISTRATION */
00069 
00070     inline void
00071     registerTestFixture(RunnableObject&) {}
00072 
00073     inline void
00074     unregisterTestFixture(RunnableObject&) {}
00075     
00076 #endif /* #ifndef DLR_TEST_NO_AUTOMATIC_REGISTRATION */
00077 
00078   } // namespace test
00079 
00080 } // namespace dlr
00081 
00082 #endif // #ifdef _DLR_TEST_AUTOREGISTER_H_

Generated on Wed Nov 25 01:02:07 2009 for dlrTest Utility Library by  doxygen 1.5.8