Program: gdcm
Module: $RCSfile: gdcmGlobal.cxx,v $
Language: C++
- Date: $Date: 2004/06/20 18:08:47 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2004/10/08 04:52:55 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
- http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details.
+ http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#include "gdcmGlobal.h"
#include "gdcmDebug.h"
-#include <stdio.h>
-#include <ctype.h> // For isspace
-#include <string.h> // CLEANME: could this be only string ? Related to Win32 ?
/**
* \ingroup Globals
* \ingroup gdcmGlobal
* \brief constructor : populates the various H Tables
*/
-gdcmGlobal::gdcmGlobal(void) {
+gdcmGlobal::gdcmGlobal()
+{
if (VR || TS || Dicts || ddElem)
+ {
dbg.Verbose(0, "gdcmGlobal::gdcmGlobal : VR or TS or Dicts already allocated");
+ }
Dicts = new gdcmDictSet();
VR = new gdcmVR();
TS = new gdcmTS();
* \ingroup gdcmGlobal
* \brief canonical destructor
*/
-gdcmGlobal::~gdcmGlobal() {
+gdcmGlobal::~gdcmGlobal()
+{
delete Dicts;
delete VR;
delete TS;
* \ingroup gdcmGlobal
* \brief returns a pointer to the 'Value Representation Table'
*/
-gdcmVR *gdcmGlobal::GetVR(void) {
+gdcmVR *gdcmGlobal::GetVR()
+{
return VR;
}
/**
* \ingroup gdcmGlobal
* \brief returns a pointer to the 'Transfert Syntax Table'
*/
-gdcmTS *gdcmGlobal::GetTS(void) {
+gdcmTS *gdcmGlobal::GetTS()
+{
return TS;
}
/**
* \ingroup gdcmGlobal
* \brief returns a pointer to Dictionaries Table
*/
-gdcmDictSet *gdcmGlobal::GetDicts(void) {
+gdcmDictSet *gdcmGlobal::GetDicts()
+{
return Dicts;
}
/**
* \ingroup gdcmGlobal
* \brief returns a pointer to the DicomDir related elements Table
*/
-gdcmDicomDirElement *gdcmGlobal::GetDicomDirElements(void) {
+gdcmDicomDirElement *gdcmGlobal::GetDicomDirElements()
+{
return ddElem;
}