LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
anonymous_namespace{Main.cc}::PidFile Class Reference

RAII-style class to manage a file containing the process ID. More...

List of all members.

Public Member Functions

 PidFile (const std::string &filename)
 ~PidFile ()
void writePid (int pid)
void removeFile ()

Public Attributes

std::string filename
int written

Detailed Description

RAII-style class to manage a file containing the process ID.

Definition at line 186 of file Main.cc.


Constructor & Destructor Documentation

anonymous_namespace{Main.cc}::PidFile::PidFile ( const std::string &  filename) [inline, explicit]

Definition at line 188 of file Main.cc.

anonymous_namespace{Main.cc}::PidFile::~PidFile ( ) [inline]

Definition at line 194 of file Main.cc.


Member Function Documentation

void anonymous_namespace{Main.cc}::PidFile::writePid ( int  pid) [inline]

Definition at line 198 of file Main.cc.

void anonymous_namespace{Main.cc}::PidFile::removeFile ( ) [inline]

Definition at line 227 of file Main.cc.


Member Data Documentation

std::string anonymous_namespace{Main.cc}::PidFile::filename

Definition at line 268 of file Main.cc.

int anonymous_namespace{Main.cc}::PidFile::written

Definition at line 269 of file Main.cc.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines