Logo Search packages:      
Sourcecode: poco version File versions  Download package

Poco::Data::ODBC::Utility Class Reference

Various utility functions. More...

#include <Utility.h>

Collaboration diagram for Poco::Data::ODBC::Utility:

List of all members.

Public Types

typedef DSNMap DriverMap
typedef std::map< std::string,
std::string > 

Static Public Member Functions

static int cDataType (int sqlDataType)
static DSNMap & dataSources (DSNMap &dsnMap)
 Returns driver-attributes map of available ODBC drivers.
static DriverMap & drivers (DriverMap &driverMap)
 Returns true if return code is error.
static bool isError (SQLRETURN rc)
template<typename MapType , typename KeyArgType , typename ValueArgType >
static MapType::iterator mapInsert (MapType &m, const KeyArgType &k, const ValueArgType &v)
 Returns DSN-description map of available ODBC data sources.
static int sqlDataType (int cDataType)
 Returns C data type corresponding to supplied SQL data type.

Static Public Attributes

static const SQLSMALLINT boolDataType
 Returns SQL data type corresponding to supplied C data type.

Static Private Attributes

static const DataTypes _dataTypes
 ODBC size for bool data type.

Detailed Description

Various utility functions.

Definition at line 57 of file Utility.h.

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

Generated by  Doxygen 1.6.0   Back to index