bdm::dirfilelog Class Reference
Logging into dirfile with buffer in memory. More...
#include <loggers.h>
Inheritance diagram for bdm::dirfilelog:
Public Member Functions | |
dirfilelog (string dirname0, int maxlen0) | |
Default constructor. | |
void | init () |
Initialize storage. | |
void | step () |
void | finalize () |
void | write_buffers (int Len) |
Write memory storage to disk. | |
void | from_setting (const Setting &set) |
Protected Attributes | |
string | dirname |
name of the directory | |
Array< string > | scalarnames |
Automatically generated. | |
bool | buffers_written |
this flag is only to assure reentrance of the finalize() method |
Detailed Description
Logging into dirfile with buffer in memory.Dirfile is a special format used by the kst program. See documentation of kst for description.
This format is used to store scalars, hence multivariate RVs must be separated.
Constructor & Destructor Documentation
bdm::dirfilelog::dirfilelog | ( | string | dirname0, | |
int | maxlen0 | |||
) | [inline] |
Default constructor.
- Parameters:
-
dirname0 name of the directory in which to store the results maxlen0 length of the memory buffers, when full the buffers will be dumped to HDD and returned to the beginning.
Member Function Documentation
void bdm::dirfilelog::from_setting | ( | const Setting & | set | ) | [virtual] |
Create object from the following structure
class = 'dirfilelog'; dirname = 'directory_for_files'; % resulting files will be stored there maxlen = []; % size of memory buffer, when full results are written to disk --- inherited fields --- bdm::memlog::from_setting
Reimplemented from bdm::memlog.
void bdm::dirfilelog::write_buffers | ( | int | Len | ) |
Write memory storage to disk.
- Parameters:
-
Len length of buffer to be written, if 0 the file is truncated at 0.
The documentation for this class was generated from the following files:
- loggers.h
- loggers.cpp
Generated on 2 Dec 2013 for mixpp by 1.4.7