gdcmDefs.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 GDCMDEFS_H
#define GDCMDEFS_H
#include "gdcmModules.h"
#include "gdcmMacros.h"
#include "gdcmIODs.h"
#include <string>
namespace gdcm
{
class DataSet;
class File;
class MediaStorage;
class GDCM_EXPORT Defs
{
public:
Defs();
~Defs();
Defs &operator=(const Defs &val) = delete;
Defs(const Defs &val) = delete;
const Modules &GetModules() const { return Part3Modules; }
Modules &GetModules() { return Part3Modules; }
const Macros &GetMacros() const { return Part3Macros; }
Macros &GetMacros() { return Part3Macros; }
const IODs & GetIODs() const { return Part3IODs; }
IODs & GetIODs() { return Part3IODs; }
bool IsEmpty() const { return GetModules().IsEmpty(); }
bool Verify(const File& file) const;
// \deprecated DO NOT USE
bool Verify(const DataSet& ds) const;
Type GetTypeFromTag(const File& file, const Tag& tag) const;
static const char *GetIODNameFromMediaStorage(MediaStorage const &ms);
const IOD& GetIODFromFile(const File& file) const;
protected:
friend class Global;
void LoadDefaults();
void LoadFromFile(const char *filename);
private:
// Part 3 stuff:
Macros Part3Macros;
Modules Part3Modules;
IODs Part3IODs;
};
} // end namespace gdcm
#endif //GDCMDEFS_H
gdcm::DataSet
Class to represent a Data Set (which contains Data Elements).
Definition gdcmDataSet.h:56
gdcm::Defs::LoadFromFile
void LoadFromFile(const char *filename)
gdcm::Defs::Defs
Defs(const Defs &val)=delete
gdcm::Defs::Defs
Defs()
gdcm::Defs::GetIODs
const IODs & GetIODs() const
Definition gdcmDefs.h:48
gdcm::Defs::GetModules
Modules & GetModules()
Definition gdcmDefs.h:41
gdcm::Defs::Verify
bool Verify(const File &file) const
gdcm::Defs::GetIODFromFile
const IOD & GetIODFromFile(const File &file) const
gdcm::Defs::LoadDefaults
void LoadDefaults()
gdcm::Defs::~Defs
~Defs()
gdcm::Defs::GetTypeFromTag
Type GetTypeFromTag(const File &file, const Tag &tag) const
gdcm::Defs::Global
friend class Global
Definition gdcmDefs.h:65
gdcm::Defs::GetMacros
const Macros & GetMacros() const
Definition gdcmDefs.h:45
gdcm::Defs::IsEmpty
bool IsEmpty() const
Definition gdcmDefs.h:51
gdcm::Defs::GetIODs
IODs & GetIODs()
Definition gdcmDefs.h:49
gdcm::Defs::GetIODNameFromMediaStorage
static const char * GetIODNameFromMediaStorage(MediaStorage const &ms)
gdcm::Defs::operator=
Defs & operator=(const Defs &val)=delete
gdcm::Defs::Verify
bool Verify(const DataSet &ds) const
gdcm::Defs::GetMacros
Macros & GetMacros()
Definition gdcmDefs.h:46
gdcm::Defs::GetModules
const Modules & GetModules() const
Definition gdcmDefs.h:40
gdcm::File
a DICOM File
Definition gdcmFile.h:34
gdcm::IOD
Class for representing a IOD.
Definition gdcmIOD.h:35
gdcm::IODs
Class for representing a IODs.
Definition gdcmIODs.h:30
gdcm::Macros
Class for representing a Modules.
Definition gdcmMacros.h:30
gdcm::MediaStorage
MediaStorage.
Definition gdcmMediaStorage.h:44
gdcm::Modules
Class for representing a Modules.
Definition gdcmModules.h:30
gdcm::Tag
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39
gdcm::Type
Type.
Definition gdcmType.h:42
gdcmIODs.h
gdcmMacros.h
gdcmModules.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21