template class Poco::Dynamic::VarHolderImpl<char>
Overview
#include <VarHolder.h> template <> class VarHolderImpl<char>: public Poco::Dynamic::VarHolder { public: // construction VarHolderImpl(char val); // methods virtual const std::type_info& type() const; virtual void convert(Int8& val) const; virtual void convert(Int16& val) const; virtual void convert(Int32& val) const; virtual void convert(Int64& val) const; virtual void convert(UInt8& val) const; virtual void convert(UInt16& val) const; virtual void convert(UInt32& val) const; virtual void convert(UInt64& val) const; virtual void convert(bool& val) const; virtual void convert(float& val) const; virtual void convert(double& val) const; virtual void convert(char& val) const; virtual void convert(std::string& val) const; virtual VarHolder* clone(Placeholder<VarHolder>* pHolder = 0) const; const char& value() const; virtual bool isArray() const; virtual bool isStruct() const; virtual bool isInteger() const; virtual bool isSigned() const; virtual bool isNumeric() const; virtual bool isBoolean() const; virtual bool isString() const; };
Inherited Members
public: // typedefs typedef Var ArrayValueType; // methods virtual VarHolder* clone(Placeholder<VarHolder>* pHolder = 0) const = 0; virtual const std::type_info& type() const = 0; virtual void convert(Int8& val) const; virtual void convert(Int16& val) const; virtual void convert(Int32& val) const; virtual void convert(Int64& val) const; virtual void convert(UInt8& val) const; virtual void convert(UInt16& val) const; virtual void convert(UInt32& val) const; virtual void convert(UInt64& val) const; virtual void convert(DateTime& val) const; virtual void convert(LocalDateTime& val) const; virtual void convert(Timestamp& val) const; void convert(long& val) const; void convert(unsigned long& val) const; virtual void convert(bool& val) const; virtual void convert(float& val) const; virtual void convert(double& val) const; virtual void convert(char& val) const; virtual void convert(std::string& val) const; virtual void convert(Poco::UTF16String& val) const; virtual bool isArray() const; virtual bool isVector() const; virtual bool isList() const; virtual bool isDeque() const; virtual bool isStruct() const; virtual bool isInteger() const; virtual bool isSigned() const; virtual bool isNumeric() const; virtual bool isBoolean() const; virtual bool isString() const; virtual std::size_t size() const; protected: // methods template <typename T> VarHolder* cloneHolder( Placeholder<VarHolder>* pVarHolder, const T& val ) const; template < typename F, typename T > void convertToSmaller( const F& from, T& to ) const; template < typename F, typename T > void convertToSmallerUnsigned( const F& from, T& to ) const; template < typename F, typename T > void convertSignedToUnsigned( const F& from, T& to ) const; template < typename F, typename T > void convertSignedFloatToUnsigned( const F& from, T& to ) const; template < typename F, typename T > void convertUnsignedToSigned( const F& from, T& to ) const;
Detailed Documentation
Methods
virtual const std::type_info& type() const
Implementation must return the type information (typeid) for the stored content.
virtual void convert(Int8& val) const
Throws BadCastException.
Must be overriden in a type specialization in order to suport the conversion.
virtual void convert(Int16& val) const
Throws BadCastException.
Must be overriden in a type specialization in order to suport the conversion.
virtual void convert(Int32& val) const
Throws BadCastException.
Must be overriden in a type specialization in order to suport the conversion.
virtual void convert(Int64& val) const
Throws BadCastException.
Must be overriden in a type specialization in order to suport the conversion.
virtual void convert(UInt8& val) const
Throws BadCastException.
Must be overriden in a type specialization in order to suport the conversion.
virtual void convert(UInt16& val) const
Throws BadCastException.
Must be overriden in a type specialization in order to suport the conversion.
virtual void convert(UInt32& val) const
Throws BadCastException.
Must be overriden in a type specialization in order to suport the conversion.
virtual void convert(UInt64& val) const
Throws BadCastException.
Must be overriden in a type specialization in order to suport the conversion.
virtual void convert(bool& val) const
Throws BadCastException.
Must be overriden in a type specialization in order to suport the conversion.
virtual void convert(float& val) const
Throws BadCastException.
Must be overriden in a type specialization in order to suport the conversion.
virtual void convert(double& val) const
Throws BadCastException.
Must be overriden in a type specialization in order to suport the conversion.
virtual void convert(char& val) const
Throws BadCastException.
Must be overriden in a type specialization in order to suport the conversion.
virtual void convert(std::string& val) const
Throws BadCastException.
Must be overriden in a type specialization in order to suport the conversion.
virtual VarHolder* clone(Placeholder<VarHolder>* pHolder = 0) const
Implementation must implement this function to deep-copy the VarHolder.
If small object optimization is enabled (i.e. if POCO_NO_SOO is not defined), VarHolder will be instantiated in-place if it’s size is smaller than POCO_SMALL_OBJECT_SIZE.
virtual bool isArray() const
Returns true.
virtual bool isStruct() const
Returns false.
Must be properly overriden in a type specialization in order to suport the diagnostic.
virtual bool isInteger() const
Returns false.
Must be properly overriden in a type specialization in order to suport the diagnostic.
virtual bool isSigned() const
Returns false.
Must be properly overriden in a type specialization in order to suport the diagnostic.
virtual bool isNumeric() const
Returns false.
Must be properly overriden in a type specialization in order to suport the diagnostic.
virtual bool isBoolean() const
Returns false.
Must be properly overriden in a type specialization in order to suport the diagnostic.
virtual bool isString() const
Returns false.
Must be properly overriden in a type specialization in order to suport the diagnostic.