7 #ifndef __FWGDCMIO_HELPER_SEGMENTEDPROPERTYREGISTRY_HPP__ 8 #define __FWGDCMIO_HELPER_SEGMENTEDPROPERTYREGISTRY_HPP__ 10 #include "fwGdcmIO/config.hpp" 11 #include "fwGdcmIO/container/DicomCodedAttribute.hpp" 13 #include <fwData/Object.hpp> 15 #include <boost/filesystem/path.hpp> 64 FWGDCMIO_API
bool readSegmentedPropertyRegistryFile(const ::boost::filesystem::path& filepath,
65 bool omitFirstLine =
false,
82 FWGDCMIO_API
bool readSegmentedPropertyRegistryFile(std::istream& csvStream,
83 bool omitFirstLine =
false,
87 FWGDCMIO_API
bool empty()
const;
90 FWGDCMIO_API std::size_t count()
const;
93 FWGDCMIO_API
void clear();
99 FWGDCMIO_API
bool hasEntry(
const std::string& structureType)
const;
105 FWGDCMIO_API EntryType getEntry(
const std::string& structureType)
const;
111 FWGDCMIO_API std::string getPropertyType(
const std::string& structureType)
const;
112 FWGDCMIO_API std::string getPropertyCategory(
const std::string& structureType)
const;
113 FWGDCMIO_API std::string getPropertyTypeModifiers(
const std::string& structureType)
const;
114 FWGDCMIO_API std::string getAnatomicRegion(
const std::string& structureType)
const;
115 FWGDCMIO_API std::string getAnatomicRegionModifiers(
const std::string& structureType)
const;
127 FWGDCMIO_API std::string getStructureType(
const std::string& propertyType,
128 const std::string& propertyCategory,
129 const std::string& propertyTypeModifiers,
130 const std::string& anatomicRegion,
131 const std::string& anatomicRegionModifiers)
const;
136 typedef std::map<std::string, EntryType> EntryRegistryType;
139 static const EntryType s_DEFAULT_ENTRY_VALUE;
142 EntryRegistryType m_registry;
149 #endif // __FWGDCMIO_HELPER_SEGMENTEDPROPERTYREGISTRY_HPP__
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
fwLog contains classes used to manage logs.
Registry of Segment Properties. This class defines a registry which links a structure type to an entr...
Logger class used to store logs.
std::array< std::string, 5 > EntryType
Entry containing the 5 attributes of a structure type.