gdcmDicts.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 GDCMDICTS_H
#define GDCMDICTS_H
#include "gdcmDict.h"
#include "gdcmCSAHeaderDict.h"
#include <string>
namespace gdcm
{
class GDCM_EXPORT Dicts
{
friend std::ostream& operator<<(std::ostream &_os, const Dicts &d);
public:
Dicts();
~Dicts();
Dicts &operator=(const Dicts &_val) = delete;
Dicts(const Dicts &_val) = delete;
// DataSet::GetPrivateCreator
const DictEntry &GetDictEntry(const Tag& tag, const char *owner = nullptr) const;
const DictEntry &GetDictEntry(const PrivateTag& tag) const;
//enum PublicTypes {
// DICOMV3_DICT,
// ACRNEMA_DICT,
// NIH_DICT
//};
const Dict &GetPublicDict() const;
const PrivateDict &GetPrivateDict() const;
PrivateDict &GetPrivateDict();
const CSAHeaderDict &GetCSAHeaderDict() const;
bool IsEmpty() const { return GetPublicDict().IsEmpty(); }
protected:
typedef enum {
PHILIPS,
GEMS,
SIEMENS
// ...
} ConstructorType;
static const char *GetConstructorString(ConstructorType type);
friend class Global;
void LoadDefaults();
private:
// Public dict:
Dict PublicDict;
// Private Dicts:
PrivateDict ShadowDict;
CSAHeaderDict CSADict;
};
//-----------------------------------------------------------------------------
inline std::ostream& operator<<(std::ostream &os, const Dicts &d)
{
(void)d;
return os;
}
} // end namespace gdcm
#endif //GDCMDICTS_H
gdcm::CSAHeaderDict
Class to represent a map of CSAHeaderDictEntry.
Definition gdcmCSAHeaderDict.h:35
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::Dicts::LoadDefaults
void LoadDefaults()
gdcm::Dicts::GetCSAHeaderDict
const CSAHeaderDict & GetCSAHeaderDict() const
gdcm::Dicts::GetPrivateDict
PrivateDict & GetPrivateDict()
gdcm::Dicts::GetDictEntry
const DictEntry & GetDictEntry(const Tag &tag, const char *owner=nullptr) const
THREAD SAFE.
gdcm::Dicts::Dicts
Dicts(const Dicts &_val)=delete
gdcm::Dicts::GetPublicDict
const Dict & GetPublicDict() const
gdcm::Dicts::GetDictEntry
const DictEntry & GetDictEntry(const PrivateTag &tag) const
gdcm::Dicts::Dicts
Dicts()
gdcm::Dicts::Global
friend class Global
Definition gdcmDicts.h:69
gdcm::Dicts::operator<<
friend std::ostream & operator<<(std::ostream &_os, const Dicts &d)
Definition gdcmDicts.h:82
gdcm::Dicts::ConstructorType
ConstructorType
Definition gdcmDicts.h:61
gdcm::Dicts::SIEMENS
@ SIEMENS
Definition gdcmDicts.h:64
gdcm::Dicts::PHILIPS
@ PHILIPS
Definition gdcmDicts.h:62
gdcm::Dicts::GEMS
@ GEMS
Definition gdcmDicts.h:63
gdcm::Dicts::IsEmpty
bool IsEmpty() const
Definition gdcmDicts.h:58
gdcm::Dicts::~Dicts
~Dicts()
gdcm::Dicts::operator=
Dicts & operator=(const Dicts &_val)=delete
gdcm::Dicts::GetPrivateDict
const PrivateDict & GetPrivateDict() const
gdcm::Dicts::GetConstructorString
static const char * GetConstructorString(ConstructorType type)
gdcm::PrivateDict
Private Dict.
Definition gdcmDict.h:217
gdcm::PrivateTag
Class to represent a Private DICOM Data Element (Attribute) Tag (Group, Element, Owner).
Definition gdcmPrivateTag.h:39
gdcm::Tag
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39
gdcmCSAHeaderDict.h
gdcmDict.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21
gdcm::operator<<
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition gdcmDirectory.h:88