Main Page   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals  

svn::Path Class Reference

#include <path.hpp>


Public Methods

 Path (const std::string &path="")
 Path (const char *path)
 Path (const Path &path)
Path & operator= (const Path &)
const std::string & path () const
const char * c_str () const
bool isset () const
void addCompontent (const char *component)
void split (std::string &dirpath, std::string &basename)


Detailed Description

Encapsulation for Subversion Path handling


Constructor & Destructor Documentation

svn::Path::Path const std::string &    path = ""
 

Constructor that takes a string as parameter. The string is converted to subversion internal representation. The string is copied.

Parameters:
path  Path string

svn::Path::Path const char *    path
 

Constructor

See also:
Path::Path (const std::string &)
Parameters:
path  Path string

svn::Path::Path const Path &    path
 

Copy constructor

Parameters:
path  Path to be copied


Member Function Documentation

void svn::Path::addCompontent const char *    component
 

adds a new URL component to the path

Parameters:
component  new component to add

const char* svn::Path::c_str   const
 

Returns:
Path string as c string

bool svn::Path::isset   const
 

check whether a path is set. Right now this checks only if the string is non- empty.

Returns:
true if there is a path set

Path& svn::Path::operator= const Path &   
 

Assignment operator

const std::string& svn::Path::path   const
 

Returns:
Path string

void svn::Path::split std::string &    dirpath,
std::string &    basename
 

split path in its components

Parameters:
dirpath  directory/path component
basename  filename


The documentation for this class was generated from the following file:
Generated on Thu Aug 28 13:22:39 2003 for SvnCpp by doxygen1.2.15