\section{dirfilelog Class Reference}
\label{classdirfilelog}\index{dirfilelog@{dirfilelog}}
Logging into dirfile with buffer in memory.  


{\tt \#include $<$loggers.h$>$}

Inheritance diagram for dirfilelog:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=48pt]{classdirfilelog__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for dirfilelog:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=79pt]{classdirfilelog__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf dirfilelog} (std::string dirname0, int maxlen0)
\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item 
void {\bf init} ()\label{classdirfilelog_afeaebe003110f9db1ac43edf8e53a92}

\begin{CompactList}\small\item\em Initialize storage. \item\end{CompactList}\item 
void {\bf step} (bool final=false)\label{classdirfilelog_887f2bb97e8c92ca42eea1fbac34eb51}

\begin{CompactList}\small\item\em consider this record to be complete \item\end{CompactList}\item 
void {\bf write\_\-buffers} (int Len)
\begin{CompactList}\small\item\em Write memory storage to disk. \item\end{CompactList}\item 
void {\bf logit} (int id, vec v)\label{classmemlog_8d2feeb826f7249e9104d616b5a67144}

\begin{CompactList}\small\item\em log this vector \item\end{CompactList}\item 
void \textbf{itsave} (const char $\ast$fname)\label{classmemlog_65571ebbb16577b5211adbb27baf769c}

\item 
virtual int {\bf add} ({\bf RV} rv, string name=\char`\"{}\char`\"{})\label{classlogger_3d6c6ab580b36619c4010e3ebec55378}

\begin{CompactList}\small\item\em returns an identifier which will be later needed for calling the log() function \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
string {\bf dirname}\label{classdirfilelog_cba5ff1f74ed22910ed7d63aadf21771}

\begin{CompactList}\small\item\em name of the directory \item\end{CompactList}\item 
Array$<$ string $>$ {\bf scalarnames}\label{classdirfilelog_854b7e7cc4cb40542b4a3ea06d915772}

\begin{CompactList}\small\item\em Automatically generated. \item\end{CompactList}\item 
int {\bf maxlen}\label{classmemlog_4195f322897ededdac66c404b848ced3}

\begin{CompactList}\small\item\em Maximum length of vectors stored in memory. \item\end{CompactList}\item 
int {\bf ind}\label{classmemlog_3410b4c002636508c43ddcba8d394520}

\begin{CompactList}\small\item\em Currect record to be written. \item\end{CompactList}\item 
Array$<$ mat $>$ {\bf vectors}\label{classmemlog_f0f5bc7b83539ad102e8f65297852d91}

\begin{CompactList}\small\item\em Storage. \item\end{CompactList}\item 
Array$<$ {\bf RV} $>$ {\bf entries}\label{classlogger_83eea0cf4fbca59474d015f751f128a7}

\begin{CompactList}\small\item\em RVs of all logged variables. \item\end{CompactList}\item 
Array$<$ string $>$ {\bf names}\label{classlogger_39cb79e839ca8f8bb9dcbc8c5b9c7786}

\begin{CompactList}\small\item\em Names of logged quantities, e.g. names of algorithm variants. \item\end{CompactList}\end{CompactItemize}


\subsection{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. 

\subsection{Constructor \& Destructor Documentation}
\index{dirfilelog@{dirfilelog}!dirfilelog@{dirfilelog}}
\index{dirfilelog@{dirfilelog}!dirfilelog@{dirfilelog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}dirfilelog::dirfilelog (std::string {\em dirname0}, \/  int {\em maxlen0})\hspace{0.3cm}{\tt  [inline]}}\label{classdirfilelog_802eeb6fc4ebf11d97638fd5dc651c68}


Default constructor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em dirname0}]name of the directory in which to store the results \item[{\em maxlen0}]length of the memory buffers, when full the buffers will be dumped to HDD and returned to the beginning. \end{description}
\end{Desc}


\subsection{Member Function Documentation}
\index{dirfilelog@{dirfilelog}!write\_\-buffers@{write\_\-buffers}}
\index{write\_\-buffers@{write\_\-buffers}!dirfilelog@{dirfilelog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void dirfilelog::write\_\-buffers (int {\em Len})}\label{classdirfilelog_bd95cdb46af194245f88a7b4bf4c66c7}


Write memory storage to disk. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em Len}]length of buffer to be written, if 0 the file is truncated at 0. \end{description}
\end{Desc}


References dirname, logger::entries, memlog::maxlen, scalarnames, and memlog::vectors.

Referenced by init(), and step().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
work/mixpp/bdm/stat/{\bf loggers.h}\item 
work/mixpp/bdm/stat/loggers.cpp\end{CompactItemize}
