59 Scanner():Values(),Filenames(),Mappings() {}
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;
183#if defined(SWIGPYTHON) || defined(SWIGCSHARP) || defined(SWIGJAVA) || defined(SWIGPHP)
192 const Scanner::TagToValueValueType& GetCurrent()
const {
return *it; }
193 const Tag& GetCurrentTag()
const {
return it->first; }
194 const char *GetCurrentValue()
const {
return it->second; }
195 void Start() { it = Internal.begin(); }
196 bool IsAtEnd()
const {
return it == Internal.end(); }
197 void Next() { ++it; }
199 const Scanner::TagToValue& Internal;
200 Scanner::TagToValue::const_iterator it;
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
Scanner.
Definition gdcmScanner.h:56
ValuesType GetValues(Tag const &t) const
Get all the values found (in lexicographic order) associated with Tag 't'.
void Print(std::ostream &os) const override
Print result.
TagToValue const & GetMapping(const char *filename) const
Get the std::map mapping filenames to value for file 'filename'.
std::map< Tag, const char * > TagToValue
Definition gdcmScanner.h:68
const char * GetFilenameFromTagToValue(Tag const &t, const char *valueref) const
void AddSkipTag(Tag const &t)
Add a tag that will need to be skipped. Those are root level skip tags.
void ProcessPublicTag(StringFilter &sf, const char *filename)
Directory::FilenamesType GetKeys() const
static SmartPointer< Scanner > New()
for wrapped language: instantiate a reference counted object
Definition gdcmScanner.h:157
void PrintTable(std::ostream &os) const
TagToValue::value_type TagToValueValueType
Definition gdcmScanner.h:71
MappingType const & GetMappings() const
Mappings are the mapping from a particular tag to the map, mapping filename to value:
Definition gdcmScanner.h:132
TagToValue const & GetMappingFromTagToValue(Tag const &t, const char *value) const
See GetFilenameFromTagToValue(). This is simply GetFilenameFromTagToValue followed.
bool IsKey(const char *filename) const
Scanner()
Definition gdcmScanner.h:59
ConstIterator Begin() const
Definition gdcmScanner.h:128
void AddTag(Tag const &t)
Add a tag that will need to be read. Those are root level tags.
const char * GetValue(const char *filename, Tag const &t) const
ConstIterator End() const
Definition gdcmScanner.h:129
std::set< std::string > ValuesType
Definition gdcmScanner.h:104
std::map< const char *, TagToValue, ltstr > MappingType
Definition gdcmScanner.h:126
MappingType::const_iterator ConstIterator
Definition gdcmScanner.h:127
Directory::FilenamesType const & GetFilenames() const
Definition gdcmScanner.h:87
bool Scan(Directory::FilenamesType const &filenames)
Start the scan !
Directory::FilenamesType GetAllFilenamesFromTagToValue(Tag const &t, const char *valueref) const
ValuesType const & GetValues() const
Get all the values found (in lexicographic order)
Definition gdcmScanner.h:107
void AddPrivateTag(PrivateTag const &t)
Directory::FilenamesType GetOrderedValues(Tag const &t) const
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
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 gdcmScanner.h:119
bool operator()(const char *s1, const char *s2) const
Definition gdcmScanner.h:120