Made to Order Software Corporation Logo

odbcpp: odbcpp Namespace Reference

The odbcpp wrapper is fully enclosed in the odbcpp namespace. More...

Classes

class  buffer
 Class used to manage a block of memory. More...

class  connection
 Handles a connection between you and the database server. More...

class  diag_t
 Records the data read from the diagnostic function. More...

class  diagnostic
 A class holding the information of a complete diagnostic. More...

class  dynamic_record
 A record that is automatically linked at run time. More...

class  environment
 An ODBC environment. More...

class  handle
 Manage an ODBC handle. More...

class  object
 Base class used to handle smart pointers. More...

class  odbcpp_error
 The odbcpp exception object. More...

class  record
 Manage a static (pre-bound) record to fetch data. More...

class  record_base
 The record base class, used mainly internally. More...

class  smartptr
 Ensure proper management of objects. More...

class  statement
 The handle to run SQL statements. More...

Typedefs

typedef buffer< char > buffer_char_t
 A specialization of the buffer template of type char.

typedef std::vector< diag_tdiag_vector_t
 A vector of diagnostics; used by the diagnostic class.

Functions

const char * get_version ()
 Retrieve the library version.

SQLPOINTER int_to_ptr (SQLINTEGER integer)
 Convert an integer to a pointer.


Detailed Description

The odbcpp wrapper is fully enclosed in the odbcpp namespace.


Typedef Documentation

A specialization of the buffer template of type char.

Definition at line 89 of file record.h.

typedef std::vector<diag_t> odbcpp::diag_vector_t

A vector of diagnostics; used by the diagnostic class.

Definition at line 49 of file diagnostic.h.


Function Documentation

const char * odbcpp::get_version (  ) 

Retrieve the library version.

Returns:
a constant string pointer that represents the version of the library.

Definition at line 129 of file odbcpp.cpp.

SQLPOINTER odbcpp::int_to_ptr ( SQLINTEGER  integer  ) 

Convert an integer to a pointer.

Some compilers rightfully generate warnings and/or errors when simply casting an integer to a pointer. This is done with all the setattr() calls.

Returns:
a pointer with the content of the integer

Definition at line 143 of file odbcpp.cpp.

References odbcpp::odbcpp_error::ODBCPP_INTERNAL.

Referenced by odbcpp::statement::set_attr(), and odbcpp::environment::set_attr().

Generated on Mon Sep 19 12:52:27 2011 for odbcpp by  doxygen 1.6.3