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"
22 #else
23  #include "array_no_mem_check.hpp"
25 #endif
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_ */
array_no_mem_check.hpp
Fixed size containers with a few bells and whistles.
array_dynamic_no_mem_check.hpp
Dynamically sized containers with a few bells and whistles.
to_byte_array.hpp
converter.hpp
array_mem_check.hpp
Fixed size containers with a few bells and whistles.
from_byte_array.hpp
array_dynamic_mem_check.hpp
Dynamically sized containers with a few bells and whistles.
ecl::Array
Fixed size container with a few bells and whistles.
Definition: array_no_mem_check.hpp:112
macros.hpp
ecl
Embedded control libraries.
ecl::Converter
ECL_PUBLIC
#define ECL_PUBLIC


ecl_containers
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:34