X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmUtil.h;h=b77fcb249740095ec16aa0355d568875fb43ef87;hb=0b36f4932e894a1dde4a80e614755816b4b29218;hp=e00e8934f71e24994abad4fb2ac3d6931d974c33;hpb=05abd393cf82392c894dd1d852e2273b0648671d;p=gdcm.git diff --git a/src/gdcmUtil.h b/src/gdcmUtil.h index e00e8934..b77fcb24 100644 --- a/src/gdcmUtil.h +++ b/src/gdcmUtil.h @@ -1,43 +1,28 @@ -// $Header: /cvs/public/gdcm/src/gdcmUtil.h,v 1.9 2003/05/21 14:42:46 frog Exp $ - +// gdcmUtil.h +//----------------------------------------------------------------------------- #ifndef GDCMUTIL_H #define GDCMUTIL_H -#include #include #include -#include "gdcmVR.h" -#include "gdcmDictSet.h" - -class gdcmDebug { -private: - int DebugLevel; -public: - gdcmDebug(int = 0); - void Verbose(int, const char*, const char* =""); - void Error(bool, const char*, const char* =""); - void Error(const char*, const char* ="", const char* =""); - void Assert(int, bool, const char*, const char*); - void Exit(int); -}; -class gdcmGlobal { -private: - static gdcmVR *VR; - static gdcmDictSet *Dicts; -public: - gdcmGlobal(void); - ~gdcmGlobal(); - static gdcmVR * GetVR(void); - static gdcmDictSet * GetDicts(void); -}; +/** + * \defgroup Globals Utility functions + * \brief Here are some utility functions, belonging to NO class, + * dealing with strings, file names... that can be called + * from anywhere by whomsoever they can help. + */ -istream & eatwhite(istream & is); +//----------------------------------------------------------------------------- +std::istream & eatwhite(std::istream & is); void Tokenize (const std::string& str, std::vector& tokens, const std::string& delimiters = " "); -extern gdcmDebug dbg; - +std::string CreateCleanString(std::string s); +void NormalizePath(std::string &name); +std::string GetPath(std::string &fullName); +std::string GetName(std::string &fullName); +//----------------------------------------------------------------------------- #endif