40 #ifndef CA_MGM_PATH_PATHNAME_HPP
41 #define CA_MGM_PATH_PATHNAME_HPP
43 #include <ca-mgm/config.h>
48 #define FILENAME_SEPARATOR "/"
49 #define FILENAME_SEPARATOR_C '/'
52 namespace CA_MGM_NAMESPACE
68 typedef std::list<std::string>
List;
160 std::string prefix()
const;
175 bool absolute()
const;
183 bool relative()
const;
227 std::string baseName()
const;
243 static std::string baseName(
const PathName &path);
352 PathName extend(
const std::string &ext)
const;
375 const std::string &ext);
385 bool equal(
const PathName &rpath)
const;
394 static bool equal(
const PathName &lpath,
409 void assign(
const std::string &path);
437 return PathName::equal( lname, rname);
445 return !PathName::equal( lname, rname);
453 return PathName::cat( lname, rname);
458 extern std::ostream &
459 operator<<(std::ostream &ostr,
const PathName &path);
466 #endif // CA_MGM_PATH_PATHNAME_HPP
PathName operator+(const PathName &lname, const PathName &rname)
Definition: PathName.hpp:451
PathName manipulation class.
Definition: PathName.hpp:65
bool operator!=(const PathName &lname, const PathName &rname)
Definition: PathName.hpp:443
std::string toString(bool b)
Definition: String.hpp:125
size_t m_prefix
holds index of first character in the path string after an (optional) drive letter.
Definition: PathName.hpp:428
std::string asString() const
Definition: PathName.hpp:136
std::ostream & operator<<(std::ostream &ostr, const PathName &path)
std::list< std::string > List
Definition: PathName.hpp:68
std::string m_name
Definition: PathName.hpp:429
bool operator==(const PathName &lname, const PathName &rname)
Definition: PathName.hpp:435