]> Creatis software - gdcm.git/blob - src/gdcmUtil.h
* gdcmPython/gdcm.i : remove useless lines concerning the gdcmGlobal
[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 #include "gdcmCommon.h"
10
11 /**
12  * \defgroup Globals Utility functions
13  * \brief    Here are some utility functions, belonging to NO class,
14  *           dealing with strings, file names... that can be called
15  *           from anywhere by whomsoever they can help.
16  */
17
18 //-----------------------------------------------------------------------------
19 GDCM_EXPORT std::istream & eatwhite(std::istream & is);
20
21 GDCM_EXPORT void Tokenize (const std::string& str,
22                std::vector<std::string>& tokens,
23                const std::string& delimiters = " ");
24
25 GDCM_EXPORT std::string CreateCleanString(std::string s);
26 GDCM_EXPORT void        NormalizePath(std::string &name);
27 GDCM_EXPORT std::string GetPath(std::string &fullName);
28 GDCM_EXPORT std::string GetName(std::string &fullName);
29 //-----------------------------------------------------------------------------
30 #endif