gdcmXMLDictReader.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMXMLDICTREADER_H
#define GDCMXMLDICTREADER_H
#include "gdcmTableReader.h"
#include "gdcmDict.h"
#include "gdcmDictEntry.h"
#include "gdcmTag.h"
namespace gdcm
{
class GDCM_EXPORT XMLDictReader : public TableReader
{
public:
XMLDictReader();
~XMLDictReader() {}
void StartElement(const char *name, const char **atts);
void EndElement(const char *name);
void CharacterDataHandler(const char *data, int length);
const Dict & GetDict() { return DICOMDict; }
protected:
void HandleEntry(const char **atts);
void HandleDescription(const char **atts);
private:
Dict DICOMDict;
Tag CurrentTag;
DictEntry CurrentDE;
bool ParsingDescription;
std::string Description;
};
} // end namespace gdcm
#endif //GDCMXMLDICTREADER_H
gdcm::DictEntry
Class to represent an Entry in the Dict.
Definition gdcmDictEntry.h:37
gdcm::Dict
Class to represent a map of DictEntry.
Definition gdcmDict.h:45
gdcm::TableReader::TableReader
TableReader(Defs &defs)
Definition gdcmTableReader.h:37
gdcm::Tag
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39
gdcm::XMLDictReader::~XMLDictReader
~XMLDictReader()
Definition gdcmXMLDictReader.h:33
gdcm::XMLDictReader::GetDict
const Dict & GetDict()
Definition gdcmXMLDictReader.h:39
gdcm::XMLDictReader::CharacterDataHandler
void CharacterDataHandler(const char *data, int length)
gdcm::XMLDictReader::StartElement
void StartElement(const char *name, const char **atts)
gdcm::XMLDictReader::HandleEntry
void HandleEntry(const char **atts)
gdcm::XMLDictReader::XMLDictReader
XMLDictReader()
gdcm::XMLDictReader::HandleDescription
void HandleDescription(const char **atts)
gdcm::XMLDictReader::EndElement
void EndElement(const char *name)
gdcmDictEntry.h
gdcmDict.h
gdcmTableReader.h
gdcmTag.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21