B2BITS FIX Antenna HFT  1.0.13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
System::LockedFile Class Reference

Class which creates and destroys on exit locked file. More...

#include <LockedFile.h>

Public Member Functions

 LockedFile (const std::string &name)
 Constructor. More...
 
 ~LockedFile ()
 Closes lock file. More...
 

Protected Attributes

int fd_
 File descriptior. More...
 

Detailed Description

Class which creates and destroys on exit locked file.

Constructor & Destructor Documentation

System::LockedFile::LockedFile ( const std::string &  name)

Constructor.

Creates blocked file.

Parameters
nameFull path.
Exceptions
Utils::Exceptionif class cannot be created. Normally this means that such lock is already created and can be treated as attepmt to start another application instance.
System::LockedFile::~LockedFile ( )

Closes lock file.

Member Data Documentation

int System::LockedFile::fd_
protected

File descriptior.