CernVM-FS
2.12.0
|
Go to the source code of this file.
Classes | |
class | ShortString< StackSize, Type > |
Typedefs | |
typedef ShortString < kDefaultMaxPath, 0 > | PathString |
typedef ShortString < kDefaultMaxName, 1 > | NameString |
typedef ShortString < kDefaultMaxLink, 2 > | LinkString |
Functions | |
PathString | GetParentPath (const PathString &path) |
NameString | GetFileName (const PathString &path) |
Variables | |
const unsigned char | kDefaultMaxName = 25 |
const unsigned char | kDefaultMaxLink = 25 |
const unsigned char | kDefaultMaxPath = 200 |
typedef ShortString<kDefaultMaxLink, 2> LinkString |
Definition at line 219 of file shortstring.h.
typedef ShortString<kDefaultMaxName, 1> NameString |
Definition at line 218 of file shortstring.h.
typedef ShortString<kDefaultMaxPath, 0> PathString |
Definition at line 217 of file shortstring.h.
NameString GetFileName | ( | const PathString & | path | ) |
Definition at line 29 of file shortstring.cc.
Referenced by swissknife::CommandScrub::CheckPathAndExtractHash(), catalog::WritableCatalogManager::CloneTree(), DiffTree(), HttpObjectFetcher< CatalogT, HistoryT, ReflogT >::Download(), expand_path(), expand_ppath(), LocalObjectFetcher< CatalogT, HistoryT, ReflogT >::Fetch(), glue::InodeTracker::FindDentry(), FindExecutable(), publish::GetFqrnFromUrl(), publish::SettingsBuilder::GetSingleAlias(), catalog::VirtualCatalog::GetSortedTagsFromCatalog(), main(), MakeShortSocketLink(), swissknife::CommandScrub::OnFileHashed(), posix_get_stat(), swissknife::CommandGraft::Publish(), ResolvePath(), and Watchdog::WaitForSupervisee().
PathString GetParentPath | ( | const PathString & | path | ) |
This file is part of the CernVM File System.
Some common functions.
Definition at line 15 of file shortstring.cc.
Referenced by publish::SyncMediator::Add(), catalog::WritableCatalog::AddEntry(), publish::SyncMediator::AddLocalHardlinkGroups(), swissknife::CommandScrub::CheckPathAndExtractHash(), catalog::WritableCatalogManager::CloneTree(), InstanceInfo::CompleteInfo(), publish::CmdEnter::CreateUnderlay(), cvmfs::cvmfs_lookup(), cvmfs::cvmfs_opendir(), expand_path(), expand_ppath(), glue::InodeTracker::FindDentry(), FindExecutable(), StatisticsDatabase::GetDBParams(), LibContext::GetExtAttr(), glue::PathStore::Insert(), catalog::CatalogDatabase::InsertInitialValues(), publish::CmdEnter::Main(), MakeShortSocketLink(), MkdirDeep(), swissknife::CommandScrub::OnFileHashed(), BashOptionsManager::ParsePath(), posix_cleanup_path(), posix_do_link(), posix_do_mkdir(), posix_do_rmdir(), posix_do_symlink(), posix_do_unlink(), posix_get_stat(), catalog::WritableCatalogManager::RemoveDirectory(), catalog::WritableCatalogManager::RemoveFile(), RemoveShortSocketLink(), anonymous_namespace{cmd_enter.cc}::RemoveUnderlay(), receiver::CatalogMergeTool< RwCatalogMgr, RoCatalogMgr >::ReportAddition(), receiver::CatalogMergeTool< RwCatalogMgr, RoCatalogMgr >::ReportModification(), ResolvePath(), catalog::WritableCatalogManager::SwapNestedCatalog(), catalog::WritableCatalogManager::TouchDirectory(), publish::TransactionImpl(), and Watchdog::WaitForSupervisee().
const unsigned char kDefaultMaxLink = 25 |
Definition at line 23 of file shortstring.h.
const unsigned char kDefaultMaxName = 25 |
This file is part of the CernVM File System.
Implements a string class that stores short strings on the stack and malloc's a std::string on the heap on overflow. Used for file names and path names that are usually small.
Definition at line 22 of file shortstring.h.
const unsigned char kDefaultMaxPath = 200 |
Definition at line 24 of file shortstring.h.