Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Sequence_Unit_Tests / mock_array.hpp
blob87985533956ac187101b4d16c2403609234f8be0
1 #ifndef guard_mock_array_hpp
2 #define guard_mock_array_hpp
3 #include /**/ "ace/pre.h"
4 /**
5 * @file
7 * @brief Mock an IDL-generated array
9 * @author Carlos O'Ryan
11 #include "testing_counters.hpp"
13 #include <algorithm>
15 typedef unsigned long my_array[5];
16 typedef unsigned long my_array_slice;
17 struct my_array_tag {};
19 namespace TAO
22 template<typename T, typename T_slice, typename TAG>
23 struct Array_Traits;
25 template<>
26 struct Array_Traits<my_array,my_array_slice,my_array_tag>
28 static my_array_slice * alloc();
29 static void free(my_array_slice * _tao_slice);
30 static my_array_slice * dup(my_array_slice const * _tao_source);
31 static void copy(
32 my_array_slice * _tao_destination,
33 my_array_slice const * _tao_source);
35 // TODO This is a new function
36 static void zero(
37 my_array_slice * _tao_slice);
43 #include /**/ "ace/post.h"
44 #endif // guard_mock_array_hpp