X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmUtil.h;h=cb9dcbd389ea8a9407a4fad58bb2f4bd799c6b3b;hb=66553b88cd6daaac48ac62a910199cb2fff276f6;hp=d06e8cdeac839da0f96be9e4f3a1f677cbb016c1;hpb=a631c1cc8f402dcef308999aefe5aec531934e8f;p=gdcm.git diff --git a/src/gdcmUtil.h b/src/gdcmUtil.h index d06e8cde..cb9dcbd3 100644 --- a/src/gdcmUtil.h +++ b/src/gdcmUtil.h @@ -1,15 +1,44 @@ +// gdcmUtil.h + +#ifndef GDCMUTIL_H +#define GDCMUTIL_H + #include +#include +#include +#include "gdcmVR.h" +#include "gdcmDictSet.h" +using namespace std; + class gdcmDebug { private: int DebugLevel; public: - gdcmDebug(int); + gdcmDebug(int = 0); void Verbose(int, const char*, const char* =""); void Error(bool, const char*, const char* =""); void Error(const char*, const char* ="", const char* =""); void Assert(int, bool, const char*, const char*); + void Exit(int); }; -istream& eatwhite(istream& is); +class gdcmGlobal { +private: + static gdcmVR *VR; + static gdcmDictSet *Dicts; +public: + gdcmGlobal(void); + ~gdcmGlobal(); + static gdcmVR * GetVR(void); + static gdcmDictSet * GetDicts(void); +}; + +istream & eatwhite(istream & is); + +void Tokenize (const string& str, + vector& tokens, + const string& delimiters = " "); extern gdcmDebug dbg; + +#endif