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;

See also: Poco::DynamicAnyHolder::clone()

convert virtual inline

void convert(
    Int8 & param93
) const;

See also: Poco::DynamicAnyHolder::convert()

convert virtual inline

void convert(
    Int16 & param94
) const;

See also: Poco::DynamicAnyHolder::convert()

convert virtual inline

void convert(
    Int32 & param95
) const;

See also: Poco::DynamicAnyHolder::convert()

convert virtual inline

void convert(
    Int64 & param96
) const;

See also: Poco::DynamicAnyHolder::convert()

convert virtual inline

void convert(
    UInt8 & param97
) const;

See also: Poco::DynamicAnyHolder::convert()

convert virtual inline

void convert(
    UInt16 & param98
) const;

See also: Poco::DynamicAnyHolder::convert()

convert virtual inline

void convert(
    UInt32 & param99
) const;

See also: Poco::DynamicAnyHolder::convert()

convert virtual inline

void convert(
    UInt64 & param100
) const;

See also: Poco::DynamicAnyHolder::convert()

convert virtual inline

void convert(
    bool & param101
) const;

See also: Poco::DynamicAnyHolder::convert()

convert virtual inline

void convert(
    float & param102
) const;

See also: Poco::DynamicAnyHolder::convert()

convert virtual inline

void convert(
    double & param103
) const;

See also: Poco::DynamicAnyHolder::convert()

convert virtual inline

void convert(
    char & param104
) const;

See also: Poco::DynamicAnyHolder::convert()

convert virtual inline

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

See also: Poco::DynamicAnyHolder::convert()

convert virtual inline

void convert(
    DateTime & param106
) const;

See also: Poco::DynamicAnyHolder::convert()

convert virtual inline

void convert(
    LocalDateTime & param107
) const;

See also: Poco::DynamicAnyHolder::convert()

convert virtual inline

void convert(
    Timestamp & param108
) const;

See also: Poco::DynamicAnyHolder::convert()

isArray virtual inline

bool isArray() const;

See also: Poco::DynamicAnyHolder::isArray()

isInteger virtual inline

bool isInteger() const;

See also: Poco::DynamicAnyHolder::isInteger()

isNumeric virtual inline

bool isNumeric() const;

See also: Poco::DynamicAnyHolder::isNumeric()

isSigned virtual inline

bool isSigned() const;

See also: Poco::DynamicAnyHolder::isSigned()

isString virtual inline

bool isString() const;

See also: Poco::DynamicAnyHolder::isString()

type virtual inline

const std::type_info & type() const;

See also: Poco::DynamicAnyHolder::type()