CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RaiiTempDir Class Reference

#include <raii_temp_dir.h>

Public Member Functions

std::string dir () const
 
 ~RaiiTempDir ()
 

Static Public Member Functions

static RaiiTempDirCreate (const std::string &prefix)
 

Private Member Functions

 RaiiTempDir (const std::string &prefix)
 

Private Attributes

std::string dir_
 

Detailed Description

This file is part of the CernVM File System. RAII based temporary directory helper class

Instances of the class create a temporary directory which is then deleted by the destructor of the class.

The temporary directory is created using the given prefix string ("prefix.<UNIQUE_SUFFIX>")

Definition at line 19 of file raii_temp_dir.h.

Constructor & Destructor Documentation

RaiiTempDir::~RaiiTempDir ( )

Definition at line 22 of file raii_temp_dir.cc.

Here is the call graph for this function:

RaiiTempDir::RaiiTempDir ( const std::string &  prefix)
explicitprivate

Definition at line 19 of file raii_temp_dir.cc.

Referenced by Create().

Here is the caller graph for this function:

Member Function Documentation

RaiiTempDir * RaiiTempDir::Create ( const std::string &  prefix)
static

This file is part of the CernVM File System.

Definition at line 9 of file raii_temp_dir.cc.

Referenced by CatalogDiffTool< RoCatalogMgr >::Init(), receiver::PayloadProcessor::Initialize(), receiver::CommitProcessor::Process(), and receiver::CatalogMergeTool< RwCatalogMgr, RoCatalogMgr >::Run().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string RaiiTempDir::dir ( ) const
inline

Definition at line 23 of file raii_temp_dir.h.

Referenced by Create().

Here is the caller graph for this function:

Member Data Documentation

std::string RaiiTempDir::dir_
private

Definition at line 30 of file raii_temp_dir.h.

Referenced by dir(), and ~RaiiTempDir().


The documentation for this class was generated from the following files: