]> Creatis software - gdcm.git/blob - src/gdcmUtil.h
* More memmory link related corrections and documentation fixes.
[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 #include "gdcmDictSet.h"
11 using namespace std;
12
13 class gdcmDebug {
14 private:
15         int DebugLevel;
16 public:
17         gdcmDebug(int  = 0);
18         void Verbose(int, const char*, const char* ="");
19         void Error(bool, const char*,  const char* ="");
20         void Error(const char*, const char* ="", const char* ="");
21         void Assert(int, bool, const char*, const char*);
22         void Exit(int);
23 };
24
25 class gdcmGlobal {
26 private:
27    static gdcmVR *VR; 
28    static gdcmDictSet *Dicts; 
29 public:
30    gdcmGlobal(void);
31    ~gdcmGlobal();
32    static gdcmVR * GetVR(void);
33    static gdcmDictSet * GetDicts(void);
34 };
35
36 istream & eatwhite(istream & is);
37
38 void Tokenize (const string& str,
39                vector<string>& tokens,
40                const string& delimiters = " ");
41
42 extern gdcmDebug dbg;
43
44 #endif