Mercurial > hg > orthanc
comparison OrthancCppClient/SharedLibrary/AUTOGENERATED/OrthancCppClient.h @ 588:a0001c222b32
refactoring of samples
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 02 Oct 2013 15:00:18 +0200 |
parents | 6f01dd71b601 |
children | a00f626290db |
comparison
equal
deleted
inserted
replaced
587:8b6ae96125dc | 588:a0001c222b32 |
---|---|
79 #include <stdlib.h> | 79 #include <stdlib.h> |
80 #include <dlfcn.h> | 80 #include <dlfcn.h> |
81 | 81 |
82 /* cf. http://sourceforge.net/p/predef/wiki/Architectures/ */ | 82 /* cf. http://sourceforge.net/p/predef/wiki/Architectures/ */ |
83 #ifdef __amd64__ | 83 #ifdef __amd64__ |
84 #define LAAW_ORTHANC_CLIENT_DEFAULT_PATH "libOrthancClient.so.0.6" | 84 #define LAAW_ORTHANC_CLIENT_DEFAULT_PATH "libOrthancClient.so" |
85 #else | 85 #else |
86 #define LAAW_ORTHANC_CLIENT_DEFAULT_PATH "libOrthancClient.so.0.6" | 86 #define LAAW_ORTHANC_CLIENT_DEFAULT_PATH "libOrthancClient.so" |
87 #endif | 87 #endif |
88 | 88 |
89 #define LAAW_ORTHANC_CLIENT_CALL_CONV | 89 #define LAAW_ORTHANC_CLIENT_CALL_CONV |
90 #define LAAW_ORTHANC_CLIENT_HANDLE_TYPE void* | 90 #define LAAW_ORTHANC_CLIENT_HANDLE_TYPE void* |
91 #define LAAW_ORTHANC_CLIENT_HANDLE_NULL NULL | 91 #define LAAW_ORTHANC_CLIENT_HANDLE_NULL NULL |
520 friend class ::OrthancClient::Instance; | 520 friend class ::OrthancClient::Instance; |
521 private: | 521 private: |
522 bool isReference_; | 522 bool isReference_; |
523 void* pimpl_; | 523 void* pimpl_; |
524 OrthancConnection(void* pimpl) : isReference_(true), pimpl_(pimpl) {} | 524 OrthancConnection(void* pimpl) : isReference_(true), pimpl_(pimpl) {} |
525 public: | |
525 OrthancConnection(const OrthancConnection& other) { *this = other; } | 526 OrthancConnection(const OrthancConnection& other) { *this = other; } |
526 void operator= (const OrthancConnection& other) { if (!other.isReference_) throw ::OrthancClient::OrthancClientException("Cannot copy a non-reference object"); pimpl_ = other.pimpl_; isReference_ = true; } | 527 void operator= (const OrthancConnection& other) { if (!other.isReference_) throw ::OrthancClient::OrthancClientException("Cannot copy a non-reference object"); pimpl_ = other.pimpl_; isReference_ = true; } |
527 public: | |
528 inline OrthancConnection(const ::std::string& orthancUrl); | 528 inline OrthancConnection(const ::std::string& orthancUrl); |
529 inline OrthancConnection(const ::std::string& orthancUrl, const ::std::string& username, const ::std::string& password); | 529 inline OrthancConnection(const ::std::string& orthancUrl, const ::std::string& username, const ::std::string& password); |
530 inline ~OrthancConnection(); | 530 inline ~OrthancConnection(); |
531 inline LAAW_UINT32 GetThreadCount() const; | 531 inline LAAW_UINT32 GetThreadCount() const; |
532 inline void SetThreadCount(LAAW_UINT32 threadCount); | 532 inline void SetThreadCount(LAAW_UINT32 threadCount); |
550 friend class ::OrthancClient::Instance; | 550 friend class ::OrthancClient::Instance; |
551 private: | 551 private: |
552 bool isReference_; | 552 bool isReference_; |
553 void* pimpl_; | 553 void* pimpl_; |
554 Patient(void* pimpl) : isReference_(true), pimpl_(pimpl) {} | 554 Patient(void* pimpl) : isReference_(true), pimpl_(pimpl) {} |
555 public: | |
555 Patient(const Patient& other) { *this = other; } | 556 Patient(const Patient& other) { *this = other; } |
556 void operator= (const Patient& other) { if (!other.isReference_) throw ::OrthancClient::OrthancClientException("Cannot copy a non-reference object"); pimpl_ = other.pimpl_; isReference_ = true; } | 557 void operator= (const Patient& other) { if (!other.isReference_) throw ::OrthancClient::OrthancClientException("Cannot copy a non-reference object"); pimpl_ = other.pimpl_; isReference_ = true; } |
557 public: | |
558 inline Patient(::OrthancClient::OrthancConnection& connection, const ::std::string& id); | 558 inline Patient(::OrthancClient::OrthancConnection& connection, const ::std::string& id); |
559 inline ~Patient(); | 559 inline ~Patient(); |
560 inline void Reload(); | 560 inline void Reload(); |
561 inline LAAW_UINT32 GetStudyCount(); | 561 inline LAAW_UINT32 GetStudyCount(); |
562 inline ::OrthancClient::Study GetStudy(LAAW_UINT32 index); | 562 inline ::OrthancClient::Study GetStudy(LAAW_UINT32 index); |
575 friend class ::OrthancClient::Instance; | 575 friend class ::OrthancClient::Instance; |
576 private: | 576 private: |
577 bool isReference_; | 577 bool isReference_; |
578 void* pimpl_; | 578 void* pimpl_; |
579 Series(void* pimpl) : isReference_(true), pimpl_(pimpl) {} | 579 Series(void* pimpl) : isReference_(true), pimpl_(pimpl) {} |
580 public: | |
580 Series(const Series& other) { *this = other; } | 581 Series(const Series& other) { *this = other; } |
581 void operator= (const Series& other) { if (!other.isReference_) throw ::OrthancClient::OrthancClientException("Cannot copy a non-reference object"); pimpl_ = other.pimpl_; isReference_ = true; } | 582 void operator= (const Series& other) { if (!other.isReference_) throw ::OrthancClient::OrthancClientException("Cannot copy a non-reference object"); pimpl_ = other.pimpl_; isReference_ = true; } |
582 public: | |
583 inline Series(::OrthancClient::OrthancConnection& connection, const ::std::string& id); | 583 inline Series(::OrthancClient::OrthancConnection& connection, const ::std::string& id); |
584 inline ~Series(); | 584 inline ~Series(); |
585 inline void Reload(); | 585 inline void Reload(); |
586 inline bool Is3DImage(); | 586 inline bool Is3DImage(); |
587 inline LAAW_UINT32 GetInstanceCount(); | 587 inline LAAW_UINT32 GetInstanceCount(); |
609 friend class ::OrthancClient::Instance; | 609 friend class ::OrthancClient::Instance; |
610 private: | 610 private: |
611 bool isReference_; | 611 bool isReference_; |
612 void* pimpl_; | 612 void* pimpl_; |
613 Study(void* pimpl) : isReference_(true), pimpl_(pimpl) {} | 613 Study(void* pimpl) : isReference_(true), pimpl_(pimpl) {} |
614 public: | |
614 Study(const Study& other) { *this = other; } | 615 Study(const Study& other) { *this = other; } |
615 void operator= (const Study& other) { if (!other.isReference_) throw ::OrthancClient::OrthancClientException("Cannot copy a non-reference object"); pimpl_ = other.pimpl_; isReference_ = true; } | 616 void operator= (const Study& other) { if (!other.isReference_) throw ::OrthancClient::OrthancClientException("Cannot copy a non-reference object"); pimpl_ = other.pimpl_; isReference_ = true; } |
616 public: | |
617 inline Study(::OrthancClient::OrthancConnection& connection, const ::std::string& id); | 617 inline Study(::OrthancClient::OrthancConnection& connection, const ::std::string& id); |
618 inline ~Study(); | 618 inline ~Study(); |
619 inline void Reload(); | 619 inline void Reload(); |
620 inline LAAW_UINT32 GetSeriesCount(); | 620 inline LAAW_UINT32 GetSeriesCount(); |
621 inline ::OrthancClient::Series GetSeries(LAAW_UINT32 index); | 621 inline ::OrthancClient::Series GetSeries(LAAW_UINT32 index); |
634 friend class ::OrthancClient::Study; | 634 friend class ::OrthancClient::Study; |
635 private: | 635 private: |
636 bool isReference_; | 636 bool isReference_; |
637 void* pimpl_; | 637 void* pimpl_; |
638 Instance(void* pimpl) : isReference_(true), pimpl_(pimpl) {} | 638 Instance(void* pimpl) : isReference_(true), pimpl_(pimpl) {} |
639 public: | |
639 Instance(const Instance& other) { *this = other; } | 640 Instance(const Instance& other) { *this = other; } |
640 void operator= (const Instance& other) { if (!other.isReference_) throw ::OrthancClient::OrthancClientException("Cannot copy a non-reference object"); pimpl_ = other.pimpl_; isReference_ = true; } | 641 void operator= (const Instance& other) { if (!other.isReference_) throw ::OrthancClient::OrthancClientException("Cannot copy a non-reference object"); pimpl_ = other.pimpl_; isReference_ = true; } |
641 public: | |
642 inline Instance(::OrthancClient::OrthancConnection& connection, const ::std::string& id); | 642 inline Instance(::OrthancClient::OrthancConnection& connection, const ::std::string& id); |
643 inline ~Instance(); | 643 inline ~Instance(); |
644 inline ::std::string GetId() const; | 644 inline ::std::string GetId() const; |
645 inline void SetImageExtractionMode(::Orthanc::ImageExtractionMode mode); | 645 inline void SetImageExtractionMode(::Orthanc::ImageExtractionMode mode); |
646 inline ::Orthanc::ImageExtractionMode GetImageExtractionMode() const; | 646 inline ::Orthanc::ImageExtractionMode GetImageExtractionMode() const; |