MUQ  0.4.3
PathTools.h
Go to the documentation of this file.
1 #ifndef PATHTOOLS_H
2 #define PATHTOOLS_H
3 
4 #include <string>
5 
6 namespace muq
7 {
8 
9 namespace Utilities
10 {
20  std::string GetParentPath(std::string const& base);
21 
22 
29  std::pair<std::string, std::string> SplitString(std::string const& path);
30 
31 } // namespace Utilities
32 } // namespace muq
33 
34 
35 
36 
37 
38 #endif // #ifndef PATHTOOLS_H
std::pair< std::string, std::string > SplitString(std::string const &path)
Splits a string on the first forward slash.
Definition: PathTools.cpp:19
std::string GetParentPath(std::string const &base)
Definition: PathTools.cpp:6