comparison OrthancServer/OrthancInitialization.cpp @ 772:31cc399c7762

RemoteModalityParameters
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Apr 2014 14:51:43 +0200
parents 537837f50fbb
children 3bd0589af992
comparison
equal deleted inserted replaced
771:537837f50fbb 772:31cc399c7762
583 int port; 583 int port;
584 ModalityManufacturer manufacturer; 584 ModalityManufacturer manufacturer;
585 585
586 return LookupDicomModalityUsingAETitle(aet, symbolicName, address, port, manufacturer); 586 return LookupDicomModalityUsingAETitle(aet, symbolicName, address, port, manufacturer);
587 } 587 }
588
589
590
591 RemoteModalityParameters GetModalityUsingSymbolicName(const std::string& name)
592 {
593 std::string aet, address;
594 int port;
595 ModalityManufacturer manufacturer;
596
597 GetDicomModalityUsingSymbolicName(name, aet, address, port, manufacturer);
598
599 return RemoteModalityParameters(name, aet, address, port, manufacturer);
600 }
601
602 RemoteModalityParameters GetModalityUsingAet(const std::string& aet)
603 {
604 std::string name, address;
605 int port;
606 ModalityManufacturer manufacturer;
607
608 if (LookupDicomModalityUsingAETitle(aet, name, address, port, manufacturer))
609 {
610 return RemoteModalityParameters(name, aet, address, port, manufacturer);
611 }
612 else
613 {
614 throw OrthancException("Unknown modality for AET: " + aet);
615 }
616
617 }
588 } 618 }