Mercurial > hg > orthanc
diff OrthancCppClient/OrthancConnection.h @ 540:eaca3d38b2aa laaw
many fixes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 12 Sep 2013 12:55:07 +0200 |
parents | 6e4bd06c17c5 |
children | 8fb9867d8089 |
line wrap: on
line diff
--- a/OrthancCppClient/OrthancConnection.h Mon Aug 12 10:56:35 2013 +0200 +++ b/OrthancCppClient/OrthancConnection.h Thu Sep 12 12:55:07 2013 +0200 @@ -78,9 +78,10 @@ patients_.SetThreadCount(threadCount); } - void Reload() + void Refresh() { - patients_.Reload(); + ReadPatients(); + patients_.Invalidate(); } LAAW_API_INTERNAL const Orthanc::HttpClient& GetHttpClient() const @@ -99,5 +100,15 @@ } Patient& GetPatient(uint32_t index); + + void DeletePatient(uint32_t index) + { + GetPatient(index).Delete(); + Refresh(); + } + + void StoreFile(const char* filename); + + void Store(const void* dicom, uint64_t size); }; }