]> Creatis software - gdcm.git/blobdiff - src/gdcmUtil.h
FIX: Building on cygwin is fine now
[gdcm.git] / src / gdcmUtil.h
index 63025122aaedc860df3181073a49fb2a6bedd409..b77fcb249740095ec16aa0355d568875fb43ef87 100644 (file)
@@ -1,17 +1,28 @@
-#include <iostream>
-using namespace std;
+// gdcmUtil.h
+//-----------------------------------------------------------------------------
+#ifndef GDCMUTIL_H
+#define GDCMUTIL_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*);
-};
+#include <vector>
+#include <string>
 
-istream & eatwhite(istream & is);
+/**
+ * \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.
+ */
 
-extern gdcmDebug dbg;
+//-----------------------------------------------------------------------------
+std::istream & eatwhite(std::istream & is);
+
+void Tokenize (const std::string& str,
+               std::vector<std::string>& tokens,
+               const std::string& delimiters = " ");
+
+std::string CreateCleanString(std::string s);
+void        NormalizePath(std::string &name);
+std::string GetPath(std::string &fullName);
+std::string GetName(std::string &fullName);
+//-----------------------------------------------------------------------------
+#endif