59 Scanner():Values(),Filenames(),Mappings() {}
74 void AddTag(
Tag const & t );
81 void AddSkipTag(
Tag const & t );
90 void Print( std::ostream & os )
const;
95 bool IsKey(
const char * filename )
const;
108 ValuesType GetValues(
Tag const &t)
const;
121 return strcmp(s1, s2) < 0;
126 ConstIterator
Begin()
const {
return Mappings.begin(); }
127 ConstIterator
End()
const {
return Mappings.end(); }
133 TagToValue
const & GetMapping(
const char *filename)
const;
137 const char *GetFilenameFromTagToValue(
Tag const &t,
const char *valueref)
const;
145 TagToValue
const & GetMappingFromTagToValue(
Tag const &t,
const char *value)
const;
152 const char* GetValue(
const char *filename,
Tag const &t)
const;
158 void ProcessPublicTag(
StringFilter &sf,
const char *filename);
161 typedef std::set< Tag > TagsType;
162 typedef std::set< PrivateTag > PrivateTagsType;
163 std::set< Tag > Tags;
164 std::set< PrivateTag > PrivateTags;
165 std::set< Tag > SkipTags;
170 MappingType Mappings;
181 #if defined(SWIGPYTHON) || defined(SWIGCSHARP) || defined(SWIGJAVA) || defined(SWIGPHP)
191 const Tag& GetCurrentTag()
const {
return it->first; }
192 const char *GetCurrentValue()
const {
return it->second; }
193 void Start() { it = Internal.begin(); }
194 bool IsAtEnd()
const {
return it == Internal.end(); }
195 void Next() { ++it; }
198 Scanner::TagToValue::const_iterator it;
209 #endif //GDCMSCANNER_H
MappingType const & GetMappings() const
Mappings are the mapping from a particular tag to the map, mapping filename to value: ...
Definition: gdcmScanner.h:130
TagToValue::value_type TagToValueValueType
Definition: gdcmScanner.h:71
Scanner This filter is meant for quickly browsing a FileSet (a set of files on disk). Special consideration are taken so as to read the mimimum amount of information in each file in order to retrieve the user specified set of DICOM Attribute.
Definition: gdcmScanner.h:55
bool operator()(const char *s1, const char *s2) const
Definition: gdcmScanner.h:118
static SmartPointer< Scanner > New()
for wrapped language: instanciate a reference counted object
Definition: gdcmScanner.h:155
void Print(std::ostream &os) const
Print result.
Class to represent a Private DICOM Data Element (Attribute) Tag (Group, Element, Owner) ...
Definition: gdcmPrivateTag.h:38
MappingType::const_iterator ConstIterator
Definition: gdcmScanner.h:125
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
StringFilter StringFilter is the class that make gdcm2.x looks more like gdcm1 and transform the bina...
Definition: gdcmStringFilter.h:29
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition: gdcmDirectory.h:88
std::vector< FilenameType > FilenamesType
Definition: gdcmDirectory.h:49
Subject.
Definition: gdcmSubject.h:28
ConstIterator Begin() const
Definition: gdcmScanner.h:126
Class for Smart Pointer.
Definition: gdcmObject.h:26
std::set< std::string > ValuesType
Definition: gdcmScanner.h:102
ValuesType const & GetValues() const
Get all the values found (in lexicographic order)
Definition: gdcmScanner.h:105
Directory::FilenamesType const & GetFilenames() const
Definition: gdcmScanner.h:87
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element). Basically an uint32_t which...
Definition: gdcmTag.h:38
Scanner()
Definition: gdcmScanner.h:59
Definition: gdcmASN1.h:20
std::map< const char *, TagToValue, ltstr > MappingType
Definition: gdcmScanner.h:124
ConstIterator End() const
Definition: gdcmScanner.h:127
Definition: gdcmScanner.h:116
std::map< Tag, const char * > TagToValue
Definition: gdcmScanner.h:68