1//------------------------------------------------------------------------------
2//	MessageInt8ItemTest.h
3//
4//------------------------------------------------------------------------------
5
6#ifndef MESSAGEINT8ITEMTEST_H
7#define MESSAGEINT8ITEMTEST_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
22typedef TMessageItemFuncPolicy
23<
24	int8,
25	&BMessage::AddInt8,
26	&BMessage::FindInt8,
27	&BMessage::FindInt8,
28	&BMessage::FindInt8,
29	&BMessage::HasInt8,
30	&BMessage::ReplaceInt8
31>
32TInt8FuncPolicy;
33
34struct TInt8InitPolicy : public ArrayTypeBase<int8>
35{
36	inline static int8 Zero()	{ return 0; }
37	inline static int8 Test1()	{ return 16; }
38	inline static int8 Test2()	{ return 32; }
39	inline static size_t SizeOf(const int8&)	{ return sizeof (int8); }
40	inline static ArrayType Array()
41	{
42		ArrayType array;
43		array.push_back(64);
44		array.push_back(128);
45		array.push_back(255);
46		return array;
47	}
48};
49
50typedef TMessageItemAssertPolicy
51<
52	int8
53>
54TInt8AssertPolicy;
55
56typedef TMessageItemTest
57<
58	int8,
59	B_INT8_TYPE,
60	TInt8FuncPolicy,
61	TInt8InitPolicy,
62	TInt8AssertPolicy
63>
64TMessageInt8ItemTest;
65
66#endif	// MESSAGEINT8ITEMTEST_H
67
68/*
69 * $Log $
70 *
71 * $Id  $
72 *
73 */
74
75