GDCM 3.0.24
gdcmXMLPrivateDictReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMXMLPRIVATEDICTREADER_H
15#define GDCMXMLPRIVATEDICTREADER_H
16
17#include "gdcmTableReader.h"
18#include "gdcmDict.h"
19#include "gdcmDictEntry.h"
20#include "gdcmTag.h"
21
22namespace gdcm
23{
30{
31public:
34
35 void StartElement(const char *name, const char **atts);
36 void EndElement(const char *name);
37 void CharacterDataHandler(const char *data, int length);
38
39 const PrivateDict & GetPrivateDict() { return PDict; }
40
41protected:
42 void HandleEntry(const char **atts);
43 void HandleDescription(const char **atts);
44
45private:
46 PrivateDict PDict;
47 PrivateTag CurrentTag;
48 DictEntry CurrentDE;
49 bool ParsingDescription;
50 std::string Description;
51};
52
53} // end namespace gdcm
54
55#endif //GDCMXMLPRIVATEDICTREADER_H
Class to represent an Entry in the Dict.
Definition gdcmDictEntry.h:37
Private Dict.
Definition gdcmDict.h:217
Class to represent a Private DICOM Data Element (Attribute) Tag (Group, Element, Owner)
Definition gdcmPrivateTag.h:39
Class for representing a TableReader.
Definition gdcmTableReader.h:35
Class for representing a XMLPrivateDictReader.
Definition gdcmXMLPrivateDictReader.h:30
void EndElement(const char *name)
void CharacterDataHandler(const char *data, int length)
void HandleDescription(const char **atts)
void HandleEntry(const char **atts)
void StartElement(const char *name, const char **atts)
~XMLPrivateDictReader()
Definition gdcmXMLPrivateDictReader.h:33
const PrivateDict & GetPrivateDict()
Definition gdcmXMLPrivateDictReader.h:39
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmASN1.h:21