//------------------------------------------------------------------------------ // MessageInt8ItemTest.h // //------------------------------------------------------------------------------ #ifndef MESSAGEINT8ITEMTEST_H #define MESSAGEINT8ITEMTEST_H // Standard Includes ----------------------------------------------------------- // System Includes ------------------------------------------------------------- // Project Includes ------------------------------------------------------------ // Local Includes -------------------------------------------------------------- #include "MessageItemTest.h" // Local Defines --------------------------------------------------------------- // Globals --------------------------------------------------------------------- typedef TMessageItemFuncPolicy < int8, &BMessage::AddInt8, &BMessage::FindInt8, &BMessage::FindInt8, &BMessage::FindInt8, &BMessage::HasInt8, &BMessage::ReplaceInt8 > TInt8FuncPolicy; struct TInt8InitPolicy : public ArrayTypeBase { inline static int8 Zero() { return 0; } inline static int8 Test1() { return 16; } inline static int8 Test2() { return 32; } inline static size_t SizeOf(const int8&) { return sizeof (int8); } inline static ArrayType Array() { ArrayType array; array.push_back(64); array.push_back(128); array.push_back(255); return array; } }; typedef TMessageItemAssertPolicy < int8 > TInt8AssertPolicy; typedef TMessageItemTest < int8, B_INT8_TYPE, TInt8FuncPolicy, TInt8InitPolicy, TInt8AssertPolicy > TMessageInt8ItemTest; #endif // MESSAGEINT8ITEMTEST_H /* * $Log $ * * $Id $ * */