]> Creatis software - gdcm.git/blobdiff - src/gdcmUtil.h
* Memory link hunt (by using valgrind --leak-check=yes PrintHeader).
[gdcm.git] / src / gdcmUtil.h
index bfa1373da89bd9d05199e03d76f2cb9cfcc83898..325bde910b5bdf53f33cb03e3b8ce960b633d05c 100644 (file)
@@ -1,15 +1,41 @@
+// gdcmUtil.h
+
+#ifndef GDCMUTIL_H
+#define GDCMUTIL_H
+
 #include <iostream>
+#include <vector>
+#include <string>
+#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(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<string>& tokens,
+               const string& delimiters = " ");
 
 extern gdcmDebug dbg;
+
+#endif