OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ODBCRecordSet Class Reference

#include <odbcxx.h>

+ Collaboration diagram for ODBCRecordSet:

Public Member Functions

void rewind (void)
 
int fetch_row (void)
 
const char * get_value (const char *fieldname)
 
void release (void)
 
template<class T >
bool foreach_row (bool(T::*cb)(void), T *data)
 
template<class T >
bool foreach_column (bool(T::*cb)(const char *, const char *), T *data)
 

Private Member Functions

void alloc_and_bind_cols (int ncols)
 
 ODBCRecordSet (ODBCConnection *)
 
 ~ODBCRecordSet ()
 
void get_column_labels (void)
 
int get_col_by_name (const char *)
 

Private Attributes

ODBCConnectionconn
 
SQLHSTMT sql_hstmt
 
int ncols
 
int arrsize
 
char ** column_labels
 
int * column_datatype
 
char ** values
 
int * vsizes
 

Friends

class ODBCConnection
 

Detailed Description

Definition at line 68 of file odbcxx.h.

Constructor & Destructor Documentation

ODBCRecordSet::ODBCRecordSet ( ODBCConnection )
private
ODBCRecordSet::~ODBCRecordSet ( )
private

Member Function Documentation

void ODBCRecordSet::alloc_and_bind_cols ( int  ncols)
private
int ODBCRecordSet::fetch_row ( void  )

+ Here is the caller graph for this function:

template<class T >
bool ODBCRecordSet::foreach_column ( bool(T::*)(const char *, const char *)  cb,
T *  data 
)
inline

Definition at line 114 of file odbcxx.h.

References column_labels, get_column_labels(), ncols, and values.

template<class T >
bool ODBCRecordSet::foreach_row ( bool(T::*)(void)  cb,
T *  data 
)
inline

Definition at line 102 of file odbcxx.h.

References fetch_row().

int ODBCRecordSet::get_col_by_name ( const char *  )
private
void ODBCRecordSet::get_column_labels ( void  )
private

+ Here is the caller graph for this function:

const char* ODBCRecordSet::get_value ( const char *  fieldname)
void ODBCRecordSet::release ( void  )
void ODBCRecordSet::rewind ( void  )

Friends And Related Function Documentation

friend class ODBCConnection
friend

Definition at line 70 of file odbcxx.h.

Member Data Documentation

int ODBCRecordSet::arrsize
private

Definition at line 76 of file odbcxx.h.

int* ODBCRecordSet::column_datatype
private

Definition at line 78 of file odbcxx.h.

char** ODBCRecordSet::column_labels
private

Definition at line 77 of file odbcxx.h.

ODBCConnection* ODBCRecordSet::conn
private

Definition at line 72 of file odbcxx.h.

int ODBCRecordSet::ncols
private

Definition at line 75 of file odbcxx.h.

SQLHSTMT ODBCRecordSet::sql_hstmt
private

Definition at line 73 of file odbcxx.h.

char** ODBCRecordSet::values
private

Definition at line 79 of file odbcxx.h.

int* ODBCRecordSet::vsizes
private

Definition at line 80 of file odbcxx.h.


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