TdkPostgreSQLConDescriptor Class Reference
[The Utils Module]

Implements a PostgreSQL database descriptor. More...

#include <TdkPostgreSQLConDescriptor.h>

Inheritance diagram for TdkPostgreSQLConDescriptor:

TdkConDescriptor List of all members.

Public Member Functions

 TdkPostgreSQLConDescriptor (const TdkPostgreSQLConDescriptor &desc)
 Copy construtor.
virtual TdkConDescriptorcopy () const
 Copy constructor.
 TdkPostgreSQLConDescriptor (const std::string hostId, const std::string userName, const std::string userPasswd, const std::string databaseName, bool postgis=false)
 Constructor.
 ~TdkPostgreSQLConDescriptor ()
 Destructor.
bool usingPostGIS () const
 Returns whether the PostGIS extension is being used.
virtual TeDatabase * createDatabaseConnection () const
 Creates a TdkPostgreSQLImpl database driver.

Protected Attributes

bool postgis_
 Flag indicating whether PostGIS extension should be used.

Static Private Attributes

static const int _DEFAULT_PORT_NUMBER = 5432

Detailed Description

Implements a PostgreSQL database descriptor.


Constructor & Destructor Documentation

TdkPostgreSQLConDescriptor::TdkPostgreSQLConDescriptor ( const TdkPostgreSQLConDescriptor desc  ) 

Copy construtor.

Parameters:
desc The object descriptor that will be copied.

TdkPostgreSQLConDescriptor::TdkPostgreSQLConDescriptor ( const std::string  hostId,
const std::string  userName,
const std::string  userPasswd,
const std::string  databaseName,
bool  postgis = false 
)

Constructor.

Parameters:
host_id Host name.
user_name User name.
user_passwd User password.
database_name Database name.
postgis Indicates whether the PostGIS Extension should be used.

TdkPostgreSQLConDescriptor::~TdkPostgreSQLConDescriptor (  ) 

Destructor.


Member Function Documentation

TdkConDescriptor * TdkPostgreSQLConDescriptor::copy (  )  const [virtual]

Copy constructor.

Implements TdkConDescriptor.

bool TdkPostgreSQLConDescriptor::usingPostGIS (  )  const

Returns whether the PostGIS extension is being used.

TeDatabase * TdkPostgreSQLConDescriptor::createDatabaseConnection (  )  const [virtual]

Creates a TdkPostgreSQLImpl database driver.

Reimplemented from TdkConDescriptor.


Member Data Documentation

bool TdkPostgreSQLConDescriptor::postgis_ [protected]

Flag indicating whether PostGIS extension should be used.

const int TdkPostgreSQLConDescriptor::_DEFAULT_PORT_NUMBER = 5432 [static, private]


The documentation for this class was generated from the following files:
Generated on Fri Jun 15 16:54:50 2007 for TDK by  doxygen 1.5.2