Mercurial > hg > orthanc
comparison Core/SQLite/StatementReference.h @ 3992:f9863630ec7f
working on the shared library for Orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Jun 2020 16:07:01 +0200 |
parents | fa5ad4368fe3 |
children |
comparison
equal
deleted
inserted
replaced
3991:5d2348b39392 | 3992:f9863630ec7f |
---|---|
35 **/ | 35 **/ |
36 | 36 |
37 | 37 |
38 #pragma once | 38 #pragma once |
39 | 39 |
40 #if ORTHANC_SQLITE_STANDALONE == 1 | |
41 # define ORTHANC_PUBLIC | |
42 #else | |
43 # include "../OrthancFramework.h" | |
44 #endif | |
45 | |
40 #include "NonCopyable.h" | 46 #include "NonCopyable.h" |
41 #include "SQLiteTypes.h" | 47 #include "SQLiteTypes.h" |
42 | 48 |
43 #include <stdint.h> | 49 #include <stdint.h> |
44 #include <cassert> | 50 #include <cassert> |
47 | 53 |
48 namespace Orthanc | 54 namespace Orthanc |
49 { | 55 { |
50 namespace SQLite | 56 namespace SQLite |
51 { | 57 { |
52 class StatementReference : NonCopyable | 58 class ORTHANC_PUBLIC StatementReference : NonCopyable |
53 { | 59 { |
54 private: | 60 private: |
55 StatementReference* root_; // Only used for non-root nodes | 61 StatementReference* root_; // Only used for non-root nodes |
56 uint32_t refCount_; // Only used for root node | 62 uint32_t refCount_; // Only used for root node |
57 struct sqlite3_stmt* statement_; | 63 struct sqlite3_stmt* statement_; |