CernVM-FS
2.12.0
|
#include <file_guard.h>
Public Types | |
enum | InitialState { kEnabled, kDisabled } |
Public Member Functions | |
UnlinkGuard () | |
UnlinkGuard (const std::string &path, const InitialState state=kEnabled) | |
~UnlinkGuard () | |
void | Set (const std::string &path) |
bool | IsEnabled () const |
void | Enable () |
void | Disable () |
const std::string & | path () const |
Private Attributes | |
std::string | path_ |
bool | enabled_ |
Additional Inherited Members | |
Private Member Functions inherited from SingleCopy | |
SingleCopy () | |
This file is part of the CernVM File System. RAII object to call unlink()
on a containing file when it gets out of scope
Definition at line 23 of file file_guard.h.
Enumerator | |
---|---|
kEnabled | |
kDisabled |
Definition at line 25 of file file_guard.h.
|
inline |
Definition at line 27 of file file_guard.h.
|
inlineexplicit |
Definition at line 28 of file file_guard.h.
|
inline |
Definition at line 32 of file file_guard.h.
|
inline |
Definition at line 38 of file file_guard.h.
Referenced by swissknife::CommandTag::CloseAndPublishHistory(), and sqlite::Database< DerivedT >::DatabaseRaiiWrapper::DropFileOwnership().
|
inline |
Definition at line 37 of file file_guard.h.
Referenced by sqlite::Database< DerivedT >::DatabaseRaiiWrapper::TakeFileOwnership().
|
inline |
Definition at line 36 of file file_guard.h.
Referenced by sqlite::Database< DerivedT >::DatabaseRaiiWrapper::OwnsFile().
|
inline |
Definition at line 40 of file file_guard.h.
Referenced by swissknife::CommandEditTag::AddNewTag(), swissknife::CommandTag::CloseAndPublishHistory(), sqlite::Database< DerivedT >::DatabaseRaiiWrapper::filename(), and swissknife::CommandRollbackTag::Main().
|
inline |
Definition at line 34 of file file_guard.h.
|
private |
Definition at line 44 of file file_guard.h.
|
private |
Definition at line 43 of file file_guard.h.