diff --git a/Modules/DICOMReader/include/mitkDICOMDatasetAccess.h b/Modules/DICOMReader/include/mitkDICOMDatasetAccess.h index d7aada9005..8b87a52d0d 100644 --- a/Modules/DICOMReader/include/mitkDICOMDatasetAccess.h +++ b/Modules/DICOMReader/include/mitkDICOMDatasetAccess.h @@ -1,67 +1,68 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #ifndef mitkDICOMDatasetAccess_h #define mitkDICOMDatasetAccess_h #include "mitkDICOMTag.h" #include "MitkDICOMReaderExports.h" namespace mitk { /** Helper class that is used for the result of DICOMDatasetAccess::GetTagValueAsString */ struct MITKDICOMREADER_EXPORT DICOMDatasetFinding { - std::string value; /**Indicates if value is valid or not.*/ bool isValid; + /**The found value.*/ + std::string value; DICOMDatasetFinding() : isValid(false), value("") {}; }; /** \ingroup DICOMReaderModule \brief Interface to datasets that is presented to sorting classes such as DICOMDatasetSorter. Minimal interface to hide actual implementation, which might rely on GDCM. */ class MITKDICOMREADER_EXPORT DICOMDatasetAccess { public: /// \brief Return a filename if possible. /// If DICOM is not read from file but from somewhere else (network, database), we might not have files. virtual std::string GetFilenameIfAvailable() const = 0; /** \brief Return a DICOMDatasetFinding instance of the tag. The return containes (if valid) the raw value of the tag as a string. \param tag Tag which value should be retreived. */ virtual DICOMDatasetFinding GetTagValueAsString(const DICOMTag& tag) const = 0; virtual ~DICOMDatasetAccess() {}; }; typedef std::vector DICOMDatasetList; } #endif