X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmUtil.h;h=dcc1068c516012b043028c48615f04f12eedd63f;hb=e785350bf905bcac85e241f9cf9f07d03eae345d;hp=7b35b952b6eb373fcfcc2944059f3cc54bb7ea97;hpb=06c1c583239fdf5196260e6ef83a78669c1bd17f;p=gdcm.git diff --git a/src/gdcmUtil.h b/src/gdcmUtil.h index 7b35b952..dcc1068c 100644 --- a/src/gdcmUtil.h +++ b/src/gdcmUtil.h @@ -3,9 +3,11 @@ #ifndef GDCMUTIL_H #define GDCMUTIL_H +#include "gdcmCommon.h" #include "gdcmVR.h" #include "gdcmTS.h" #include "gdcmDictSet.h" +#include "gdcmDicomDirElement.h" #include #include #include @@ -23,7 +25,8 @@ */ class gdcmDebug { public: - gdcmDebug(int = 0); + gdcmDebug(int level = GDCM_DEBUG); + void SetDebug (int i) {DebugLevel = i;} void Verbose(int, const char*, const char* =""); @@ -42,19 +45,21 @@ private: * This class contains all globals elements that might be * instanciated only one time */ -class gdcmGlobal { +class GDCM_EXPORT gdcmGlobal { public: gdcmGlobal(void); ~gdcmGlobal(); - static gdcmVR * GetVR(void); - static gdcmTS * GetTS(void); - static gdcmDictSet * GetDicts(void); + static gdcmDictSet *GetDicts(void); + static gdcmVR *GetVR(void); + static gdcmTS *GetTS(void); + static gdcmDicomDirElement *GetDicomDirElements(void); private: + static gdcmDictSet *Dicts; static gdcmVR *VR; static gdcmTS *TS; - static gdcmDictSet *Dicts; + static gdcmDicomDirElement *ddElem; }; //----------------------------------------------------------------------------- @@ -66,7 +71,7 @@ void Tokenize (const std::string& str, extern gdcmDebug dbg; -char * _cleanString(char *v); +char *_cleanString(char *v); std::string _CreateCleanString(std::string s); //-----------------------------------------------------------------------------