CAssert.hpp

Go to the documentation of this file.
00001 #ifndef __CAssert__
00002 #define __CAssert__
00003 
00004 //  ===========================================================================
00005 
00006 #include <assert.h>
00007 
00008 //  ===========================================================================
00009 
00010 namespace Exponent
00011 {
00012     namespace Testing
00013     {
00031         class CAssert
00032         {
00033         public:
00034 
00035 //  ===========================================================================
00036 
00040             static void assertFalse() { assert(false); }
00041 
00045             static void assertTrue() { assert(true); }
00046 
00051             static void assertNormalisedSignalRange(const double value) { assert(value >= 0.0 && value <= 1.0); }
00052 
00057             static void assertNotNull(const void *value) { assert(value != NULL); }
00058 
00059 //  ===========================================================================
00060 
00061         };
00062     }
00063 }
00064 #endif  // End of CAssert.hpp

Infinity API - CAssert.hpp Source File generated on 7 Mar 2007