Mercurial > hg > orthanc
comparison Core/SQLite/StatementReference.h @ 1221:2255e66da726
getting rid of the dependency against Boost in the SQLite C++ wrapper
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 10 Nov 2014 17:05:50 +0100 |
parents | 9b9026560a5f |
children | 63d47b1fa239 |
comparison
equal
deleted
inserted
replaced
1220:9b9026560a5f | 1221:2255e66da726 |
---|---|
35 **/ | 35 **/ |
36 | 36 |
37 | 37 |
38 #pragma once | 38 #pragma once |
39 | 39 |
40 #include <boost/noncopyable.hpp> | 40 #include "NonCopyable.h" |
41 | |
41 #include <stdint.h> | 42 #include <stdint.h> |
42 #include <cassert> | 43 #include <cassert> |
43 #include <stdlib.h> | 44 #include <stdlib.h> |
44 | 45 |
45 struct sqlite3; | 46 struct sqlite3; |
47 | 48 |
48 namespace Orthanc | 49 namespace Orthanc |
49 { | 50 { |
50 namespace SQLite | 51 namespace SQLite |
51 { | 52 { |
52 class StatementReference : boost::noncopyable | 53 class StatementReference : NonCopyable |
53 { | 54 { |
54 private: | 55 private: |
55 StatementReference* root_; // Only used for non-root nodes | 56 StatementReference* root_; // Only used for non-root nodes |
56 uint32_t refCount_; // Only used for root node | 57 uint32_t refCount_; // Only used for root node |
57 struct sqlite3_stmt* statement_; | 58 struct sqlite3_stmt* statement_; |