7 #include "fwGdcmIO/reader/ie/Equipment.hpp" 9 #include "fwGdcmIO/helper/DicomDataReader.hxx" 11 #include <fwMedData/DicomSeries.hpp> 13 #include <fwRuntime/profile/Profile.hpp> 25 const SPTR(::gdcm::Reader)& reader,
26 const ::fwGdcmIO::container::DicomInstance::sptr& instance,
27 const ::fwMedData::Equipment::sptr& equipment,
28 const ::fwLog::Logger::sptr& logger,
29 ProgressCallback progress,
30 CancelRequestedCallback cancel) :
31 ::
fwGdcmIO::reader::ie::InformationEntity< ::
fwMedData::Equipment >(dicomSeries, reader, instance, equipment,
32 logger, progress, cancel)
44 void Equipment::readGeneralEquipmentModule()
47 const ::gdcm::DataSet& dataset = m_reader->GetFile().GetDataSet();
50 const std::string& institutName =
51 ::fwGdcmIO::helper::DicomDataReader::getTagValue< 0x0008, 0x0080 >(dataset);
52 m_object->setInstitutionName(institutName);
Namespace containing medical data.
FWGDCMIO_API Equipment(const std::shared_ptr< const ::fwMedData::DicomSeries > &dicomSeries, const std::shared_ptr< ::gdcm::Reader > &reader, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const ::fwMedData::Equipment::sptr &equipment, const ::fwLog::Logger::sptr &logger=nullptr, ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr)
Constructor.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
virtual FWMEDDATA_API ~Equipment()
Destructor.