AtomicFile Class Reference

#include <AtomicFile.H>

Inheritance diagram for AtomicFile:

Inheritance graph
[legend]
Collaboration diagram for AtomicFile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void open (const char *name, std::ios::openmode mode, int prot=0644) throw ()
void close () throw ()
 ~AtomicFile () throw ()

Static Public Member Functions

static void cleanup (const char *dirname=".") throw ()

Static Public Attributes

static const char reserved_char

Private Attributes

char * tempname
char * realname

Detailed Description

Definition at line 42 of file AtomicFile.H.


Constructor & Destructor Documentation

AtomicFile::~AtomicFile (  )  throw ()

Definition at line 160 of file AtomicFile.C.

References FS::FdStreamBase::close(), realname, and tempname.

Here is the call graph for this function:


Member Function Documentation

void AtomicFile::open ( const char *  name,
std::ios::openmode  mode,
int  prot = 0644 
) throw ()

Definition at line 58 of file AtomicFile.C.

References FdCache::close(), NEW_PTRFREE_ARRAY, FS::OFdStream::open(), FdCache::open(), AFStaticStuff::suffix, and AFStaticStuff::suffixlen.

Referenced by main(), SMultiPKFile::OpenAtomicWrite(), CacheS::SetMPKsToWeed(), CacheS::SetStableDeleting(), Test(), CacheS::WriteHitFilter(), Weeder::WriteMiscVars(), and Weeder::WriteWeeded().

Here is the call graph for this function:

Here is the caller graph for this function:

void AtomicFile::close (  )  throw ()

Reimplemented from FS::FdStreamBase.

Definition at line 112 of file AtomicFile.C.

References FS::FdStreamBase::close(), Basics::errno_Text(), FdCache::flush(), realname, and tempname.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void AtomicFile::cleanup ( const char *  dirname = "."  )  throw () [static]

Definition at line 177 of file AtomicFile.C.

References NEW_PTRFREE_ARRAY, opendir(), PathnameSep, reserved_char, and AFStaticStuff::suffix.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

char* AtomicFile::tempname [private]

Definition at line 43 of file AtomicFile.H.

Referenced by close(), and ~AtomicFile().

char * AtomicFile::realname [private]

Definition at line 43 of file AtomicFile.H.

Referenced by close(), and ~AtomicFile().

const char AtomicFile::reserved_char [static]

Definition at line 56 of file AtomicFile.H.

Referenced by AFStaticStuff::AFStaticStuff(), cleanup(), and Weeder::PruneGraphLog().


The documentation for this class was generated from the following files:
Generated on Fri May 25 00:45:04 2007 for Vesta by  doxygen 1.5.1