Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

AtomicFile Class Reference

#include <AtomicFile.H>

Inheritance diagram for AtomicFile:

FS::OFdStream FS::FdStreamBase 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

Constructor & Destructor Documentation

AtomicFile::~AtomicFile  )  throw ()
 

Definition at line 160 of file AtomicFile.C.

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


Member Function Documentation

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().

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().

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(), CacheS::SetMPKsToWeed(), CacheS::SetStableDeleting(), Test(), CacheS::WriteHitFilter(), Weeder::WriteMiscVars(), and Weeder::WriteWeeded().


Member Data Documentation

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 45 of file AtomicFile.C.

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

char* AtomicFile::tempname [private]
 

Definition at line 43 of file AtomicFile.H.

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


The documentation for this class was generated from the following files:
Generated on Mon May 8 00:49:07 2006 for Vesta by  doxygen 1.4.2