ANNA Suite  2020b
Multipurpose development suite for Telco applications
Descriptor.hpp
Go to the documentation of this file.
1 // ANNA - Anna is Not Nothingness Anymore //
2 // //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
4 // //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7 
8 
9 #ifndef anna_dbms_oracle_Descriptor_hpp
10 #define anna_dbms_oracle_Descriptor_hpp
11 
13 
14 struct OCIEnv;
15 struct OCIError;
16 struct OCIBind;
17 struct OCILobLocator;
18 struct OCISvcCtx;
19 
20 namespace anna {
21 
22 namespace dbms {
23 
24 namespace oracle {
25 
26 class Database;
27 class Connection;
28 
29 struct Descriptor {
30  dvoid** reference;
31  OCIEnv* env;
32  OCIError* error;
33  OCISvcCtx* context;
34  int type;
35 
36  Descriptor(dvoid** _handle) : reference(_handle) {
37  *reference = NULL; env = NULL; error = NULL; context = NULL; type = -1;
38  }
39  virtual ~Descriptor();
40 
41  void allocate(Database&, Connection*, const int type) noexcept(false);
42 };
43 
44 }
45 }
46 }
47 
48 #endif
49 
Definition: Connection.hpp:39
OCISvcCtx * context
Definition: Descriptor.hpp:33
int type
Definition: Descriptor.hpp:34
Definition: Descriptor.hpp:29
dvoid ** reference
Definition: Descriptor.hpp:30
Descriptor(dvoid **_handle)
Definition: Descriptor.hpp:36
OCIEnv * env
Definition: Descriptor.hpp:31
void allocate(Database &, Connection *, const int type) noexcept(false)
Definition: app.hpp:12
OCIError * error
Definition: Descriptor.hpp:32
Definition: Database.hpp:30