Scarab  v3.9.4
Project 8 C++ Utility Library
path.hh
Go to the documentation of this file.
1 /*
2  * path.hh
3  *
4  * Created on: Jan 22, 2016
5  * Author: nsoblath
6  */
7 
8 #ifndef SCARAB_PATH_HH_
9 #define SCARAB_PATH_HH_
10 
11 #include "scarab_api.hh"
12 
13 #include <boost/filesystem.hpp>
14 
15 #include <string>
16 #include <vector>
17 
18 #ifndef _WIN32
19 #include <wordexp.h>
20 #endif
21 
22 namespace scarab
23 {
24  namespace fs = ::boost::filesystem;
25 
26  typedef fs::path path;
27 
28  path SCARAB_API expand_path( const std::string& a_path );
29 
30  std::vector< path> SCARAB_API glob( const std::string& a_path, const std::string& a_pattern );
31 }
32 
33 
34 
35 #endif /* SCARAB_PATH_HH_ */
fs::path path
Definition: path.hh:26
path expand_path(const string &a_path)
Definition: path.cc:20
#define SCARAB_API
Definition: scarab_api.hh:24
std::vector< path > glob(const string &a_path, const string &a_pattern)
Definition: path.cc:38