|
LogCabin
|
RAII-style class to manage a file containing the process ID. More...
Public Member Functions | |
| PidFile (const std::string &filename) | |
| ~PidFile () | |
| void | writePid (int pid) |
| void | removeFile () |
Public Attributes | |
| std::string | filename |
| int | written |
RAII-style class to manage a file containing the process ID.
| anonymous_namespace{Main.cc}::PidFile::PidFile | ( | const std::string & | filename | ) | [inline, explicit] |
| anonymous_namespace{Main.cc}::PidFile::~PidFile | ( | ) | [inline] |
| void anonymous_namespace{Main.cc}::PidFile::writePid | ( | int | pid | ) | [inline] |
| void anonymous_namespace{Main.cc}::PidFile::removeFile | ( | ) | [inline] |
| std::string anonymous_namespace{Main.cc}::PidFile::filename |
| int anonymous_namespace{Main.cc}::PidFile::written |
1.7.6.1