Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

O3DBIDatabase.h

Go to the documentation of this file.
00001 
00041 #if !defined(O3DBI_O3DBIDATABASE_H)
00042 #define O3DBI_O3DBIDATABASE_H
00043 
00044 #include "O3DBIObject.h"
00045 
00046 #pragma warning(push, 4)
00047 
00051 class O3DBIDatabase : public O3DBIObject  
00052 {
00053 public:
00057     O3DBIDatabase();
00069     O3DBIDatabase(PC_TCHAR pchUsername, PC_TCHAR pchPasswd, PC_TCHAR pchHost);
00073     virtual ~O3DBIDatabase();
00074 
00075 public:
00104     void LogOn(PC_TCHAR pchUsername, PC_TCHAR pchPasswd, PC_TCHAR pchHost);
00110     void LogOff(void);
00115     bool IsConnected(void) const;
00121     bool IsConnectionValid(void) const;
00122     virtual TO3DBIString ToString(void) const;
00123 
00124 protected:
00125     void AllocateServiceHandle(void);
00126     void AllocateServerHandle(void);
00127 
00128 protected:
00129     TOCIServiceContextHandle    _hSrvCtx;
00130     TOCIServerHandle            _hServer;
00131     bool                        _bIsConnected;
00132 };
00133 
00134 #pragma warning(pop)
00135 #endif // !defined(O3DBI_O3DBIDATABASE_H)



SourceForge.net Logo Generated on Sun Jan 23 11:36:34 2005 for Oracle Object Oriented Database Interface (O3DBI) by  doxygen 1.3.9.1