Mercurial > hg > orthanc-databases
comparison Framework/Common/BinaryStringValue.cpp @ 244:02cd7254c949
separating class InputFileValue from FileValue
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 13 Apr 2021 18:43:21 +0200 |
parents | f5dc59c56e65 |
children | 9d00e5e073e8 |
comparison
equal
deleted
inserted
replaced
243:f5dc59c56e65 | 244:02cd7254c949 |
---|---|
32 { | 32 { |
33 IValue* BinaryStringValue::Convert(ValueType target) const | 33 IValue* BinaryStringValue::Convert(ValueType target) const |
34 { | 34 { |
35 switch (target) | 35 switch (target) |
36 { | 36 { |
37 case ValueType_File: | |
38 return new FileValue(content_); | |
39 | |
40 case ValueType_Null: | 37 case ValueType_Null: |
41 return new NullValue; | 38 return new NullValue; |
42 | 39 |
43 default: | 40 default: |
44 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadParameterType); | 41 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadParameterType); |