1 #ifndef guard_mock_array_hpp
2 #define guard_mock_array_hpp
3 #include /**/ "ace/pre.h"
7 * @brief Mock an IDL-generated array
9 * @author Carlos O'Ryan
11 #include "testing_counters.hpp"
15 typedef unsigned long my_array
[5];
16 typedef unsigned long my_array_slice
;
17 struct my_array_tag
{};
22 template<typename T
, typename T_slice
, typename TAG
>
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
);
32 my_array_slice
* _tao_destination
,
33 my_array_slice
const * _tao_source
);
35 // TODO This is a new function
37 my_array_slice
* _tao_slice
);
43 #include /**/ "ace/post.h"
44 #endif // guard_mock_array_hpp