]> Creatis software - gdcm.git/blob - src/gdcmUtil.h
Add JPEG 6b files
[gdcm.git] / src / gdcmUtil.h
1 // $Header: /cvs/public/gdcm/src/gdcmUtil.h,v 1.11 2003/06/17 17:44:48 jpr 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 "gdcmTS.h"
11 #include "gdcmDictSet.h"
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 Verbose(int, char*, char*);
20         void Error(bool, const char*,  const char* ="");
21         void Error(const char*, const char* ="", const char* ="");
22         void Assert(int, bool, const char*, const char*);
23         void Exit(int);
24         void SetDebug (int i) {DebugLevel = i;}
25 };
26
27 class gdcmGlobal {
28 private:
29    static gdcmVR *VR;
30    static gdcmTS *TS; 
31    static gdcmDictSet *Dicts; 
32 public:
33    gdcmGlobal(void);
34    ~gdcmGlobal();
35    static gdcmVR * GetVR(void);
36    static gdcmTS * GetTS(void);
37    static gdcmDictSet * GetDicts(void);
38 };
39
40 std::istream & eatwhite(std::istream & is);
41
42 void Tokenize (const std::string& str,
43                std::vector<std::string>& tokens,
44                const std::string& delimiters = " ");
45
46 extern gdcmDebug dbg;
47
48 char * _cleanString(char *v);
49 char * _CreateCleanString(string s);
50
51 #endif
52