comparison Core/DicomNetworking/DicomUserConnection.cpp @ 2587:bf14b037731f jobs

new constructor for DicomUserConnection
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 14 May 2018 21:44:41 +0200
parents 055d7d4a823f
children 140a539b4eba
comparison
equal deleted inserted replaced
2586:ec09641d6f41 2587:bf14b037731f
793 793
794 CheckStorageSOPClassesInvariant(); 794 CheckStorageSOPClassesInvariant();
795 } 795 }
796 796
797 797
798 DicomUserConnection::DicomUserConnection() : 798 void DicomUserConnection::DefaultSetup()
799 pimpl_(new PImpl), 799 {
800 preferredTransferSyntax_(DEFAULT_PREFERRED_TRANSFER_SYNTAX), 800 preferredTransferSyntax_ = DEFAULT_PREFERRED_TRANSFER_SYNTAX;
801 localAet_("STORESCU"), 801 localAet_ = "STORESCU";
802 remoteAet_("ANY-SCP"), 802 remoteAet_ = "ANY-SCP";
803 remoteHost_("127.0.0.1") 803 remoteHost_ = "127.0.0.1";
804 {
805 remotePort_ = 104; 804 remotePort_ = 104;
806 manufacturer_ = ModalityManufacturer_Generic; 805 manufacturer_ = ModalityManufacturer_Generic;
807 806
808 SetTimeout(defaultTimeout_); 807 SetTimeout(defaultTimeout_);
809 pimpl_->net_ = NULL; 808 pimpl_->net_ = NULL;
817 reservedStorageSOPClasses_.push_back(UID_MOVEStudyRootQueryRetrieveInformationModel); 816 reservedStorageSOPClasses_.push_back(UID_MOVEStudyRootQueryRetrieveInformationModel);
818 reservedStorageSOPClasses_.push_back(UID_FINDModalityWorklistInformationModel); 817 reservedStorageSOPClasses_.push_back(UID_FINDModalityWorklistInformationModel);
819 818
820 ResetStorageSOPClasses(); 819 ResetStorageSOPClasses();
821 } 820 }
821
822
823 DicomUserConnection::DicomUserConnection() :
824 pimpl_(new PImpl)
825 {
826 DefaultSetup();
827 }
828
829
830 DicomUserConnection::DicomUserConnection(const std::string& localAet,
831 const RemoteModalityParameters& remote) :
832 pimpl_(new PImpl)
833 {
834 DefaultSetup();
835 SetLocalApplicationEntityTitle(localAet);
836 SetRemoteModality(remote);
837 }
838
822 839
823 DicomUserConnection::~DicomUserConnection() 840 DicomUserConnection::~DicomUserConnection()
824 { 841 {
825 Close(); 842 Close();
826 } 843 }