]> Creatis software - gdcm.git/blob - src/gdcmUtil.h
* Memory link hunt (by using valgrind --leak-check=yes PrintHeader).
[gdcm.git] / src / gdcmUtil.h
1 // gdcmUtil.h
2
3 #ifndef GDCMUTIL_H
4 #define GDCMUTIL_H
5
6 #include <iostream>
7 #include <vector>
8 #include <string>
9 #include "gdcmVR.h"
10 using namespace std;
11
12 class gdcmDebug {
13 private:
14         int DebugLevel;
15 public:
16         gdcmDebug(int  = 0);
17         void Verbose(int, const char*, const char* ="");
18         void Error(bool, const char*,  const char* ="");
19         void Error(const char*, const char* ="", const char* ="");
20         void Assert(int, bool, const char*, const char*);
21         void Exit(int);
22 };
23
24 class gdcmGlobal {
25 private:
26    static gdcmVR *VR; 
27 public:
28    gdcmGlobal(void);
29    ~gdcmGlobal(void);
30    static gdcmVR * GetVR(void);
31 };
32
33 istream & eatwhite(istream & is);
34
35 void Tokenize (const string& str,
36                vector<string>& tokens,
37                const string& delimiters = " ");
38
39 extern gdcmDebug dbg;
40
41 #endif