X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmUtil.h;h=325bde910b5bdf53f33cb03e3b8ce960b633d05c;hb=541ed5b2824ff14630565a474b1406e58b677662;hp=63025122aaedc860df3181073a49fb2a6bedd409;hpb=1aa2bb207fb6b9ce78f35e7547dd4c770e516adb;p=gdcm.git diff --git a/src/gdcmUtil.h b/src/gdcmUtil.h index 63025122..325bde91 100644 --- a/src/gdcmUtil.h +++ b/src/gdcmUtil.h @@ -1,4 +1,12 @@ +// gdcmUtil.h + +#ifndef GDCMUTIL_H +#define GDCMUTIL_H + #include +#include +#include +#include "gdcmVR.h" using namespace std; class gdcmDebug { @@ -10,8 +18,24 @@ public: 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); +}; + +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