Mercurial > hg > orthanc-databases
comparison Framework/Common/GenericFormatter.h @ 186:6fe74f9a516e
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Dec 2020 15:05:19 +0100 |
parents | 4cd7e45b671e |
children | 3236894320d6 |
comparison
equal
deleted
inserted
replaced
185:7c46155b5bb4 | 186:6fe74f9a516e |
---|---|
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "Query.h" | 24 #include "Query.h" |
25 | 25 |
26 #include <Compatibility.h> | |
27 | |
26 namespace OrthancDatabases | 28 namespace OrthancDatabases |
27 { | 29 { |
28 class GenericFormatter : public Query::IParameterFormatter | 30 class GenericFormatter : public Query::IParameterFormatter |
29 { | 31 { |
30 private: | 32 private: |
36 explicit GenericFormatter(Dialect dialect) : | 38 explicit GenericFormatter(Dialect dialect) : |
37 dialect_(dialect) | 39 dialect_(dialect) |
38 { | 40 { |
39 } | 41 } |
40 | 42 |
41 void Format(std::string& target, | 43 virtual void Format(std::string& target, |
42 const std::string& source, | 44 const std::string& source, |
43 ValueType type); | 45 ValueType type) ORTHANC_OVERRIDE; |
44 | 46 |
45 size_t GetParametersCount() const | 47 size_t GetParametersCount() const |
46 { | 48 { |
47 return parametersName_.size(); | 49 return parametersName_.size(); |
48 } | 50 } |