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

O3DBIObject.h

Go to the documentation of this file.
00001 
00041 #if !defined(O3DBI_O3DBIOBJECT_H)
00042 #define O3DBI_O3DBIOBJECT_H
00043 
00044 #include "O3DBITypes.h"
00045 #include "DbC.h"
00046 
00047 #pragma warning(push, 4)
00048 // A library-search record for oci.lib
00049 #pragma comment(lib, "oci.lib")
00050 
00051 #define LARGESTRING_BUFFERSIZE                  512
00052 #define SMALLSTRING_BUFFERSIZE                  256
00053 
00058 class O3DBIObject : public DbC
00059 {
00060 public:
00066     O3DBIObject();
00070     virtual ~O3DBIObject();
00071 
00072 public:
00078     virtual TO3DBIString ToString(void) const;
00085     static void RegisterMemAllocCB(MemAllocFP memallocfp);
00093     static void RegisterReAllocCB(ReAllocFP reallocfp);
00100     static void RegisterMemFreeCB(MemFreeFP memfreefp);
00101 
00102 // DbC class invariant check
00103 #ifdef _DEBUG
00104 
00118     virtual bool IsValid(void) const;
00119 #endif
00120 
00121 // Internal implementation
00122 protected:
00123     static TOCIErrorcode GetLastError(TOCIResult result,
00124         TO3DBIString& errortext);
00125 
00126 protected:
00127     static TOCIEnvironmentHandle    _hEnv;
00128     static TOCIErrorHandle          _hError;
00129     static MemAllocFP               _memallocfp;
00130     static ReAllocFP                _reallocfp;
00131     static MemFreeFP                _memfreefp;
00132 
00133 private:
00134     static UINT                     _nRefCount;
00135 };
00136 
00137 #pragma warning(pop)
00138 #endif // !defined(O3DBI_O3DBIOBJECT_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