GDCM
2.4.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
Source
InformationObjectDefinition
gdcmXMLDictReader.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 GDCMXMLDICTREADER_H
15
#define GDCMXMLDICTREADER_H
16
17
#include "
gdcmTableReader.h
"
18
#include "
gdcmDict.h
"
19
#include "
gdcmDictEntry.h
"
20
#include "
gdcmTag.h
"
21
22
namespace
gdcm
23
{
29
class
GDCM_EXPORT
XMLDictReader
:
public
TableReader
30
{
31
public
:
32
XMLDictReader
();
33
~XMLDictReader
() {}
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
Dict
&
GetDict
() {
return
DICOMDict; }
40
41
protected
:
42
void
HandleEntry(
const
char
**atts);
43
void
HandleDescription(
const
char
**atts);
44
45
private
:
46
Dict
DICOMDict;
47
Tag
CurrentTag;
48
DictEntry
CurrentDE;
49
bool
ParsingDescription;
50
std::string Description;
51
};
52
53
}
// end namespace gdcm
54
55
#endif //GDCMXMLDICTREADER_H
gdcmTableReader.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition:
gdcmWin32.h:34
gdcm::XMLDictReader
Class for representing a XMLDictReader.
Definition:
gdcmXMLDictReader.h:29
gdcm::XMLDictReader::GetDict
const Dict & GetDict()
Definition:
gdcmXMLDictReader.h:39
gdcm::DictEntry
Class to represent an Entry in the Dict Does not really exist within the DICOM definition, just a way to minimize storage and have a mapping from gdcm::Tag to the needed information.
Definition:
gdcmDictEntry.h:36
gdcm::Dict
Class to represent a map of DictEntry.
Definition:
gdcmDict.h:44
gdcm::TableReader
Class for representing a TableReader.
Definition:
gdcmTableReader.h:34
gdcm::XMLDictReader::~XMLDictReader
~XMLDictReader()
Definition:
gdcmXMLDictReader.h:33
gdcmDict.h
gdcmDictEntry.h
gdcm::Tag
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element). Basically an uint32_t which...
Definition:
gdcmTag.h:38
gdcm
Definition:
gdcmASN1.h:20
gdcmTag.h
Generated on Fri Sep 25 2015 17:58:25 for GDCM by
1.8.9.1