7 #ifndef __FWTOOLS_DYNAMICTYPE_HPP__ 8 #define __FWTOOLS_DYNAMICTYPE_HPP__ 15 #include <boost/mpl/vector.hpp> 17 #include "fwTools/Stringizer.hpp" 18 #include "fwTools/config.hpp" 38 FWTOOLS_API DynamicType(
const DynamicType &);
43 FWTOOLS_API
bool operator==(
const DynamicType &)
const;
48 FWTOOLS_API
bool operator!=(
const DynamicType &)
const;
54 FWTOOLS_API
bool operator<(
const DynamicType& )
const;
74 FWTOOLS_API
unsigned char sizeOf()
const;
82 template<
class NEWTYPE>
83 static void registerNewType(
const std::string &newKey);
87 FWTOOLS_API
virtual ~DynamicType();
90 FWTOOLS_API
const std::string &string()
const;
98 static const std::string string();
104 std::pair<T,T> minMax();
107 FWTOOLS_API
bool isFixedPrecision();
110 FWTOOLS_API
bool isSigned();
112 typedef boost::mpl::vector<
123 >::type SupportedTypes;
128 unsigned char m_sizeof;
149 template<
class KEYTYPE>
154 FWTOOLS_API std::string getString(
const DynamicType &dt);
157 FWTOOLS_API std::string getString(
const std::vector<DynamicType> &dtv);
162 #include "fwTools/DynamicType.hxx"