SqlHandle.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace AppSecInc {
4 namespace DataSource {
5 
7 class SqlHandle
8 {
9  public:
10  SqlHandle(short type);
11  SqlHandle(SQLHANDLE h, short type);
12  ~SqlHandle();
13  operator SQLHANDLE() { return m_h; }
14  SQLHANDLE* operator &();
15  void Release();
16 private:
17  short m_type;
18  SQLHANDLE m_h;
19 };
20 
21 }}
A smart pointer for an SQLHANDLE.
Definition: SqlHandle.h:7
SQLHANDLE * operator&()
Definition: SqlHandle.cpp:23
SqlHandle(short type)
Definition: SqlHandle.cpp:6
~SqlHandle()
Definition: SqlHandle.cpp:18
void Release()
Definition: SqlHandle.cpp:29


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com