Mercurial > hg > orthanc
comparison OrthancCppClient/SharedLibrary/AUTOGENERATED/OrthancCppClient.h @ 591:a00f626290db
better api
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 02 Oct 2013 17:36:14 +0200 |
parents | a0001c222b32 |
children | 9d2592c08919 |
comparison
equal
deleted
inserted
replaced
590:3237eea24487 | 591:a00f626290db |
---|---|
518 friend class ::OrthancClient::Series; | 518 friend class ::OrthancClient::Series; |
519 friend class ::OrthancClient::Study; | 519 friend class ::OrthancClient::Study; |
520 friend class ::OrthancClient::Instance; | 520 friend class ::OrthancClient::Instance; |
521 private: | 521 private: |
522 bool isReference_; | 522 bool isReference_; |
523 OrthancConnection& operator= (const OrthancConnection&); // Assignment is forbidden | |
523 void* pimpl_; | 524 void* pimpl_; |
524 OrthancConnection(void* pimpl) : isReference_(true), pimpl_(pimpl) {} | 525 OrthancConnection(void* pimpl) : isReference_(true), pimpl_(pimpl) {} |
525 public: | 526 public: |
526 OrthancConnection(const OrthancConnection& other) { *this = other; } | 527 /** |
527 void operator= (const OrthancConnection& other) { if (!other.isReference_) throw ::OrthancClient::OrthancClientException("Cannot copy a non-reference object"); pimpl_ = other.pimpl_; isReference_ = true; } | 528 * @brief Construct a new reference to this object. |
529 * | |
530 * Construct a new reference to this object. Pay attention to the fact that when the referenced object is deleted, the content of this object will be invalid. | |
531 * | |
532 * @param other The original object. | |
533 **/ | |
534 OrthancConnection(const OrthancConnection& other) : pimpl_(other.pimpl_), isReference_(true) { } | |
528 inline OrthancConnection(const ::std::string& orthancUrl); | 535 inline OrthancConnection(const ::std::string& orthancUrl); |
529 inline OrthancConnection(const ::std::string& orthancUrl, const ::std::string& username, const ::std::string& password); | 536 inline OrthancConnection(const ::std::string& orthancUrl, const ::std::string& username, const ::std::string& password); |
530 inline ~OrthancConnection(); | 537 inline ~OrthancConnection(); |
531 inline LAAW_UINT32 GetThreadCount() const; | 538 inline LAAW_UINT32 GetThreadCount() const; |
532 inline void SetThreadCount(LAAW_UINT32 threadCount); | 539 inline void SetThreadCount(LAAW_UINT32 threadCount); |
548 friend class ::OrthancClient::Series; | 555 friend class ::OrthancClient::Series; |
549 friend class ::OrthancClient::Study; | 556 friend class ::OrthancClient::Study; |
550 friend class ::OrthancClient::Instance; | 557 friend class ::OrthancClient::Instance; |
551 private: | 558 private: |
552 bool isReference_; | 559 bool isReference_; |
560 Patient& operator= (const Patient&); // Assignment is forbidden | |
553 void* pimpl_; | 561 void* pimpl_; |
554 Patient(void* pimpl) : isReference_(true), pimpl_(pimpl) {} | 562 Patient(void* pimpl) : isReference_(true), pimpl_(pimpl) {} |
555 public: | 563 public: |
556 Patient(const Patient& other) { *this = other; } | 564 /** |
557 void operator= (const Patient& other) { if (!other.isReference_) throw ::OrthancClient::OrthancClientException("Cannot copy a non-reference object"); pimpl_ = other.pimpl_; isReference_ = true; } | 565 * @brief Construct a new reference to this object. |
566 * | |
567 * Construct a new reference to this object. Pay attention to the fact that when the referenced object is deleted, the content of this object will be invalid. | |
568 * | |
569 * @param other The original object. | |
570 **/ | |
571 Patient(const Patient& other) : pimpl_(other.pimpl_), isReference_(true) { } | |
558 inline Patient(::OrthancClient::OrthancConnection& connection, const ::std::string& id); | 572 inline Patient(::OrthancClient::OrthancConnection& connection, const ::std::string& id); |
559 inline ~Patient(); | 573 inline ~Patient(); |
560 inline void Reload(); | 574 inline void Reload(); |
561 inline LAAW_UINT32 GetStudyCount(); | 575 inline LAAW_UINT32 GetStudyCount(); |
562 inline ::OrthancClient::Study GetStudy(LAAW_UINT32 index); | 576 inline ::OrthancClient::Study GetStudy(LAAW_UINT32 index); |
573 friend class ::OrthancClient::Patient; | 587 friend class ::OrthancClient::Patient; |
574 friend class ::OrthancClient::Study; | 588 friend class ::OrthancClient::Study; |
575 friend class ::OrthancClient::Instance; | 589 friend class ::OrthancClient::Instance; |
576 private: | 590 private: |
577 bool isReference_; | 591 bool isReference_; |
592 Series& operator= (const Series&); // Assignment is forbidden | |
578 void* pimpl_; | 593 void* pimpl_; |
579 Series(void* pimpl) : isReference_(true), pimpl_(pimpl) {} | 594 Series(void* pimpl) : isReference_(true), pimpl_(pimpl) {} |
580 public: | 595 public: |
581 Series(const Series& other) { *this = other; } | 596 /** |
582 void operator= (const Series& other) { if (!other.isReference_) throw ::OrthancClient::OrthancClientException("Cannot copy a non-reference object"); pimpl_ = other.pimpl_; isReference_ = true; } | 597 * @brief Construct a new reference to this object. |
598 * | |
599 * Construct a new reference to this object. Pay attention to the fact that when the referenced object is deleted, the content of this object will be invalid. | |
600 * | |
601 * @param other The original object. | |
602 **/ | |
603 Series(const Series& other) : pimpl_(other.pimpl_), isReference_(true) { } | |
583 inline Series(::OrthancClient::OrthancConnection& connection, const ::std::string& id); | 604 inline Series(::OrthancClient::OrthancConnection& connection, const ::std::string& id); |
584 inline ~Series(); | 605 inline ~Series(); |
585 inline void Reload(); | 606 inline void Reload(); |
586 inline bool Is3DImage(); | 607 inline bool Is3DImage(); |
587 inline LAAW_UINT32 GetInstanceCount(); | 608 inline LAAW_UINT32 GetInstanceCount(); |
607 friend class ::OrthancClient::Patient; | 628 friend class ::OrthancClient::Patient; |
608 friend class ::OrthancClient::Series; | 629 friend class ::OrthancClient::Series; |
609 friend class ::OrthancClient::Instance; | 630 friend class ::OrthancClient::Instance; |
610 private: | 631 private: |
611 bool isReference_; | 632 bool isReference_; |
633 Study& operator= (const Study&); // Assignment is forbidden | |
612 void* pimpl_; | 634 void* pimpl_; |
613 Study(void* pimpl) : isReference_(true), pimpl_(pimpl) {} | 635 Study(void* pimpl) : isReference_(true), pimpl_(pimpl) {} |
614 public: | 636 public: |
615 Study(const Study& other) { *this = other; } | 637 /** |
616 void operator= (const Study& other) { if (!other.isReference_) throw ::OrthancClient::OrthancClientException("Cannot copy a non-reference object"); pimpl_ = other.pimpl_; isReference_ = true; } | 638 * @brief Construct a new reference to this object. |
639 * | |
640 * Construct a new reference to this object. Pay attention to the fact that when the referenced object is deleted, the content of this object will be invalid. | |
641 * | |
642 * @param other The original object. | |
643 **/ | |
644 Study(const Study& other) : pimpl_(other.pimpl_), isReference_(true) { } | |
617 inline Study(::OrthancClient::OrthancConnection& connection, const ::std::string& id); | 645 inline Study(::OrthancClient::OrthancConnection& connection, const ::std::string& id); |
618 inline ~Study(); | 646 inline ~Study(); |
619 inline void Reload(); | 647 inline void Reload(); |
620 inline LAAW_UINT32 GetSeriesCount(); | 648 inline LAAW_UINT32 GetSeriesCount(); |
621 inline ::OrthancClient::Series GetSeries(LAAW_UINT32 index); | 649 inline ::OrthancClient::Series GetSeries(LAAW_UINT32 index); |
632 friend class ::OrthancClient::Patient; | 660 friend class ::OrthancClient::Patient; |
633 friend class ::OrthancClient::Series; | 661 friend class ::OrthancClient::Series; |
634 friend class ::OrthancClient::Study; | 662 friend class ::OrthancClient::Study; |
635 private: | 663 private: |
636 bool isReference_; | 664 bool isReference_; |
665 Instance& operator= (const Instance&); // Assignment is forbidden | |
637 void* pimpl_; | 666 void* pimpl_; |
638 Instance(void* pimpl) : isReference_(true), pimpl_(pimpl) {} | 667 Instance(void* pimpl) : isReference_(true), pimpl_(pimpl) {} |
639 public: | 668 public: |
640 Instance(const Instance& other) { *this = other; } | 669 /** |
641 void operator= (const Instance& other) { if (!other.isReference_) throw ::OrthancClient::OrthancClientException("Cannot copy a non-reference object"); pimpl_ = other.pimpl_; isReference_ = true; } | 670 * @brief Construct a new reference to this object. |
671 * | |
672 * Construct a new reference to this object. Pay attention to the fact that when the referenced object is deleted, the content of this object will be invalid. | |
673 * | |
674 * @param other The original object. | |
675 **/ | |
676 Instance(const Instance& other) : pimpl_(other.pimpl_), isReference_(true) { } | |
642 inline Instance(::OrthancClient::OrthancConnection& connection, const ::std::string& id); | 677 inline Instance(::OrthancClient::OrthancConnection& connection, const ::std::string& id); |
643 inline ~Instance(); | 678 inline ~Instance(); |
644 inline ::std::string GetId() const; | 679 inline ::std::string GetId() const; |
645 inline void SetImageExtractionMode(::Orthanc::ImageExtractionMode mode); | 680 inline void SetImageExtractionMode(::Orthanc::ImageExtractionMode mode); |
646 inline ::Orthanc::ImageExtractionMode GetImageExtractionMode() const; | 681 inline ::Orthanc::ImageExtractionMode GetImageExtractionMode() const; |