2 //-----------------------------------------------------------------------------
8 #include "gdcmDictSet.h"
9 #include "gdcmDicomDirElement.h"
14 //-----------------------------------------------------------------------------
16 * gdcmDebug is an object for debugging in program.
17 * It has 2 debugging modes :
18 * - error : for bad library use
19 * - debug : for debugging messages
21 * A debugging message has a level of priority and is
22 * Shown only when the debug level is higher than the
28 void SetDebug (int i) {DebugLevel = i;}
30 void Verbose(int, const char*, const char* ="");
31 void Error(bool, const char*, const char* ="");
32 void Error(const char*, const char* ="", const char* ="");
34 void Assert(int, bool, const char*, const char*);
41 //-----------------------------------------------------------------------------
43 * This class contains all globals elements that might be
44 * instanciated only one time
46 class GDCM_EXPORT gdcmGlobal {
51 static gdcmDictSet *GetDicts(void);
52 static gdcmVR *GetVR(void);
53 static gdcmTS *GetTS(void);
54 static gdcmDicomDirElement *GetDicomDirElements(void);
57 static gdcmDictSet *Dicts;
60 static gdcmDicomDirElement *ddElem;
63 //-----------------------------------------------------------------------------
64 std::istream & eatwhite(std::istream & is);
66 void Tokenize (const std::string& str,
67 std::vector<std::string>& tokens,
68 const std::string& delimiters = " ");
72 char *_cleanString(char *v);
73 std::string _CreateCleanString(std::string s);
75 //-----------------------------------------------------------------------------