comparison OrthancCppClient/Study.cpp @ 500:ec19da4a1fe7 laaw

fix api
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 17 Jul 2013 22:31:22 +0200
parents 7f7a2d174acb
children 50d9660f960c
comparison
equal deleted inserted replaced
498:ddeae3c3a8c2 500:ec19da4a1fe7
55 std::string id = study_["Series"][tmp].asString(); 55 std::string id = study_["Series"][tmp].asString();
56 return new Series(connection_, id.c_str()); 56 return new Series(connection_, id.c_str());
57 } 57 }
58 58
59 Study::Study(const OrthancConnection& connection, 59 Study::Study(const OrthancConnection& connection,
60 const std::string& id) : 60 const char* id) :
61 connection_(connection), 61 connection_(connection),
62 id_(id), 62 id_(id),
63 series_(*this) 63 series_(*this)
64 { 64 {
65 series_.SetThreadCount(connection.GetThreadCount()); 65 series_.SetThreadCount(connection.GetThreadCount());
66 ReadStudy(); 66 ReadStudy();
67 } 67 }
68 68
69 std::string Study::GetMainDicomTag(const char* tag, const char* defaultValue) const 69 const char* Study::GetMainDicomTag(const char* tag, const char* defaultValue) const
70 { 70 {
71 if (study_["MainDicomTags"].isMember(tag)) 71 if (study_["MainDicomTags"].isMember(tag))
72 { 72 {
73 return study_["MainDicomTags"][tag].asString(); 73 return study_["MainDicomTags"][tag].asCString();
74 } 74 }
75 else 75 else
76 { 76 {
77 return defaultValue; 77 return defaultValue;
78 } 78 }