X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmUtil.h;h=325bde910b5bdf53f33cb03e3b8ce960b633d05c;hb=541ed5b2824ff14630565a474b1406e58b677662;hp=d06e8cdeac839da0f96be9e4f3a1f677cbb016c1;hpb=a631c1cc8f402dcef308999aefe5aec531934e8f;p=gdcm.git diff --git a/src/gdcmUtil.h b/src/gdcmUtil.h index d06e8cde..325bde91 100644 --- a/src/gdcmUtil.h +++ b/src/gdcmUtil.h @@ -1,15 +1,41 @@ +// gdcmUtil.h + +#ifndef GDCMUTIL_H +#define GDCMUTIL_H + #include +#include +#include +#include "gdcmVR.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; +public: + gdcmGlobal(void); + ~gdcmGlobal(void); + static gdcmVR * GetVR(void); +}; + +istream & eatwhite(istream & is); + +void Tokenize (const string& str, + vector& tokens, + const string& delimiters = " "); extern gdcmDebug dbg; + +#endif