containers/array/converters.hpp
Go to the documentation of this file.
1 
8 /*****************************************************************************
9 ** Ifdefs
10 *****************************************************************************/
11 
12 #ifndef ECL_CONTAINERS_ARRAY_CONVERTERS_HPP_
13 #define ECL_CONTAINERS_ARRAY_CONVERTERS_HPP_
14 
15 /*****************************************************************************
16 ** Includes
17 *****************************************************************************/
18 
19 #ifdef ECL_MEM_CHECK_ARRAYS
20  #include "array_mem_check.hpp"
21  #include "array_dynamic_mem_check.hpp"
22 #else
23  #include "array_no_mem_check.hpp"
25 #endif
26 #include <ecl/converters/to_byte_array.hpp>
27 #include <ecl/converters/from_byte_array.hpp>
28 #include <ecl/converters/converter.hpp>
29 #include <ecl/config/macros.hpp>
30 
31 /*****************************************************************************
32 ** Namespaces
33 *****************************************************************************/
34 
35 namespace ecl {
36 
37 /*****************************************************************************
38 ** Byte Array Converters
39 *****************************************************************************/
40 
47 template <typename Integral>
48 class ECL_PUBLIC Converter <Array<char>, Integral > : public converters::IntegralToByteArray< Array<char>, Integral > {};
49 
56 template <typename Integral>
57 class ECL_PUBLIC Converter <Array<signed char>, Integral > : public converters::IntegralToByteArray< Array<signed char>, Integral > {};
58 
59 
66 template <typename Integral>
67 class ECL_PUBLIC Converter <Array<unsigned char>, Integral > : public converters::IntegralToByteArray< Array<unsigned char>, Integral > {};
71 template <typename Integral, std::size_t Size>
72 class ECL_PUBLIC Converter <Integral, Array<char,Size> > : public converters::FromByteArray< Integral, Array<char,Size> > {};
73 
77 template <typename Integral, std::size_t Size>
78 class ECL_PUBLIC Converter <Integral, Array<unsigned char,Size> > : public converters::FromByteArray< Integral, Array<unsigned char,Size> > {};
82 template <typename Integral, std::size_t Size>
83 class ECL_PUBLIC Converter <Integral, Array<signed char,Size> > : public converters::FromByteArray< Integral, Array<signed char,Size> > {};
84 
85 } // namespace ecl
86 
87 #endif /* ECL_CONTAINERS_ARRAY_CONVERTERS_HPP_ */
#define ECL_PUBLIC


xbot_driver
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:27:37