6 #ifndef VCSN_MISC_PATH_HH
7 # define VCSN_MISC_PATH_HH
30 const char* what()
const throw ();
45 path(
const std::string& p);
59 path operator/(
const path& rhs)
const;
62 std::string basename()
const;
64 std::string extension()
const;
71 bool is_absolute()
const;
76 path parent_path()
const;
79 path filename()
const;
85 const std::string& string()
const;
86 const char* c_str()
const;
88 std::ostream& dump(std::ostream& ostr)
const;
99 static const char separator_ =
'/';
115 #endif // !VCSN_MISC_PATH_HH
value_type value_
Wrapped value.
std::ostream & operator<<(std::ostream &os, direction d)
Pretty-printing.
Inline implementation of vcsn::path.
Paths in filesystems, i.e., file names.
std::list< std::string > path_type
bool operator==(empty_t, empty_t)
Exception thrown on invalid path.
std::string value_type
The "native" type we wrap.
bool exists(const path &p)
path absolute(const path &p)