14#ifndef GDCMSTRICTSCANNER_H
15#define GDCMSTRICTSCANNER_H
90 void Print( std::ostream & os )
const override;
97 bool IsKey(
const char * filename )
const;
123 return strcmp(s1, s2) < 0;
163 typedef std::set< Tag > TagsType;
164 typedef std::set< PrivateTag > PrivateTagsType;
165 std::set< Tag > Tags;
166 std::set< PrivateTag > PrivateTags;
167 std::set< Tag > SkipTags;
std::vector< FilenameType > FilenamesType
Definition gdcmDirectory.h:49
Class to represent a Private DICOM Data Element (Attribute) Tag (Group, Element, Owner)
Definition gdcmPrivateTag.h:39
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
StrictScanner.
Definition gdcmStrictScanner.h:56
TagToValue const & GetMappingFromTagToValue(Tag const &t, const char *value) const
See GetFilenameFromTagToValue(). This is simply GetFilenameFromTagToValue followed.
void AddTag(Tag const &t)
Add a tag that will need to be read. Those are root level skip tags.
Directory::FilenamesType GetOrderedValues(Tag const &t) const
ValuesType const & GetValues() const
Get all the values found (in lexicographic order)
Definition gdcmStrictScanner.h:107
void ProcessPublicTag(StringFilter &sf, const char *filename)
std::map< const char *, TagToValue, ltstr > MappingType
Definition gdcmStrictScanner.h:126
TagToValue::value_type TagToValueValueType
Definition gdcmStrictScanner.h:71
bool IsKey(const char *filename) const
Directory::FilenamesType GetAllFilenamesFromTagToValue(Tag const &t, const char *valueref) const
void Print(std::ostream &os) const override
Print result.
StrictScanner()
Definition gdcmStrictScanner.h:59
std::set< std::string > ValuesType
Definition gdcmStrictScanner.h:104
TagToValue const & GetMapping(const char *filename) const
Get the std::map mapping filenames to value for file 'filename'.
void AddSkipTag(Tag const &t)
Add a tag that will need to be skipped. Those are root level skip tags.
static SmartPointer< StrictScanner > New()
for wrapped language: instantiate a reference counted object
Definition gdcmStrictScanner.h:157
~StrictScanner() override
Directory::FilenamesType const & GetFilenames() const
Definition gdcmStrictScanner.h:87
const char * GetFilenameFromTagToValue(Tag const &t, const char *valueref) const
void PrintTable(std::ostream &os) const
std::map< Tag, const char * > TagToValue
Definition gdcmStrictScanner.h:68
void AddPrivateTag(PrivateTag const &t)
const char * GetValue(const char *filename, Tag const &t) const
Directory::FilenamesType GetKeys() const
ConstIterator Begin() const
Definition gdcmStrictScanner.h:128
MappingType const & GetMappings() const
Mappings are the mapping from a particular tag to the map, mapping filename to value:
Definition gdcmStrictScanner.h:132
ValuesType GetValues(Tag const &t) const
Get all the values found (in lexicographic order) associated with Tag 't'.
bool Scan(Directory::FilenamesType const &filenames)
Start the scan !
MappingType::const_iterator ConstIterator
Definition gdcmStrictScanner.h:127
ConstIterator End() const
Definition gdcmStrictScanner.h:129
StringFilter.
Definition gdcmStringFilter.h:30
Subject.
Definition gdcmSubject.h:29
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39
#define GDCM_EXPORT
Definition gdcmWin32.h:34
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition gdcmDirectory.h:88
Definition gdcmStrictScanner.h:119
bool operator()(const char *s1, const char *s2) const
Definition gdcmStrictScanner.h:120