106 memcpy(
this,&rhs,
sizeof(
Any));
130 memcpy(
this,&rhs,
sizeof(
Any));
297 return std::to_string(
asINT64());
303 return std::to_string(
asINT32());
309 return std::to_string(
asINT16());
315 return std::to_string(
asINT8());
318 return std::to_string(
asUINT8());
321 return std::to_string(
asFloat());
331 return std::to_string(
asBool());
386 return Any(sValue.c_str());
394 throw makeException<AnyException>(
"Conversion failure: %s",exp.
what());
402 if(type_ == rhs.type_)
440 if(type_ == rhs.type_)
478 if(type_ == rhs.type_)
515 if(type_ == rhs.type_)
std::ostream & operator<<(std::ostream &out, const EMANE::Any &any)
std::uint16_t asUINT16() const
Any(std::int64_t i64Value)
std::uint8_t asUINT8() const
Parameter conversion exception class.
std::string toString() const
bool operator<=(const EMANE::Any &rhs) const
bool operator>(const EMANE::Any &rhs) const
std::int32_t asINT32() const
INETAddr asINETAddr() const
std::string anyTypeAsString(const Any::Type &type)
const char * what() const
Any & operator=(const Any &rhs)
std::string asString() const
std::string str(bool bWithPort=true) const
std::uint64_t asUINT64() const
std::uint32_t asUINT32() const
std::int64_t asINT64() const
bool operator>=(const EMANE::Any &rhs) const
static Any create(std::string sValue, Type type)
std::int8_t asINT8() const
AnyException is thrown when an exception occurs during creation or conversion of an Any...
std::int16_t asINT16() const
The Any class can contain an instance of one of any type in its support type set. ...
bool operator<(const EMANE::Any &rhs) const
Parameter conversion class with range checks.