Mercurial > hg > orthanc
comparison OrthancCppClient/Patient.cpp @ 492:f3d4193c571a
switch to jsoncpp-0.6.0-rc2
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 17 Jul 2013 11:19:09 +0200 |
parents | 0cd977e94479 |
children | 7f7a2d174acb |
comparison
equal
deleted
inserted
replaced
491:c56e9480183a | 492:f3d4193c571a |
---|---|
48 } | 48 } |
49 } | 49 } |
50 | 50 |
51 Orthanc::IDynamicObject* Patient::GetFillerItem(size_t index) | 51 Orthanc::IDynamicObject* Patient::GetFillerItem(size_t index) |
52 { | 52 { |
53 return new Study(connection_, patient_["Studies"][index].asString()); | 53 Json::Value::ArrayIndex tmp = static_cast<Json::Value::ArrayIndex>(index); |
54 return new Study(connection_, patient_["Studies"][tmp].asString()); | |
54 } | 55 } |
55 | 56 |
56 Patient::Patient(const OrthancConnection& connection, | 57 Patient::Patient(const OrthancConnection& connection, |
57 const std::string& id) : | 58 const std::string& id) : |
58 connection_(connection), | 59 connection_(connection), |