class DfcDbManager : public CorBase

the main database manager

Inheritance:


Public Methods

void close ()
CorBool connect ( const RWCString& aServer = "" )
DfcDbManager ( const DfcDbManager& aRef )
DfcDbManager ( const RWCString& aDatabase = "", const RWCString& aServer = "" )
virtual RWCString getDbRoot ()
static RWCString getHostname ()
CorBool isValid ()
DfcDb open ( const RWCString& aName )
CorStream open ( const RWCString& aName, CorStream::StreamFlow aState )
static RWCString setHostname ()
virtual ~DfcDbManager ()

Public


Purpose
Query if the database is valid (connection OK, etc)

Purpose
Query the hostname currently working on

Purpose
The d'tor

$Id: DfcDbManager

Protected Methods

DfcDbManager& operator= ( const DfcDbManager& aRef )

Protected


Purpose
Query the database root directory

Private Fields

static RWCString mDfcDbRoot
Purpose
Close the connection to a database again

Private Methods

static RWCString setDbRoot ()

Private


Purpose
Set the hostname currently working on

Purpose
Query the root directory of all local databases

Documentation

the main database manager
$Id: DfcDbManager.h,v 1.5 1997/07/11 08:36:39 mwiedmer Exp $

SYNOPSIS

    #include <DfcDbManager.h>
  
    DfcDbManager myObject;
  

DESCRIPTION
This class is the main DB manager. It knows about all the databases the user could ever want.

CAUTIONS
There can only be one.

EXAMPLES
<optional>

SEE ALSO
CorBase
DfcDb

DfcDbManager( const RWCString& aDatabase = "", const RWCString& aServer = "" )

virtual ~DfcDbManager()

Purpose
The d'tor.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

CorBool connect( const RWCString& aServer = "" )

DfcDb open( const RWCString& aName )

CorStream open( const RWCString& aName, CorStream::StreamFlow aState )

CorBool isValid()

Purpose
Query if the database is valid (connection OK, etc).

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Returns
This function returns corTRUE if the database is valid.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

static RWCString getHostname()

Purpose
Query the hostname currently working on.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Returns
This function returns the string representation of the hostname.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

virtual RWCString getDbRoot()

Purpose
Query the database root directory.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Returns
This function returns the string representation a directory.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

DfcDbManager( const DfcDbManager& aRef )

DfcDbManager& operator=( const DfcDbManager& aRef )

static RWCString setDbRoot()

Purpose
Query the root directory of all local databases. This is cross checked against the value of an environment variable. If that is not set, then it defaults to /dataflow.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Returns
This function returns the string representation of the root directory.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

static RWCString setHostname()

Purpose
Set the hostname currently working on.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

void close()

static RWCString mDfcDbRoot
Purpose
Close the connection to a database again.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.


Direct child classes:
QucDbManager

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de