]> Creatis software - gdcm.git/blob - src/gdcmUtil.h
* src/*.[h] all occurences of stl classes are now prefixed with
[gdcm.git] / src / gdcmUtil.h
1 // $Header: /cvs/public/gdcm/src/gdcmUtil.h,v 1.10 2003/05/21 16:26:28 regrain Exp $
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
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    static gdcmDictSet *Dicts; 
28 public:
29    gdcmGlobal(void);
30    ~gdcmGlobal();
31    static gdcmVR * GetVR(void);
32    static gdcmDictSet * GetDicts(void);
33 };
34
35 std::istream & eatwhite(std::istream & is);
36
37 void Tokenize (const std::string& str,
38                std::vector<std::string>& tokens,
39                const std::string& delimiters = " ");
40
41 extern gdcmDebug dbg;
42
43 #endif