Mercurial > hg > orthanc-webviewer
comparison Orthanc/Core/SQLite/FunctionContext.h @ 162:f17ecfffdc75
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 10 Jul 2017 11:51:20 +0200 |
parents | 3809121c3290 |
children |
comparison
equal
deleted
inserted
replaced
161:4ac039ed55bd | 162:f17ecfffdc75 |
---|---|
34 | 34 |
35 #pragma once | 35 #pragma once |
36 | 36 |
37 #include "Statement.h" | 37 #include "Statement.h" |
38 | 38 |
39 struct sqlite3_context; | |
40 struct Mem; // This corresponds to the opaque type "sqlite3_value" | |
41 | |
42 namespace Orthanc | 39 namespace Orthanc |
43 { | 40 { |
44 namespace SQLite | 41 namespace SQLite |
45 { | 42 { |
46 class FunctionContext : public NonCopyable | 43 class FunctionContext : public NonCopyable |
48 friend class Connection; | 45 friend class Connection; |
49 | 46 |
50 private: | 47 private: |
51 struct sqlite3_context* context_; | 48 struct sqlite3_context* context_; |
52 unsigned int argc_; | 49 unsigned int argc_; |
53 struct ::Mem** argv_; | 50 Internals::SQLiteValue** argv_; |
54 | 51 |
55 void CheckIndex(unsigned int index) const; | 52 void CheckIndex(unsigned int index) const; |
56 | 53 |
57 public: | 54 public: |
58 FunctionContext(struct sqlite3_context* context, | 55 FunctionContext(struct sqlite3_context* context, |
59 int argc, | 56 int argc, |
60 struct ::Mem** argv); | 57 Internals::SQLiteValue** argv); |
61 | 58 |
62 ColumnType GetColumnType(unsigned int index) const; | 59 ColumnType GetColumnType(unsigned int index) const; |
63 | 60 |
64 unsigned int GetParameterCount() const | 61 unsigned int GetParameterCount() const |
65 { | 62 { |