X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmUtil.cxx;h=9b93e96cef69cb519e7e5e2fc4e24183faec1856;hb=541ed5b2824ff14630565a474b1406e58b677662;hp=127737e1d95a7773f62577eccbae3f5f3ebea1c7;hpb=4a0c2407ec81e041c2e43781acec4c78c83fc487;p=gdcm.git diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index 127737e1..9b93e96c 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -3,6 +3,10 @@ #include // For isspace #include "gdcmUtil.h" +// Library globals. +gdcmDebug dbg; +gdcmVR * gdcmGlobal::VR = new gdcmVR(); + gdcmDebug::gdcmDebug(int level) { DebugLevel = level; } @@ -43,8 +47,19 @@ void gdcmDebug::Exit(int a) { #endif } -gdcmDebug dbg; +/////////////////////////////////////////////////////////////////////////// +gdcmGlobal::gdcmGlobal(void) { +} + +gdcmGlobal::~gdcmGlobal(void) { + delete VR; +} + +gdcmVR * gdcmGlobal::GetVR(void) { + return VR; +} +/////////////////////////////////////////////////////////////////////////// // Because is not yet available in g++2.96 istream& eatwhite(istream& is) { char c;