Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cODBC.h
Go to the documentation of this file.
1 //
4 //
5 #ifndef _INC_cODBC_H
6 #define _INC_cODBC_H
7 #ifndef NO_PRAGMA_ONCE
8 #pragma once
9 #endif
10 #include "cSQLMgr.h"
11 
12 #ifdef USE_SQL
14 
15 namespace GrayLib
16 {
18 
19  class GRAYLIB_LINK cODBCDriver : public cSQLDriver, public cSingleton<cODBCDriver>
20  {
26 
27  typedef cSQLDriver SUPER_t;
29  public:
30  static const char* k_DriverName;
31  public:
32  cODBCDriver();
33  virtual ~cODBCDriver();
34 
35  virtual bool AllocISQLDriver() override;
36  virtual int TestConnectionStringMatch(const cSQLConnectionString& rConnectionString) override;
37 
38  static void GRAYCALL AttachSQLMgr();
39  // static void GRAYCALL DetachSQLMgr();
40 
42  };
43 }
44 
45 #endif
46 #endif
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
#define CHEAPOBJECT_IMPL
Definition: cHeapObject.h:32
Definition: cODBC.h:20
static const char * k_DriverName
= "ODBC";
Definition: cODBC.h:30
Definition: cSQLBase.h:30
Definition: cSQLMgr.h:25
Definition: cSingleton.h:127
Definition: cMesh.h:22
UNITTEST2_PREDEF(cQuadtree)