12 #ifndef ECL_CONTAINERS_STENCIL_CONVERTERS_HPP_ 13 #define ECL_CONTAINERS_STENCIL_CONVERTERS_HPP_ 19 #include <ecl/config/macros.hpp> 20 #include <ecl/converters/from_byte_array.hpp> 21 #include <ecl/converters/to_byte_array.hpp> 34 template<
typename Type, std::
size_t Size>
class Array;
43 template <
typename Integral, std::
size_t Size>
44 class ECL_PUBLIC Converter < Stencil< Array<char,Size> >, Integral > :
public converters::IntegralToByteArray< Stencil< Array<char,Size> >, Integral > {};
49 template <
typename Integral, std::
size_t Size>
50 class ECL_PUBLIC Converter < Stencil< Array<unsigned char,Size> >, Integral > :
public converters::IntegralToByteArray< Stencil< Array<unsigned char,Size> >, Integral > {};
55 template <
typename Integral, std::
size_t Size>
56 class ECL_PUBLIC Converter < Stencil< Array<signed char,Size> >, Integral > :
public converters::IntegralToByteArray< Stencil< Array<signed char,Size> >, Integral > {};
61 template <
typename Integral, std::
size_t Size>
62 class ECL_PUBLIC Converter <Integral, Stencil< Array<char,Size> > > :
public converters::FromByteArray< Integral, Stencil< Array<char,Size> > > {};
67 template <
typename Integral, std::
size_t Size>
68 class ECL_PUBLIC Converter <Integral, Stencil< Array<unsigned char,Size> > > :
public converters::FromByteArray< Integral, Stencil< Array<unsigned char,Size> > > {};
73 template <
typename Integral, std::
size_t Size>
74 class ECL_PUBLIC Converter <Integral, Stencil< Array<signed char,Size> > > :
public converters::FromByteArray< Integral, Stencil< Array<signed char,Size> > > {};
80 class ECL_PUBLIC Converter< Stencil<
std::vector<unsigned char> >, unsigned int > :
public converters::IntegralToByteArray< Stencil< std::vector<unsigned char> >, unsigned int > {};
86 class ECL_PUBLIC Converter< Stencil< std::vector<unsigned char> >, int > :
public converters::IntegralToByteArray< Stencil< std::vector<unsigned char> >, int > {};
92 class ECL_PUBLIC Converter< Stencil< std::vector<unsigned char> >, long > :
public converters::IntegralToByteArray< Stencil< std::vector<unsigned char> >, long > {};
98 class ECL_PUBLIC Converter< Stencil< std::vector<unsigned char> >, long long > :
public converters::IntegralToByteArray< Stencil< std::vector<unsigned char> >, long long > {};
103 template <
typename Integral>
104 class ECL_PUBLIC Converter <Integral, Stencil< const unsigned char* > > :
public converters::FromByteArray< Integral, Stencil< const unsigned char* > > {};
Windows over ecl type containers.