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);
32 * \brief sets the debug level
33 * @param i debug level to be set
38 void Verbose(int, const char*, const char* ="");
39 void Error(bool, const char*, const char* ="");
40 void Error(const char*, const char* ="", const char* ="");
42 void Assert(int, bool, const char*, const char*);
46 /// warning message level to be displayed
50 //-----------------------------------------------------------------------------
52 * This class contains all globals elements that might be
53 * instanciated only one time
55 class GDCM_EXPORT gdcmGlobal {
60 static gdcmDictSet *GetDicts(void);
61 static gdcmVR *GetVR(void);
62 static gdcmTS *GetTS(void);
63 static gdcmDicomDirElement *GetDicomDirElements(void);
66 static gdcmDictSet *Dicts;
69 static gdcmDicomDirElement *ddElem;
72 //-----------------------------------------------------------------------------
73 std::istream & eatwhite(std::istream & is);
75 void Tokenize (const std::string& str,
76 std::vector<std::string>& tokens,
77 const std::string& delimiters = " ");
81 char *_cleanString(char *v);
82 std::string _CreateCleanString(std::string s);
84 void NormalizePath (std::string &name);
85 std::string GetPath(std::string &fullName);
86 std::string GetName(std::string &fullName);
87 //-----------------------------------------------------------------------------