Storage Engine API
mongo::RelativePath Struct Reference

this is very much like a boost::path. More...

#include <paths.h>

Detailed Description

this is very much like a boost::path.

however, we define a new type to get some type checking. if you want to say 'my param MUST be a relative path", use this.

Public Member Functions

bool empty () const
 
std::string toString () const
 
bool operator!= (const RelativePath &r) const
 
bool operator== (const RelativePath &r) const
 
bool operator< (const RelativePath &r) const
 
std::string asFullPath () const
 

Static Public Member Functions

static RelativePath fromRelativePath (const std::string &f)
 
static RelativePath fromFullPath (boost::filesystem::path dbpath, boost::filesystem::path f)
 Returns path relative to 'dbpath' from a full path 'f'. More...
 

Public Attributes

std::string _p
 

Member Function Documentation

◆ asFullPath()

std::string mongo::RelativePath::asFullPath ( ) const
inline

◆ empty()

bool mongo::RelativePath::empty ( ) const
inline

◆ fromFullPath()

RelativePath mongo::RelativePath::fromFullPath ( boost::filesystem::path  dbpath,
boost::filesystem::path  f 
)
static

Returns path relative to 'dbpath' from a full path 'f'.

from a full path

◆ fromRelativePath()

static RelativePath mongo::RelativePath::fromRelativePath ( const std::string &  f)
inlinestatic

◆ operator!=()

bool mongo::RelativePath::operator!= ( const RelativePath r) const
inline

◆ operator<()

bool mongo::RelativePath::operator< ( const RelativePath r) const
inline

◆ operator==()

bool mongo::RelativePath::operator== ( const RelativePath r) const
inline

◆ toString()

std::string mongo::RelativePath::toString ( ) const
inline

Member Data Documentation

◆ _p

std::string mongo::RelativePath::_p

The documentation for this struct was generated from the following files: