bdm::memlog Class Reference
Logging into matrices in data format in memory, optionally persisted into a file. More...
#include <loggers.h>
Inheritance diagram for bdm::memlog:
Public Member Functions | |
memlog (int maxlen0, string fn="") | |
convenience constructor | |
memlog () | |
Default constructor. | |
void | init () |
Initialize storage. | |
void | step () |
void | log_vector (int id, const vec &v) |
void | log_double (int id, const double &d) |
void | logit (int id, const double &d) |
void | itsave (const char *fname) |
Save values into an itfile named after fname . | |
void | finalize () |
void | from_setting (const Setting &set) |
Protected Attributes | |
int | maxlen |
Maximum length of vectors stored in memory. | |
int | ind |
Currect record to be written. | |
Array< mat > | vectors |
Storage. | |
string | filename |
name of file to save results (IT file for vectors and cfg for settings) | |
bool | file_saved |
this flag is only to assure reentrance of the finalize() method |
Detailed Description
Logging into matrices in data format in memory, optionally persisted into a file.
Member Function Documentation
void bdm::memlog::from_setting | ( | const Setting & | set | ) | [virtual] |
Create object from the following structure
class = 'memlog'; maxlen = []; % size of memory buffer --- optional fields --- filename = 'file_name'; % resulting filename with vectors in itpp format and setting in cfg --- inherited fields --- bdm::logger::from_setting
Reimplemented from bdm::root.
Reimplemented in bdm::stdlog, bdm::dirfilelog, and bdm::mexlog.
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