- Project tools
-
-
- How do I...
-
Category |
Featured projects |
scm |
Subversion,
Subclipse,
TortoiseSVN,
RapidSVN
|
issuetrack |
Scarab |
requirements |
xmlbasedsrs |
design |
ArgoUML |
techcomm |
SubEtha,
eyebrowse,
midgard,
cowiki |
construction |
antelope,
scons,
frameworx,
build-interceptor,
propel,
phing
|
testing |
maxq,
aut
|
deployment |
current |
process |
ReadySET |
libraries |
GEF,
Axion,
Style,
SSTree
|
Over 500 more tools... |
|
svn::Path Class Reference#include <path.hpp>
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:
-
svn::Path::Path |
( |
const char * |
path |
) |
|
Constructor
- See also:
- Path::Path (const std::string &)
- Parameters:
-
svn::Path::Path |
( |
const Path & |
path |
) |
|
Copy constructor
- Parameters:
-
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 |
std::string svn::Path::basename |
( |
|
) |
const |
get a basename of a file
- Returns:
- basename filename without path
const char* svn::Path::c_str |
( |
|
) |
const |
- Returns:
- Path string as c string
std::string svn::Path::dirpath |
( |
|
) |
const |
get a name of directory containing file
- Returns:
- dirpath path of directory
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.
- Note:
- This is the successor of isset which had to be removed since there was a name conflict with system headers on some systems (see issue 676)
- Since:
- 0.12
- Returns:
- true if there is a path set
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 & |
|
) |
|
bool svn::Path::operator== |
( |
const Path & |
|
) |
const |
const std::string& svn::Path::path |
( |
|
) |
const |
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 |
std::string svn::Path::substr |
( |
const size_t |
index |
) |
const |
get a substring of a path, starting at index
- Parameters:
-
- Returns:
- substr substring
std::string svn::Path::unescape |
( |
|
) |
const |
return path as a string with unescaped special characters
- Returns:
- unescaped path
The documentation for this class was generated from the following file:
Generated on Tue Oct 6 19:45:58 2009 for SvnCpp by
1.5.8
|