Mercurial > hg > orthanc-databases
comparison Framework/Common/GenericFormatter.cpp @ 299:70685295a373
added OrthancDatabases::EnumerationToString(ValueType)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 01 Jul 2021 16:25:41 +0200 |
parents | 86265ef5f3e3 |
children | 3a52e27a2d80 |
comparison
equal
deleted
inserted
replaced
298:8f655f308de9 | 299:70685295a373 |
---|---|
49 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); | 49 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); |
50 } | 50 } |
51 } | 51 } |
52 else | 52 else |
53 { | 53 { |
54 if (allNames_.find(source) != allNames_.end()) | |
55 { | |
56 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls, | |
57 "Parameter ${" + source + "} registered twice"); | |
58 } | |
59 | |
60 allNames_.insert(source); | |
61 | |
54 switch (dialect_) | 62 switch (dialect_) |
55 { | 63 { |
56 case Dialect_PostgreSQL: | 64 case Dialect_PostgreSQL: |
57 target = "$" + boost::lexical_cast<std::string>(parametersName_.size() + 1); | 65 target = "$" + boost::lexical_cast<std::string>(parametersName_.size() + 1); |
58 break; | 66 break; |