SvnCpp
svn::RepositoryPath Class Reference

#include <repository_path.hpp>

Public Member Functions

 RepositoryPath (const std::string &path="", const std::string &repositoryRoot="")
 RepositoryPath (const char *path, const char *repositoryRoot)
 RepositoryPath (const RepositoryPath &path)
RepositoryPathoperator= (const RepositoryPath &path)
bool operator== (const RepositoryPath &path) const
std::string getRepositoryRoot () const
Public Member Functions inherited from svn::Path
 Path (const std::string &path="")
 Path (const char *path)
 Path (const Path &path)
Pathoperator= (const Path &)
bool operator== (const Path &) const
const std::string & path () const
const char * c_str () const
bool isSet () const
bool isUrl () const
void addComponent (const char *component)
void addComponent (const std::string &component)
void split (std::string &dirpath, std::string &basename) const
void split (std::string &dir, std::string &filename, std::string &ext) const
std::string basename () const
std::string dirpath () const
std::string substr (const size_t index) const
std::string unescape () const
size_t length () const
std::string native () const

Additional Inherited Members

Static Public Member Functions inherited from svn::Path
static Path getTempDir ()

Detailed Description

Encapsulation for Subversion Path handling with repository root.

Constructor & Destructor Documentation

◆ RepositoryPath() [1/3]

svn::RepositoryPath::RepositoryPath ( const std::string & path = "",
const std::string & repositoryRoot = "" )
inline

Constructor that takes a path as parameter and also repository root path. Both strings are converted to subversion internal representation. The string are copied.

Parameters
pathRepositoryPath string
repositoryRootRepositoryPath string

References svn::Path::Path(), and svn::Path::path().

◆ RepositoryPath() [2/3]

svn::RepositoryPath::RepositoryPath ( const char * path,
const char * repositoryRoot )
inline

Constructor

See also
RepositoryPath::RepositoryPath (const std::string &, const std::string &)
Parameters
pathRepositoryPath string
repositoryRootRepositoryPath string

References svn::Path::Path(), and svn::Path::path().

◆ RepositoryPath() [3/3]

svn::RepositoryPath::RepositoryPath ( const RepositoryPath & path)
inline

Copy constructor

Parameters
pathRepositoryPath to be copied

References getRepositoryRoot(), svn::Path::Path(), and svn::Path::path().

Member Function Documentation

◆ getRepositoryRoot()

std::string svn::RepositoryPath::getRepositoryRoot ( ) const
inline

returns repository root of subversion, which contains this path

Referenced by RepositoryPath().

◆ operator=()

RepositoryPath & svn::RepositoryPath::operator= ( const RepositoryPath & path)
inline

Assignment operator

References svn::Path::Path(), and svn::Path::path().

◆ operator==()

bool svn::RepositoryPath::operator== ( const RepositoryPath & path) const
inline

Comparison operator

References svn::Path::Path(), and svn::Path::path().


The documentation for this class was generated from the following file: