comparison OrthancCppClient/OrthancConnection.h @ 496:7f7a2d174acb laaw

preparing Laaw packaging
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 17 Jul 2013 17:07:12 +0200
parents 482cde3f3c14
children ec19da4a1fe7
comparison
equal deleted inserted replaced
494:012b63028085 496:7f7a2d174acb
36 36
37 #include "Patient.h" 37 #include "Patient.h"
38 38
39 namespace OrthancClient 39 namespace OrthancClient
40 { 40 {
41 class OrthancConnection : 41 class LAAW_API OrthancConnection :
42 public boost::noncopyable, 42 public boost::noncopyable,
43 private Orthanc::ArrayFilledByThreads::IFiller 43 private Orthanc::ArrayFilledByThreads::IFiller
44 { 44 {
45 private: 45 private:
46 Orthanc::HttpClient client_; 46 Orthanc::HttpClient client_;
62 62
63 OrthancConnection(const char* orthancUrl, 63 OrthancConnection(const char* orthancUrl,
64 const char* username, 64 const char* username,
65 const char* password); 65 const char* password);
66 66
67 unsigned int GetThreadCount() const 67 uint32_t GetThreadCount() const
68 { 68 {
69 return patients_.GetThreadCount(); 69 return patients_.GetThreadCount();
70 } 70 }
71 71
72 void SetThreadCount(unsigned int threadCount) 72 void SetThreadCount(uint32_t threadCount)
73 { 73 {
74 patients_.SetThreadCount(threadCount); 74 patients_.SetThreadCount(threadCount);
75 } 75 }
76 76
77 void Reload() 77 void Reload()
82 const Orthanc::HttpClient& GetHttpClient() const 82 const Orthanc::HttpClient& GetHttpClient() const
83 { 83 {
84 return client_; 84 return client_;
85 } 85 }
86 86
87 const std::string& GetOrthancUrl() const 87 const char* GetOrthancUrl() const
88 { 88 {
89 return orthancUrl_; 89 return orthancUrl_.c_str();
90 } 90 }
91 91
92 unsigned int GetPatientCount() 92 uint32_t GetPatientCount()
93 { 93 {
94 return patients_.GetSize(); 94 return patients_.GetSize();
95 } 95 }
96 96
97 Patient& GetPatient(unsigned int index); 97 Patient& GetPatient(uint32_t index);
98 }; 98 };
99 } 99 }