Apache Mesos
Classes | Namespaces | Functions
path.hpp File Reference
#include <string>
#include <utility>
#include <vector>
#include <glog/logging.h>
#include <stout/attributes.hpp>
#include <stout/stringify.hpp>
#include <stout/strings.hpp>
#include <stout/os/constants.hpp>

Go to the source code of this file.

Classes

class  Path
 Represents a POSIX or Windows file system path and offers common path manipulations. More...
 
class  Path::const_iterator
 

Namespaces

 path
 

Functions

std::string path::from_uri (const std::string &uri)
 
Try< std::string > path::normalize (const std::string &path, const char _separator=os::PATH_SEPARATOR)
 
std::string path::join (const std::string &path1, const std::string &path2, const char _separator=os::PATH_SEPARATOR)
 
template<typename... Paths>
std::string path::join (const std::string &path1, const std::string &path2, Paths &&...paths)
 
std::string path::join (const std::vector< std::string > &paths, const char separator=os::PATH_SEPARATOR)
 
bool path::is_absolute (const std::string &path)
 Returns whether the given path is an absolute path. More...
 
STOUT_DEPRECATED bool path::absolute (const std::string &path)
 
bool operator== (const Path &left, const Path &right)
 
bool operator!= (const Path &left, const Path &right)
 
bool operator< (const Path &left, const Path &right)
 
bool operator> (const Path &left, const Path &right)
 
bool operator<= (const Path &left, const Path &right)
 
bool operator>= (const Path &left, const Path &right)
 
std::ostream & operator<< (std::ostream &stream, const Path &path)
 
Try< std::string > path::relative (const std::string &path_, const std::string &base_, char path_separator=os::PATH_SEPARATOR)
 

Function Documentation

bool operator!= ( const Path left,
const Path right 
)
inline
bool operator< ( const Path left,
const Path right 
)
inline
std::ostream& operator<< ( std::ostream &  stream,
const Path path 
)
inline
bool operator<= ( const Path left,
const Path right 
)
inline
bool operator== ( const Path left,
const Path right 
)
inline
bool operator> ( const Path left,
const Path right 
)
inline
bool operator>= ( const Path left,
const Path right 
)
inline