Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

IDBconnect Class Reference

INDRA Database connection. **. More...

#include "IDBconnect.hxx"

Collaboration diagram for IDBconnect:

Collaboration graph
[legend]
List of all members.

Public Methods

 IDBconnect ()
 ~IDBconnect ()
bool Connect (const char *c_dcs)
bool Disconnect ()
bool Connected () const
CTBodbcConnectDbc ()
void ToStream (ostream &os=cout) const
bool operator! () const
 operator bool () const

Static Public Methods

IDBconnect & Default ()
bool DefaultConnect ()
bool DefaultConnect (const char *c_dcs)
bool DefaultDisconnect ()
bool DefaultConnected ()
void DefaultDCS (const char *c_dcs)
const char * DefaultDCS ()

Private Attributes

CTBodbcConnectmp_dbc

Static Private Attributes

IDBconnect m_defaultdbc
CTBcstring< 256 > mc_defaultdcs

Detailed Description

INDRA Database connection. **.

Definition at line 10 of file IDBconnect.hxx.


Constructor & Destructor Documentation

IDBconnect::IDBconnect
 

Default constructor.

Definition at line 20 of file IDBconnect.cxx.

IDBconnect::~IDBconnect
 

Destructor.

Definition at line 27 of file IDBconnect.cxx.


Member Function Documentation

bool IDBconnect::Connect const char * c_dcs
 

Connect to database with explicit database connect string c_dcs.

Definition at line 35 of file IDBconnect.cxx.

Referenced by DefaultConnect().

bool IDBconnect::Disconnect
 

Disconnect from database.

Definition at line 44 of file IDBconnect.cxx.

Referenced by DefaultDisconnect().

bool IDBconnect::Connected const
 

Returns true if connected.

Definition at line 52 of file IDBconnect.cxx.

Referenced by DefaultConnected(), operator bool(), and operator!().

CTBodbcConnect & IDBconnect::Dbc
 

Access CTBodbcConnect connection object.

Definition at line 60 of file IDBconnect.cxx.

Referenced by IDBrunnote::Execute(), IDBrunmap::HeadTimeFromUrn(), IDBrunmap::OrnFromUrn(), IDBrunmap::TheadFromUrn(), and IDBrunmap::UrnFromHeadTime().

void IDBconnect::ToStream ostream & os = cout const
 

ostream insertion.

Definition at line 72 of file IDBconnect.cxx.

Referenced by operator<<().

bool IDBconnect::operator! const [inline]
 

Negation operator, returns true if not connected.

Definition at line 7 of file IDBconnect.icc.

IDBconnect::operator bool const [inline]
 

bool conversion, returns true if connected.

Definition at line 15 of file IDBconnect.icc.

IDBconnect & IDBconnect::Default [static]
 

Access default connection object.

Definition at line 81 of file IDBconnect.cxx.

bool IDBconnect::DefaultConnect [static]
 

Connect default connection with default database connect string.

Definition at line 89 of file IDBconnect.cxx.

bool IDBconnect::DefaultConnect const char * c_dcs [static]
 

Connect default connection with explict database connect string c_dcs.

Definition at line 97 of file IDBconnect.cxx.

bool IDBconnect::DefaultDisconnect [static]
 

Disconnect default connection.

Definition at line 109 of file IDBconnect.cxx.

bool IDBconnect::DefaultConnected [static]
 

Returns true if default connection is connected.

Definition at line 117 of file IDBconnect.cxx.

void IDBconnect::DefaultDCS const char * c_dcs [static]
 

Set default database connect string to c_dcs.

Definition at line 125 of file IDBconnect.cxx.

const char * IDBconnect::DefaultDCS [static]
 

Access default database connect string.

Definition at line 134 of file IDBconnect.cxx.


Member Data Documentation

CTBodbcConnect* IDBconnect::mp_dbc [private]
 

dbc.

Definition at line 39 of file IDBconnect.hxx.

IDBconnect IDBconnect::m_defaultdbc [static, private]
 

default connection.

Definition at line 140 of file IDBconnect.cxx.

CTBcstring< 256 > IDBconnect::mc_defaultdcs [static, private]
 

default dcs.


The documentation for this class was generated from the following files:
Generated at Fri Oct 24 18:17:36 2003 for IDBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001