]> Creatis software - gdcm.git/blob - src/gdcmUtil.h
* src/gdcmUtil.[cxx|h] split in two. Additional file gdcmGlobal.[cxx|h]
[gdcm.git] / src / gdcmUtil.h
1 // gdcmUtil.h
2 //-----------------------------------------------------------------------------
3 #ifndef GDCMUTIL_H
4 #define GDCMUTIL_H
5
6 #include <vector>
7 #include <string>
8
9 /**
10  * \defgroup Globals Utility functions
11  * \brief    Here are some utility functions, belonging to NO class,
12  *           dealing with strings, file names... that can be called
13  *           from anywhere by whomsoever they can help.
14  */
15
16 //-----------------------------------------------------------------------------
17 std::istream & eatwhite(std::istream & is);
18
19 void Tokenize (const std::string& str,
20                std::vector<std::string>& tokens,
21                const std::string& delimiters = " ");
22
23 std::string CreateCleanString(std::string s);
24 void        NormalizePath(std::string &name);
25 std::string GetPath(std::string &fullName);
26 std::string GetName(std::string &fullName);
27 //-----------------------------------------------------------------------------
28 #endif