Float Class Reference
[Conversion filters for store tables]

Class for converting float to and from database types. More...

#include <double_filter.h>

Inheritance diagram for Float:

Inheritance graph
[legend]
Collaboration diagram for Float:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Float (float &pFloat)
 Constructor.
virtual void fromDate (const ConvSpec &pSpec, const tm &pDate) throw (StoreableFilterException)
 Convert to C++ type from int value received from database.
virtual void fromDouble (const ConvSpec &pSpec, double pData) throw (StoreableFilterException)
 Convert to C++ type from double value received from database.
virtual void fromInt (const ConvSpec &pSpec, int pData) throw (StoreableFilterException)
 Convert to C++ type from int value received from database.
virtual void fromNull () throw (StoreableFilterException)
 Set C++ type from NULL value.
virtual void fromString (const ConvSpec &pSpec, const std::string &pData) throw (StoreableFilterException)
 Convert to C++ type from std::string value received from database.
virtual bool isNull () const
 Check if C++ type should be stored as NULL value in database.
virtual std::string toString (const ConvSpec &pSpec) const throw (StoreableFilterException)
 Convert type to string.

Detailed Description

Class for converting float to and from database types.

Uses double filter internally.


Constructor & Destructor Documentation

Float float &  pFloat  ) 
 

Constructor.

Parameters:
pFloat reference to object or class member that filer will modify

Member Function Documentation

virtual void fromDate const ConvSpec pSpec,
const tm &  pDate
throw (StoreableFilterException) [virtual]
 

Convert to C++ type from int value received from database.

Should throw dba::StoreableFilterException if conversion fails Must be implemented for BIND_DAT usage

Parameters:
pSpec conversion parameters dependent of used database
pDate source value for conversion

Reimplemented from StoreableFilterBase.

virtual void fromDouble const ConvSpec pSpec,
double  pData
throw (StoreableFilterException) [virtual]
 

Convert to C++ type from double value received from database.

Should throw dba::StoreableFilterException if conversion fails Must be implemented for BIND_FLT usage

Parameters:
pSpec conversion parameters dependent of used database
pData source value for conversion

Reimplemented from StoreableFilterBase.

virtual void fromInt const ConvSpec pSpec,
int  pData
throw (StoreableFilterException) [virtual]
 

Convert to C++ type from int value received from database.

Should throw dba::StoreableFilterException if conversion fails Must be implemented for BIND_INT usage

Parameters:
pSpec conversion parameters dependent of used database
pData source value for conversion

Reimplemented from StoreableFilterBase.

virtual void fromString const ConvSpec pSpec,
const std::string &  pData
throw (StoreableFilterException) [virtual]
 

Convert to C++ type from std::string value received from database.

Should throw dba::StoreableFilterException if conversion fails Must be implemented for BIND_STR usage

Parameters:
pSpec conversion parameters dependent of used database
pData source value for conversion

Reimplemented from StoreableFilterBase.

virtual bool isNull  )  const [virtual]
 

Check if C++ type should be stored as NULL value in database.

Returns:
true if NULL should be stored, false otherwise

Implements StoreableFilterBase.

virtual std::string toString const ConvSpec pSpec  )  const throw (StoreableFilterException) [virtual]
 

Convert type to string.

Should throw dba::StoreableFilterException if conversion fails

Parameters:
pSpec conversion parameters dependent of used database
Returns:
converted value.

Implements StoreableFilterBase.


The documentation for this class was generated from the following file:

Documentation
Quick start
Examples
Search

API Documentation
Class hierarchy
Member index
API Reference
Store filters
Store table macros
Back

Generated by doxygen at Sun Nov 9 02:08:21 2008