Mercurial > hg > orthanc
comparison OrthancFramework/Sources/SQLite/FunctionContext.cpp @ 4304:50b0c69b653a
continued abi
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 06 Nov 2020 16:33:52 +0100 |
parents | d25f4c0fa160 |
children | c847b0dfd255 |
comparison
equal
deleted
inserted
replaced
4303:44b53a2c0a13 | 4304:50b0c69b653a |
---|---|
37 #endif | 37 #endif |
38 | 38 |
39 #include "FunctionContext.h" | 39 #include "FunctionContext.h" |
40 #include "OrthancSQLiteException.h" | 40 #include "OrthancSQLiteException.h" |
41 | 41 |
42 #include <cassert> | |
42 #include <string> | 43 #include <string> |
43 | 44 |
44 #include "sqlite3.h" | 45 #include "sqlite3.h" |
45 | 46 |
46 namespace Orthanc | 47 namespace Orthanc |
70 | 71 |
71 ColumnType FunctionContext::GetColumnType(unsigned int index) const | 72 ColumnType FunctionContext::GetColumnType(unsigned int index) const |
72 { | 73 { |
73 CheckIndex(index); | 74 CheckIndex(index); |
74 return static_cast<SQLite::ColumnType>(sqlite3_value_type(argv_[index])); | 75 return static_cast<SQLite::ColumnType>(sqlite3_value_type(argv_[index])); |
76 } | |
77 | |
78 unsigned int FunctionContext::GetParameterCount() const | |
79 { | |
80 return argc_; | |
75 } | 81 } |
76 | 82 |
77 int FunctionContext::GetIntValue(unsigned int index) const | 83 int FunctionContext::GetIntValue(unsigned int index) const |
78 { | 84 { |
79 CheckIndex(index); | 85 CheckIndex(index); |