bdm::stdlog Class Reference

Simple logger used for debugging All data records are written out to std from where they could be send to file. More...

#include <loggers.h>

List of all members.

Public Member Functions

 stdlog ()
 default constructor
void init ()
 Initialize storage.
void step ()
 writes everything out
void from_setting (const Setting &set)
 UI for stdlog.
void logit (int id, const vec &v)
 log this vector
void logit (int id, const double &d)
 log this double
void itsave (const char *fname)
 Save values into an itfile named after fname.
void finalize ()
 Finalize storing information.
virtual int add (const RV &rv, string prefix="")
 returns an identifier which will be later needed for calling the logit() function For empty RV it returns -1, this entry will be ignored by logit().
virtual string to_string ()
 This method returns a basic info about the current instance.
virtual void to_setting (Setting &set) const
 This method save all the instance properties into the Setting structure.
virtual void validate ()
 This method TODO.

Protected Attributes

int maxlen
 Maximum length of vectors stored in memory.
int ind
 Currect record to be written.
Array< mat > vectors
 Storage.
string itfilename
 name of it file to save results
Array< RVentries
 RVs of all logged variables.
Array< string > names
 Names of logged quantities, e.g. names of algorithm variants.

Detailed Description

Simple logger used for debugging All data records are written out to std from where they could be send to file.


Member Function Documentation

void bdm::stdlog::from_setting ( const Setting &  set  )  [inline, virtual]

UI for stdlog.

TODO dat tam kam patri, a to celej blok

                logger = {
                        class = "stdlog"; // no parameterization needed
                }

Reimplemented from bdm::memlog.


The documentation for this class was generated from the following file:

Generated on Sun Sep 13 22:40:42 2009 for mixpp by  doxygen 1.6.1