34 #ifndef EMANEUTILSPARAMETERCONVERT_HEADER_ 35 #define EMANEUTILSPARAMETERCONVERT_HEADER_ 67 Exception(
"ConvertionException",sDescription){}
95 std::int64_t
toINT64(std::int64_t i64Min = std::numeric_limits<std::int64_t>::min(),
96 std::int64_t i64Max = std::numeric_limits<std::int64_t>::max())
const;
109 std::uint64_t
toUINT64(std::uint64_t u64Min = std::numeric_limits<std::uint64_t>::min(),
110 std::uint64_t u64Max = std::numeric_limits<std::uint64_t>::max())
const;
124 std::int32_t
toINT32(std::int32_t i32Min = std::numeric_limits<std::int32_t>::min(),
125 std::int32_t i32Max = std::numeric_limits<std::int32_t>::max())
const;
138 std::uint32_t
toUINT32(std::uint32_t u32Min = std::numeric_limits<std::uint32_t>::min(),
139 std::uint32_t u32Max = std::numeric_limits<std::uint32_t>::max())
const;
152 std::int16_t
toINT16(std::int16_t i16Min = std::numeric_limits<std::int16_t>::min(),
153 std::int16_t i16Max = std::numeric_limits<std::int16_t>::max())
const;
166 std::uint16_t
toUINT16(std::uint16_t u16Min = std::numeric_limits<std::uint16_t>::min(),
167 std::uint16_t u16Max = std::numeric_limits<std::uint16_t>::max())
const;
180 std::int8_t
toINT8(std::int8_t i8Min = std::numeric_limits<std::int8_t>::min(),
181 std::int8_t i8Max = std::numeric_limits<std::int8_t>::max())
const;
194 std::uint8_t
toUINT8(std::uint8_t u8Min = std::numeric_limits<std::uint8_t>::min(),
195 std::uint8_t u8Max = std::numeric_limits<std::uint8_t>::max())
const;
208 float toFloat(
float fMin = std::numeric_limits<float>::lowest(),
209 float fMax = std::numeric_limits<float>::max())
const;
222 double toDouble(
double dMin = std::numeric_limits<double>::lowest(),
223 double dMax = std::numeric_limits<double>::max())
const;
246 std::string sParameter_;
253 #endif //EMANEUTILSPARAMETERCONVERT_HEADER_ INETAddr toINETAddr() const
std::int8_t toINT8(std::int8_t i8Min=std::numeric_limits< std::int8_t >::min(), std::int8_t i8Max=std::numeric_limits< std::int8_t >::max()) const
std::uint8_t toUINT8(std::uint8_t u8Min=std::numeric_limits< std::uint8_t >::min(), std::uint8_t u8Max=std::numeric_limits< std::uint8_t >::max()) const
Parameter conversion exception class.
std::uint16_t toUINT16(std::uint16_t u16Min=std::numeric_limits< std::uint16_t >::min(), std::uint16_t u16Max=std::numeric_limits< std::uint16_t >::max()) const
ConversionException(const std::string &sDescription)
float toFloat(float fMin=std::numeric_limits< float >::lowest(), float fMax=std::numeric_limits< float >::max()) const
Exception base class that allows for type and description information.
std::uint64_t toUINT64(std::uint64_t u64Min=std::numeric_limits< std::uint64_t >::min(), std::uint64_t u64Max=std::numeric_limits< std::uint64_t >::max()) const
std::uint32_t toUINT32(std::uint32_t u32Min=std::numeric_limits< std::uint32_t >::min(), std::uint32_t u32Max=std::numeric_limits< std::uint32_t >::max()) const
double toDouble(double dMin=std::numeric_limits< double >::lowest(), double dMax=std::numeric_limits< double >::max()) const
ParameterConvert(const std::string &sParameter)
std::int16_t toINT16(std::int16_t i16Min=std::numeric_limits< std::int16_t >::min(), std::int16_t i16Max=std::numeric_limits< std::int16_t >::max()) const
std::int32_t toINT32(std::int32_t i32Min=std::numeric_limits< std::int32_t >::min(), std::int32_t i32Max=std::numeric_limits< std::int32_t >::max()) const
Parameter conversion class with range checks.
std::int64_t toINT64(std::int64_t i64Min=std::numeric_limits< std::int64_t >::min(), std::int64_t i64Max=std::numeric_limits< std::int64_t >::max()) const