move Path object to separate file

This commit is contained in:
Antonio SJ Musumeci 2015-06-22 23:22:51 -04:00
parent 23cca83742
commit 2bd44568a1
23 changed files with 98 additions and 65 deletions

View file

@ -29,6 +29,8 @@
#include <vector>
#include <map>
#include "path.hpp"
namespace fs
{
using std::size_t;
@ -36,30 +38,6 @@ namespace fs
using std::vector;
using std::map;
struct Path
{
Path() {}
explicit
Path(const string &b,
const string &f)
: base(b),
full(f)
{}
explicit
Path(const char *b,
const string &f)
: base(b),
full(f)
{}
string base;
string full;
};
typedef vector<Path> Paths;
string dirname(const string &path);
string basename(const string &path);