Mercurial > hg > orthanc
comparison Core/SerializationToolbox.h @ 2662:47d812308d63 jobs
serialization of DicomModification
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 07 Jun 2018 17:47:41 +0200 |
parents | a6d3e45eeff5 |
children | 218e2c864d1d |
comparison
equal
deleted
inserted
replaced
2660:27b7884512be | 2662:47d812308d63 |
---|---|
31 **/ | 31 **/ |
32 | 32 |
33 | 33 |
34 #pragma once | 34 #pragma once |
35 | 35 |
36 #include "DicomFormat/DicomTag.h" | |
37 | |
36 #include <json/value.h> | 38 #include <json/value.h> |
37 #include <list> | 39 #include <list> |
38 #include <set> | |
39 | 40 |
40 namespace Orthanc | 41 namespace Orthanc |
41 { | 42 { |
42 namespace SerializationToolbox | 43 namespace SerializationToolbox |
43 { | 44 { |
63 | 64 |
64 void ReadSetOfStrings(std::set<std::string>& target, | 65 void ReadSetOfStrings(std::set<std::string>& target, |
65 const Json::Value& value, | 66 const Json::Value& value, |
66 const std::string& field); | 67 const std::string& field); |
67 | 68 |
69 void ReadSetOfTags(std::set<DicomTag>& target, | |
70 const Json::Value& value, | |
71 const std::string& field); | |
72 | |
68 void WriteArrayOfStrings(Json::Value& target, | 73 void WriteArrayOfStrings(Json::Value& target, |
69 const std::vector<std::string>& values, | 74 const std::vector<std::string>& values, |
70 const std::string& field); | 75 const std::string& field); |
71 | 76 |
72 void WriteSetOfStrings(Json::Value& target, | 77 void WriteSetOfStrings(Json::Value& target, |
73 const std::set<std::string>& values, | 78 const std::set<std::string>& values, |
74 const std::string& field); | 79 const std::string& field); |
80 | |
81 void WriteSetOfTags(Json::Value& target, | |
82 const std::set<DicomTag>& tags, | |
83 const std::string& field); | |
75 } | 84 } |
76 } | 85 } |