ldas-tools-diskcacheAPI
2.7.1
|
File stream. More...
#include <FStream.hh>
Public Types | |
typedef ::LDASTools::AL::ofstream | stream_type |
typedef ::LDASTools::AL::ofstream | stream_type |
typedef ::LDASTools::AL::ofstream | stream_type |
Public Member Functions | |
OFStream (const std::string &Filename) | |
Constructor. More... | |
~OFStream () | |
Destructor. More... | |
OFStream (const std::string &Filename) | |
Constructor. More... | |
~OFStream () | |
Destructor. More... | |
OFStream (const std::string &Filename) | |
Constructor. More... | |
~OFStream () | |
Destructor. More... | |
Private Attributes | |
std::string | m_filename |
Destination filename. More... | |
std::string | m_filename_tmp |
Temporary filename. More... | |
File stream.
This handles a file stream. As part of handling an output file stream, this class creates a temporary file. If there is no issues with the file, then the temporary file will be renamed.
typedef ::LDASTools::AL::ofstream diskCache::Streams::OFStream::stream_type |
typedef ::LDASTools::AL::ofstream diskCache::Streams::OFStream::stream_type |
typedef ::LDASTools::AL::ofstream diskCache::Streams::OFStream::stream_type |
diskCache::Streams::OFStream::OFStream | ( | const std::string & | Filename | ) |
Constructor.
[in] | Filename | The destination filename. |
diskCache::Streams::OFStream::~OFStream | ( | ) |
Destructor.
diskCache::Streams::OFStream::OFStream | ( | const std::string & | Filename | ) |
Constructor.
[in] | Filename | The destination filename. |
diskCache::Streams::OFStream::~OFStream | ( | ) |
Destructor.
diskCache::Streams::OFStream::OFStream | ( | const std::string & | Filename | ) |
Constructor.
[in] | Filename | The destination filename. |
diskCache::Streams::OFStream::~OFStream | ( | ) |
Destructor.
|
private |
Destination filename.
This is the name of the file. It is used as the base for the temporary name of the file.
|
private |
Temporary filename.
This is the name of the temporary file. This makes the file creation atomic as the file is not available till after all the data is written without encountering an error.