2 //-----------------------------------------------------------------------------
6 #include "gdcmCommon.h"
9 #include "gdcmDictSet.h"
10 #include "gdcmDicomDirElement.h"
15 //-----------------------------------------------------------------------------
17 * gdcmDebug is an object for debugging in program.
18 * It has 2 debugging modes :
19 * - error : for bad library use
20 * - debug : for debugging messages
22 * A debugging message has a level of priority and is
23 * Shown only when the debug level is higher than the
28 gdcmDebug(int level = GDCM_DEBUG);
30 void SetDebug (int i) {DebugLevel = i;}
32 void Verbose(int, const char*, const char* ="");
33 void Error(bool, const char*, const char* ="");
34 void Error(const char*, const char* ="", const char* ="");
36 void Assert(int, bool, const char*, const char*);
43 //-----------------------------------------------------------------------------
45 * This class contains all globals elements that might be
46 * instanciated only one time
48 class GDCM_EXPORT gdcmGlobal {
53 static gdcmDictSet *GetDicts(void);
54 static gdcmVR *GetVR(void);
55 static gdcmTS *GetTS(void);
56 static gdcmDicomDirElement *GetDicomDirElements(void);
59 static gdcmDictSet *Dicts;
62 static gdcmDicomDirElement *ddElem;
65 //-----------------------------------------------------------------------------
66 std::istream & eatwhite(std::istream & is);
68 void Tokenize (const std::string& str,
69 std::vector<std::string>& tokens,
70 const std::string& delimiters = " ");
74 char *_cleanString(char *v);
75 std::string _CreateCleanString(std::string s);
77 //-----------------------------------------------------------------------------