Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals | Related Pages

svn::Path Class Reference

#include <path.hpp>


Public Member Functions

 Path (const std::string &path="")
 Path (const char *path)
 Path (const Path &path)
Pathoperator= (const Path &)
const std::string & path () const
const char * c_str () const
bool isset () const
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
size_t length () const
std::string native () const

Static Public Member Functions

static Path getTempDir ()


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::addComponent const std::string &  component  ) 
 

adds a new URL component to the path

Parameters:
component new component to add

void svn::Path::addComponent 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

static Path svn::Path::getTempDir  )  [static]
 

returns the temporary directory

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

const bool svn::Path::isUrl  )  const
 

shows whether we have a path or url

Returns:
true if the path is a valid url

size_t svn::Path::length  )  const
 

return the length of the path-string

std::string svn::Path::native  )  const
 

returns the path with native separators

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

Assignment operator

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

Returns:
Path string

void svn::Path::split std::string &  dir,
std::string &  filename,
std::string &  ext
const
 

split path in its components including file extension

Parameters:
dir directory component
filename filename
ext extension (including leading dot ".")

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

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 Tue Feb 14 15:54:53 2006 for SvnCpp by  doxygen 1.4.4