1 //------------------------------------------------------------------------------ 2 // MessageInt16ItemTest.h 3 // 4 //------------------------------------------------------------------------------ 5 6 #ifndef MESSAGEINT16ITEMTEST_H 7 #define MESSAGEINT16ITEMTEST_H 8 9 // Standard Includes ----------------------------------------------------------- 10 11 // System Includes ------------------------------------------------------------- 12 13 // Project Includes ------------------------------------------------------------ 14 15 // Local Includes -------------------------------------------------------------- 16 #include "MessageItemTest.h" 17 18 // Local Defines --------------------------------------------------------------- 19 20 // Globals --------------------------------------------------------------------- 21 22 typedef TMessageItemFuncPolicy 23 < 24 int16, 25 &BMessage::AddInt16, 26 &BMessage::FindInt16, 27 &BMessage::FindInt16, 28 &BMessage::FindInt16, 29 &BMessage::HasInt16, 30 &BMessage::ReplaceInt16 31 > 32 TInt16FuncPolicy; 33 34 struct TInt16InitPolicy : public ArrayTypeBase<int16> 35 { 36 inline static int16 Zero() { return 0; } 37 inline static int16 Test1() { return 1234; } 38 inline static int16 Test2() { return 5678; } 39 inline static size_t SizeOf(const int16&) { return sizeof (int16); } 40 inline static ArrayType Array() 41 { 42 ArrayType array; 43 array.push_back(123); 44 array.push_back(456); 45 array.push_back(789); 46 return array; 47 } 48 }; 49 50 typedef TMessageItemAssertPolicy 51 < 52 int16 53 > 54 TInt16AssertPolicy; 55 56 typedef TMessageItemTest 57 < 58 int16, 59 B_INT16_TYPE, 60 TInt16FuncPolicy, 61 TInt16InitPolicy, 62 TInt16AssertPolicy 63 > 64 TMessageInt16ItemTest; 65 66 67 #endif // MESSAGEINT16ITEMTEST_H 68 69 /* 70 * $Log $ 71 * 72 * $Id $ 73 * 74 */ 75 76