-///////////////////////////////////////////////////////////////////////////
-// Because is not available in C++ (?)
-void Tokenize (const std::string& str,
- std::vector<std::string>& tokens,
- const std::string& delimiters) {
- std::string::size_type lastPos = str.find_first_not_of(delimiters,0);
- std::string::size_type pos = str.find_first_of (delimiters,lastPos);
- while (std::string::npos != pos || std::string::npos != lastPos) {
- tokens.push_back(str.substr(lastPos, pos - lastPos));
- lastPos = str.find_first_not_of(delimiters, pos);
- pos = str.find_first_of (delimiters, lastPos);
+/**
+ * \ingroup Globals
+ * \brief Get the (directory) path from a full path file name
+ * @param fullName file/directory name to extract Path from
+ */
+std::string Util::GetPath(std::string const & fullName)
+{
+ std::string res = fullName;
+ int pos1 = res.rfind("/");
+ int pos2 = res.rfind("\\");
+ if( pos1 > pos2)
+ {
+ res.resize(pos1);
+ }
+ else
+ {
+ res.resize(pos2);