Poco

template < typename T >

class DynamicAnyHolderImpl

Library: Foundation
Package: Core
Header: Poco/DynamicAnyHolder.h

Description

Template based implementation of a DynamicAnyHolder. Conversion work happens in the template specializations of this class.

DynamicAny can be used for any type for which a specialization for DynamicAnyHolderImpl is available.

DynamicAnyHolderImpl throws following exceptions: NotImplementedException (if the specialization for a type does not exist) RangeException (if an attempt is made to assign a numeric value outside of the target min/max limits SyntaxException (if an attempt is made to convert a string containing non-numeric characters to number)

All specializations must additionally implement a public member function:

const T& value() const

returning a const reference to the actual stored value.

Inheritance

Direct Base Classes: DynamicAnyHolder

All Base Classes: DynamicAnyHolder

Member Summary

Member Functions: clone, convert, isArray, isInteger, isNumeric, isSigned, isString, type

Inherited Functions: clone, convert, convertSignedFloatToUnsigned, convertSignedToUnsigned, convertToSmaller, convertToSmallerUnsigned, convertUnsignedToSigned, isArray, isInteger, isNumeric, isSigned, isString, type

Constructors

DynamicAnyHolderImpl inline

DynamicAnyHolderImpl();

Destructor

~DynamicAnyHolderImpl virtual inline

~DynamicAnyHolderImpl();

Member Functions

clone virtual inline

DynamicAnyHolder * clone() const;

convert virtual inline

void convert(
    Int8 & param97
) const;

convert virtual inline

void convert(
    Int16 & param98
) const;

convert virtual inline

void convert(
    Int32 & param99
) const;

convert virtual inline

void convert(
    Int64 & param100
) const;

convert virtual inline

void convert(
    UInt8 & param101
) const;

convert virtual inline

void convert(
    UInt16 & param102
) const;

convert virtual inline

void convert(
    UInt32 & param103
) const;

convert virtual inline

void convert(
    UInt64 & param104
) const;

convert virtual inline

void convert(
    bool & param105
) const;

convert virtual inline

void convert(
    float & param106
) const;

convert virtual inline

void convert(
    double & param107
) const;

convert virtual inline

void convert(
    char & param108
) const;

convert virtual inline

void convert(
    std::string & param109
) const;

convert virtual inline

void convert(
    DateTime & param110
) const;

convert virtual inline

void convert(
    LocalDateTime & param111
) const;

convert virtual inline

void convert(
    Timestamp & param112
) const;

isArray virtual inline

bool isArray() const;

isInteger virtual inline

bool isInteger() const;

isNumeric virtual inline

bool isNumeric() const;

isSigned virtual inline

bool isSigned() const;

isString virtual inline

bool isString() const;

type virtual inline

const std::type_info & type() const;