![]() |
|
|
Bdb packages | Design docs | Source docs | Guidelines | Recent releases |
|
Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members BdbPathName Class Reference
[BdbUtil]#include <BdbPathName.hh>
Public Methods
~BdbPathName () Static Public Methods
char * relative (const char *refPath, const char *targetPath) char * absolute (const char *refPath, const char *targetPath) char * stem (const char *path, bool trailingSeparator=false) char * leaf (const char *path) char * leaf (const char *path, unsigned int index) char separator () Private Methods
BdbPathName () Static Private Methods
int commonDirsLength (const char *one, const char *two) int countSlashes (const char *aString) const char * leafJoint (const char *path) char * leafJoint (char *path) const char * append (const char *result, char *cursor, const char *start) char * merge (const char *firstPath, const char *secondPath) Constructor & Destructor Documentation
BdbPathName::~BdbPathName ( )
Definition at line 40 of file BdbPathName.cc.
BdbPathName::BdbPathName ( ) [private]
Member Function Documentation
char * BdbPathName::absolute ( const char * refPath, const char * targetPath ) [static]
Definition at line 87 of file BdbPathName.cc.
References localSeparator(), and merge().
Referenced by BdbCollectionCommand::createCollections(), BdbEventStore::fetchCollection(), BdbOutputStream::locateCollection(), BdbCollectionCommand::mapHandler(), BdbEventStore::moveCollection(), BdbModulesUtility::parseCollectionSpecifier(), BdbBridgeCollItemDesc::setAbsoluteBootPath(), and testAbsolute().
const char * BdbPathName::append ( const char * result, char * cursor, const char * start ) [static, private]
Definition at line 159 of file BdbPathName.cc.
References localSeparator().
Referenced by merge().
int BdbPathName::commonDirsLength ( const char * one, const char * two ) [static, private]
Definition at line 360 of file BdbPathName.cc.
References i, localSeparator(), and result.
Referenced by relative().
int BdbPathName::countSlashes ( const char * aString ) [static, private]
Definition at line 385 of file BdbPathName.cc.
References localSeparator().
Referenced by relative().
char * BdbPathName::leaf ( const char * path, unsigned int index ) [static]
Definition at line 303 of file BdbPathName.cc.
References localSeparator(), and result.
char * BdbPathName::leaf ( const char * path ) [static]
Definition at line 277 of file BdbPathName.cc.
References leafJoint(), localSeparator(), and result.
Referenced by BdbCollectionTFactory< T >::getCollection(), BdbEventStore::moveCollection(), BdbDomainAuth::parseAuthLevel(), and BdbDomainAuth::parseAuthName().
char * BdbPathName::leafJoint ( char * path ) [static, private]
Definition at line 395 of file BdbPathName.cc.
References localSeparator(), and result.
const char * BdbPathName::leafJoint ( const char * path ) [static, private]
Definition at line 406 of file BdbPathName.cc.
char * BdbPathName::merge ( const char * firstPath, const char * secondPath ) [static, private]
Definition at line 100 of file BdbPathName.cc.
References append(), leafJoint(), localSeparator(), and result.
Referenced by absolute().
char * BdbPathName::relative ( const char * refPath, const char * targetPath ) [static]
Definition at line 45 of file BdbPathName.cc.
References commonDirsLength(), countSlashes(), and localSeparator().
Referenced by BdbBridgeCollItemDesc::setRelativeBootPath().
char BdbPathName::separator ( ) [static]
Definition at line 354 of file BdbPathName.cc.
Referenced by BdbTreeNode::findBestCachedNode(), BdbDomainAuth::getAuthName(), BdbTreeNode::makeTo(), BdbTreeNode::moveTo(), BdbDomainAuth::parseAuthLevel(), BdbDomainAuth::parseAuthName(), and BdbEventStore::validLastPath().
char * BdbPathName::stem ( const char * path, bool trailingSeparator = false ) [static]
Definition at line 254 of file BdbPathName.cc.
References leafJoint(), and result.
Referenced by BdbFetchCollTFactory< T >::attemptGet(), BdbCollectionTFactory< T >::attemptGet(), BdbCollectionTFactory< T >::getCollection(), BdbEventStore::moveCollection(), and BdbEventStore::removeCollection().
The documentation for this class was generated from the following files:
- /BdbUtil/BdbPathName.hh
- /BdbUtil/BdbPathName.cc
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: October 04, 2002