Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef GDCMXMLPRIVATEDICTREADER_H
00016 #define GDCMXMLPRIVATEDICTREADER_H
00017
00018 #include "gdcmTableReader.h"
00019 #include "gdcmDict.h"
00020 #include "gdcmDictEntry.h"
00021 #include "gdcmTag.h"
00022
00023 namespace gdcm
00024 {
00030 class GDCM_EXPORT XMLPrivateDictReader : public TableReader
00031 {
00032 public:
00033 XMLPrivateDictReader();
00034 ~XMLPrivateDictReader() {}
00035
00036 void StartElement(const char *name, const char **atts);
00037 void EndElement(const char *name);
00038 void CharacterDataHandler(const char *data, int length);
00039
00040 const PrivateDict & GetPrivateDict() { return PDict; }
00041
00042 protected:
00043 void HandleEntry(const char **atts);
00044 void HandleDescription(const char **atts);
00045
00046 private:
00047 PrivateDict PDict;
00048 PrivateTag CurrentTag;
00049 DictEntry CurrentDE;
00050 bool ParsingDescription;
00051 std::string Description;
00052 };
00053
00054 }
00055
00056 #endif //GDCMXMLPRIVATEDICTREADER_H