| [259] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 
|---|
 | 2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | 
|---|
 | 3 | <title>mixpp: bdm::dirfilelog Class Reference</title> | 
|---|
 | 4 | <link href="tabs.css" rel="stylesheet" type="text/css"> | 
|---|
| [290] | 5 | <link href="doxygen.css" rel="stylesheet" type="text/css"> | 
|---|
| [259] | 6 | </head><body> | 
|---|
| [538] | 7 | <!-- Generated by Doxygen 1.5.8 --> | 
|---|
| [271] | 8 | <script type="text/javascript"> | 
|---|
 | 9 | <!-- | 
|---|
 | 10 | function changeDisplayState (e){ | 
|---|
 | 11 |   var num=this.id.replace(/[^[0-9]/g,''); | 
|---|
 | 12 |   var button=this.firstChild; | 
|---|
 | 13 |   var sectionDiv=document.getElementById('dynsection'+num); | 
|---|
 | 14 |   if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ | 
|---|
 | 15 |     sectionDiv.style.display='block'; | 
|---|
 | 16 |     button.src='open.gif'; | 
|---|
 | 17 |   }else{ | 
|---|
 | 18 |     sectionDiv.style.display='none'; | 
|---|
 | 19 |     button.src='closed.gif'; | 
|---|
 | 20 |   } | 
|---|
 | 21 | } | 
|---|
 | 22 | function initDynSections(){ | 
|---|
 | 23 |   var divs=document.getElementsByTagName('div'); | 
|---|
 | 24 |   var sectionCounter=1; | 
|---|
 | 25 |   for(var i=0;i<divs.length-1;i++){ | 
|---|
 | 26 |     if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ | 
|---|
 | 27 |       var header=divs[i]; | 
|---|
 | 28 |       var section=divs[i+1]; | 
|---|
 | 29 |       var button=header.firstChild; | 
|---|
 | 30 |       if (button!='IMG'){ | 
|---|
 | 31 |         divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); | 
|---|
 | 32 |         button=document.createElement('img'); | 
|---|
 | 33 |         divs[i].insertBefore(button,divs[i].firstChild); | 
|---|
 | 34 |       } | 
|---|
 | 35 |       header.style.cursor='pointer'; | 
|---|
 | 36 |       header.onclick=changeDisplayState; | 
|---|
 | 37 |       header.id='dynheader'+sectionCounter; | 
|---|
 | 38 |       button.src='closed.gif'; | 
|---|
 | 39 |       section.id='dynsection'+sectionCounter; | 
|---|
 | 40 |       section.style.display='none'; | 
|---|
 | 41 |       section.style.marginLeft='14px'; | 
|---|
 | 42 |       sectionCounter++; | 
|---|
 | 43 |     } | 
|---|
 | 44 |   } | 
|---|
 | 45 | } | 
|---|
 | 46 | window.onload = initDynSections; | 
|---|
 | 47 | --> | 
|---|
 | 48 | </script> | 
|---|
| [259] | 49 | <div class="navigation" id="top"> | 
|---|
 | 50 |   <div class="tabs"> | 
|---|
 | 51 |     <ul> | 
|---|
| [271] | 52 |       <li><a href="main.html"><span>Main Page</span></a></li> | 
|---|
| [259] | 53 |       <li><a href="pages.html"><span>Related Pages</span></a></li> | 
|---|
| [290] | 54 |       <li class="current"><a href="annotated.html"><span>Classes</span></a></li> | 
|---|
| [259] | 55 |       <li><a href="files.html"><span>Files</span></a></li> | 
|---|
 | 56 |     </ul> | 
|---|
 | 57 |   </div> | 
|---|
 | 58 |   <div class="tabs"> | 
|---|
 | 59 |     <ul> | 
|---|
 | 60 |       <li><a href="annotated.html"><span>Class List</span></a></li> | 
|---|
| [290] | 61 |       <li><a href="classes.html"><span>Class Index</span></a></li> | 
|---|
| [259] | 62 |       <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> | 
|---|
 | 63 |       <li><a href="functions.html"><span>Class Members</span></a></li> | 
|---|
 | 64 |     </ul> | 
|---|
 | 65 |   </div> | 
|---|
| [271] | 66 |   <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1dirfilelog.html">dirfilelog</a> | 
|---|
| [259] | 67 |   </div> | 
|---|
 | 68 | </div> | 
|---|
 | 69 | <div class="contents"> | 
|---|
| [290] | 70 | <h1>bdm::dirfilelog Class Reference</h1><!-- doxytag: class="bdm::dirfilelog" --><!-- doxytag: inherits="bdm::memlog" -->Logging into dirfile with buffer in memory.   | 
|---|
 | 71 | <a href="#_details">More...</a> | 
|---|
| [259] | 72 | <p> | 
|---|
| [538] | 73 | <code>#include <<a class="el" href="loggers_8h-source.html">loggers.h</a>></code> | 
|---|
| [290] | 74 | <p> | 
|---|
| [259] | 75 |  | 
|---|
 | 76 | <p> | 
|---|
| [290] | 77 | <a href="classbdm_1_1dirfilelog-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> | 
|---|
| [259] | 78 | <tr><td></td></tr> | 
|---|
 | 79 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> | 
|---|
| [368] | 80 | <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1dirfilelog.html#15e1c0228c8ecefb372b364742748dff">dirfilelog</a> (string dirname0, int maxlen0)</td></tr> | 
|---|
| [259] | 81 |  | 
|---|
| [368] | 82 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor.  <a href="#15e1c0228c8ecefb372b364742748dff"></a><br></td></tr> | 
|---|
| [259] | 83 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="78a3bd8a83cbd6299e279544bc81493d"></a><!-- doxytag: member="bdm::dirfilelog::init" ref="78a3bd8a83cbd6299e279544bc81493d" args="()" --> | 
|---|
 | 84 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1dirfilelog.html#78a3bd8a83cbd6299e279544bc81493d">init</a> ()</td></tr> | 
|---|
 | 85 |  | 
|---|
 | 86 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize storage. <br></td></tr> | 
|---|
 | 87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f79660645d09aa2d8bdd18923a721662"></a><!-- doxytag: member="bdm::dirfilelog::step" ref="f79660645d09aa2d8bdd18923a721662" args="()" --> | 
|---|
 | 88 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1dirfilelog.html#f79660645d09aa2d8bdd18923a721662">step</a> ()</td></tr> | 
|---|
 | 89 |  | 
|---|
 | 90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Shifts storage position for another time step. <br></td></tr> | 
|---|
 | 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="521d7ba159f97a0182392df27953804f"></a><!-- doxytag: member="bdm::dirfilelog::finalize" ref="521d7ba159f97a0182392df27953804f" args="()" --> | 
|---|
 | 92 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1dirfilelog.html#521d7ba159f97a0182392df27953804f">finalize</a> ()</td></tr> | 
|---|
 | 93 |  | 
|---|
 | 94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Finalize storing information. <br></td></tr> | 
|---|
 | 95 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1dirfilelog.html#f595c0df25f5fa5d8c27ea1e375d9c51">write_buffers</a> (int Len)</td></tr> | 
|---|
 | 96 |  | 
|---|
 | 97 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Write memory storage to disk.  <a href="#f595c0df25f5fa5d8c27ea1e375d9c51"></a><br></td></tr> | 
|---|
| [396] | 98 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1dirfilelog.html#a32de0f314a30392d69f07458643514e">from_setting</a> (const Setting &set)</td></tr> | 
|---|
| [368] | 99 |  | 
|---|
| [472] | 100 | <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classbdm_1_1UI.html" title="UI is an abstract class which collects all the auxiliary functions useful to prepare...">UI</a> for <a class="el" href="classbdm_1_1dirfilelog.html" title="Logging into dirfile with buffer in memory.">dirfilelog</a> (Kst file format).  <a href="#a32de0f314a30392d69f07458643514e"></a><br></td></tr> | 
|---|
| [259] | 101 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="364e58c5d7058776c2a9cfa7d58dad6d"></a><!-- doxytag: member="bdm::dirfilelog::logit" ref="364e58c5d7058776c2a9cfa7d58dad6d" args="(int id, const vec &v)" --> | 
|---|
 | 102 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#364e58c5d7058776c2a9cfa7d58dad6d">logit</a> (int id, const vec &v)</td></tr> | 
|---|
 | 103 |  | 
|---|
 | 104 | <tr><td class="mdescLeft"> </td><td class="mdescRight">log this vector <br></td></tr> | 
|---|
| [353] | 105 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2b57dbd3dff49a98c6ce8fccccb170af"></a><!-- doxytag: member="bdm::dirfilelog::logit" ref="2b57dbd3dff49a98c6ce8fccccb170af" args="(int id, const double &d)" --> | 
|---|
 | 106 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#2b57dbd3dff49a98c6ce8fccccb170af">logit</a> (int id, const double &d)</td></tr> | 
|---|
 | 107 |  | 
|---|
 | 108 | <tr><td class="mdescLeft"> </td><td class="mdescRight">log this double <br></td></tr> | 
|---|
| [259] | 109 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6a74b7a3d889607391594279112aef1f"></a><!-- doxytag: member="bdm::dirfilelog::itsave" ref="6a74b7a3d889607391594279112aef1f" args="(const char *fname)" --> | 
|---|
 | 110 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#6a74b7a3d889607391594279112aef1f">itsave</a> (const char *fname)</td></tr> | 
|---|
 | 111 |  | 
|---|
 | 112 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Save values into an itfile named after <code>fname</code>. <br></td></tr> | 
|---|
| [353] | 113 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1logger.html#47aa3b098a81d02a8ffaea2c9fa09ac7">add</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv, string prefix="")</td></tr> | 
|---|
| [259] | 114 |  | 
|---|
| [396] | 115 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::dirfilelog::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> | 
|---|
 | 116 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> | 
|---|
| [353] | 117 |  | 
|---|
 | 118 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> | 
|---|
| [396] | 119 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::dirfilelog::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> | 
|---|
 | 120 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#67d954d255ede776eade7334d4895790">to_setting</a> (Setting &set) const </td></tr> | 
|---|
| [353] | 121 |  | 
|---|
 | 122 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> | 
|---|
| [396] | 123 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::dirfilelog::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> | 
|---|
 | 124 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> | 
|---|
| [368] | 125 |  | 
|---|
 | 126 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> | 
|---|
| [259] | 127 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> | 
|---|
 | 128 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="985eb02770f01e25cdceff32ff53a9c5"></a><!-- doxytag: member="bdm::dirfilelog::dirname" ref="985eb02770f01e25cdceff32ff53a9c5" args="" --> | 
|---|
 | 129 | string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1dirfilelog.html#985eb02770f01e25cdceff32ff53a9c5">dirname</a></td></tr> | 
|---|
 | 130 |  | 
|---|
 | 131 | <tr><td class="mdescLeft"> </td><td class="mdescRight">name of the directory <br></td></tr> | 
|---|
 | 132 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7805040fe1ffa2a048c33980bc995793"></a><!-- doxytag: member="bdm::dirfilelog::scalarnames" ref="7805040fe1ffa2a048c33980bc995793" args="" --> | 
|---|
| [354] | 133 | Array< string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1dirfilelog.html#7805040fe1ffa2a048c33980bc995793">scalarnames</a></td></tr> | 
|---|
| [259] | 134 |  | 
|---|
 | 135 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Automatically generated. <br></td></tr> | 
|---|
 | 136 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a690ebd91430b5973855c9b4c9cf1b1d"></a><!-- doxytag: member="bdm::dirfilelog::maxlen" ref="a690ebd91430b5973855c9b4c9cf1b1d" args="" --> | 
|---|
 | 137 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#a690ebd91430b5973855c9b4c9cf1b1d">maxlen</a></td></tr> | 
|---|
 | 138 |  | 
|---|
 | 139 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Maximum length of vectors stored in memory. <br></td></tr> | 
|---|
 | 140 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="70cec1d3549a82796ad7b6f0d07a4570"></a><!-- doxytag: member="bdm::dirfilelog::ind" ref="70cec1d3549a82796ad7b6f0d07a4570" args="" --> | 
|---|
 | 141 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#70cec1d3549a82796ad7b6f0d07a4570">ind</a></td></tr> | 
|---|
 | 142 |  | 
|---|
 | 143 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Currect record to be written. <br></td></tr> | 
|---|
 | 144 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1fed143162f2de6ef1c1b6557964f24e"></a><!-- doxytag: member="bdm::dirfilelog::vectors" ref="1fed143162f2de6ef1c1b6557964f24e" args="" --> | 
|---|
| [354] | 145 | Array< mat > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e">vectors</a></td></tr> | 
|---|
| [259] | 146 |  | 
|---|
 | 147 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Storage. <br></td></tr> | 
|---|
| [353] | 148 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="11fdf8ffca0f509ff637b0c3ac161c1f"></a><!-- doxytag: member="bdm::dirfilelog::itfilename" ref="11fdf8ffca0f509ff637b0c3ac161c1f" args="" --> | 
|---|
 | 149 | string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#11fdf8ffca0f509ff637b0c3ac161c1f">itfilename</a></td></tr> | 
|---|
 | 150 |  | 
|---|
 | 151 | <tr><td class="mdescLeft"> </td><td class="mdescRight">name of it file to save results <br></td></tr> | 
|---|
| [259] | 152 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c54566a4554089443a20b2a49ed1a61f"></a><!-- doxytag: member="bdm::dirfilelog::entries" ref="c54566a4554089443a20b2a49ed1a61f" args="" --> | 
|---|
| [354] | 153 | Array< <a class="el" href="classbdm_1_1RV.html">RV</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f">entries</a></td></tr> | 
|---|
| [259] | 154 |  | 
|---|
 | 155 | <tr><td class="mdescLeft"> </td><td class="mdescRight">RVs of all logged variables. <br></td></tr> | 
|---|
 | 156 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="68ca1f05cf3d414ba0f39211977b8d02"></a><!-- doxytag: member="bdm::dirfilelog::names" ref="68ca1f05cf3d414ba0f39211977b8d02" args="" --> | 
|---|
| [354] | 157 | Array< string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1logger.html#68ca1f05cf3d414ba0f39211977b8d02">names</a></td></tr> | 
|---|
| [259] | 158 |  | 
|---|
 | 159 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Names of logged quantities, e.g. names of algorithm variants. <br></td></tr> | 
|---|
 | 160 | </table> | 
|---|
| [290] | 161 | <hr><a name="_details"></a><h2>Detailed Description</h2> | 
|---|
 | 162 | Logging into dirfile with buffer in memory.  | 
|---|
 | 163 | <p> | 
|---|
 | 164 | Dirfile is a special format used by the kst program. See documentation of kst for description.<p> | 
|---|
 | 165 | This format is used to store scalars, hence multivariate RVs must be separated. <hr><h2>Constructor & Destructor Documentation</h2> | 
|---|
| [368] | 166 | <a class="anchor" name="15e1c0228c8ecefb372b364742748dff"></a><!-- doxytag: member="bdm::dirfilelog::dirfilelog" ref="15e1c0228c8ecefb372b364742748dff" args="(string dirname0, int maxlen0)" --> | 
|---|
| [259] | 167 | <div class="memitem"> | 
|---|
 | 168 | <div class="memproto"> | 
|---|
 | 169 |       <table class="memname"> | 
|---|
 | 170 |         <tr> | 
|---|
 | 171 |           <td class="memname">bdm::dirfilelog::dirfilelog           </td> | 
|---|
 | 172 |           <td>(</td> | 
|---|
| [368] | 173 |           <td class="paramtype">string </td> | 
|---|
| [259] | 174 |           <td class="paramname"> <em>dirname0</em>, </td> | 
|---|
 | 175 |         </tr> | 
|---|
 | 176 |         <tr> | 
|---|
 | 177 |           <td class="paramkey"></td> | 
|---|
 | 178 |           <td></td> | 
|---|
 | 179 |           <td class="paramtype">int </td> | 
|---|
 | 180 |           <td class="paramname"> <em>maxlen0</em></td><td> </td> | 
|---|
 | 181 |         </tr> | 
|---|
 | 182 |         <tr> | 
|---|
 | 183 |           <td></td> | 
|---|
 | 184 |           <td>)</td> | 
|---|
 | 185 |           <td></td><td></td><td><code> [inline]</code></td> | 
|---|
 | 186 |         </tr> | 
|---|
 | 187 |       </table> | 
|---|
 | 188 | </div> | 
|---|
 | 189 | <div class="memdoc"> | 
|---|
 | 190 |  | 
|---|
 | 191 | <p> | 
|---|
 | 192 | Default constructor.  | 
|---|
 | 193 | <p> | 
|---|
 | 194 | <dl compact><dt><b>Parameters:</b></dt><dd> | 
|---|
 | 195 |   <table border="0" cellspacing="2" cellpadding="0"> | 
|---|
 | 196 |     <tr><td valign="top"></td><td valign="top"><em>dirname0</em> </td><td>name of the directory in which to store the results </td></tr> | 
|---|
 | 197 |     <tr><td valign="top"></td><td valign="top"><em>maxlen0</em> </td><td>length of the memory buffers, when full the buffers will be dumped to HDD and returned to the beginning. </td></tr> | 
|---|
 | 198 |   </table> | 
|---|
 | 199 | </dl> | 
|---|
 | 200 |  | 
|---|
 | 201 | </div> | 
|---|
 | 202 | </div><p> | 
|---|
 | 203 | <hr><h2>Member Function Documentation</h2> | 
|---|
| [353] | 204 | <a class="anchor" name="47aa3b098a81d02a8ffaea2c9fa09ac7"></a><!-- doxytag: member="bdm::dirfilelog::add" ref="47aa3b098a81d02a8ffaea2c9fa09ac7" args="(const RV &rv, string prefix="")" --> | 
|---|
| [259] | 205 | <div class="memitem"> | 
|---|
 | 206 | <div class="memproto"> | 
|---|
 | 207 |       <table class="memname"> | 
|---|
 | 208 |         <tr> | 
|---|
| [290] | 209 |           <td class="memname">virtual int bdm::logger::add           </td> | 
|---|
| [259] | 210 |           <td>(</td> | 
|---|
| [290] | 211 |           <td class="paramtype">const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td> | 
|---|
 | 212 |           <td class="paramname"> <em>rv</em>, </td> | 
|---|
 | 213 |         </tr> | 
|---|
 | 214 |         <tr> | 
|---|
 | 215 |           <td class="paramkey"></td> | 
|---|
| [259] | 216 |           <td></td> | 
|---|
| [290] | 217 |           <td class="paramtype">string </td> | 
|---|
| [353] | 218 |           <td class="paramname"> <em>prefix</em> = <code>""</code></td><td> </td> | 
|---|
| [259] | 219 |         </tr> | 
|---|
| [290] | 220 |         <tr> | 
|---|
 | 221 |           <td></td> | 
|---|
 | 222 |           <td>)</td> | 
|---|
 | 223 |           <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> | 
|---|
 | 224 |         </tr> | 
|---|
| [259] | 225 |       </table> | 
|---|
 | 226 | </div> | 
|---|
 | 227 | <div class="memdoc"> | 
|---|
 | 228 |  | 
|---|
 | 229 | <p> | 
|---|
| [290] | 230 | returns an identifier which will be later needed for calling the <code><a class="el" href="classbdm_1_1logger.html#397c014b0aaf3581516e2a105d26a5c9" title="log this vector">logit()</a></code> function For empty <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> it returns -1, this entry will be ignored by <code><a class="el" href="classbdm_1_1logger.html#397c014b0aaf3581516e2a105d26a5c9" title="log this vector">logit()</a></code>.  | 
|---|
| [590] | 231 | <p>References <a class="el" href="bdmbase_8h-source.html#l00670">bdm::logger::entries</a>, and <a class="el" href="bdmbase_8h-source.html#l00672">bdm::logger::names</a>.</p> | 
|---|
| [259] | 232 |  | 
|---|
| [590] | 233 | <p>Referenced by <a class="el" href="datasources_8h-source.html#l00203">bdm::ArxDS::log_add()</a>, <a class="el" href="bdmbase_8h-source.html#l00966">bdm::BM::log_add()</a>, and <a class="el" href="bdmbase_8h-source.html#l00790">bdm::DS::log_add()</a>.</p> | 
|---|
| [397] | 234 |  | 
|---|
| [259] | 235 | </div> | 
|---|
 | 236 | </div><p> | 
|---|
| [396] | 237 | <a class="anchor" name="a32de0f314a30392d69f07458643514e"></a><!-- doxytag: member="bdm::dirfilelog::from_setting" ref="a32de0f314a30392d69f07458643514e" args="(const Setting &set)" --> | 
|---|
| [368] | 238 | <div class="memitem"> | 
|---|
 | 239 | <div class="memproto"> | 
|---|
 | 240 |       <table class="memname"> | 
|---|
 | 241 |         <tr> | 
|---|
 | 242 |           <td class="memname">void bdm::dirfilelog::from_setting           </td> | 
|---|
 | 243 |           <td>(</td> | 
|---|
 | 244 |           <td class="paramtype">const Setting & </td> | 
|---|
| [396] | 245 |           <td class="paramname"> <em>set</em>          </td> | 
|---|
| [368] | 246 |           <td> ) </td> | 
|---|
 | 247 |           <td><code> [virtual]</code></td> | 
|---|
 | 248 |         </tr> | 
|---|
 | 249 |       </table> | 
|---|
 | 250 | </div> | 
|---|
 | 251 | <div class="memdoc"> | 
|---|
 | 252 |  | 
|---|
 | 253 | <p> | 
|---|
| [472] | 254 | <a class="el" href="classbdm_1_1UI.html" title="UI is an abstract class which collects all the auxiliary functions useful to prepare...">UI</a> for <a class="el" href="classbdm_1_1dirfilelog.html" title="Logging into dirfile with buffer in memory.">dirfilelog</a> (Kst file format).  | 
|---|
| [368] | 255 | <p> | 
|---|
 | 256 | <div class="fragment"><pre class="fragment">        <a class="code" href="classbdm_1_1logger.html#f9c2fe7db5ddbda0098a4a5bd2c29fbf" title="Default constructor.">logger</a> = { | 
|---|
| [472] | 257 |                 <span class="keyword">class </span>= "<a class="code" href="classbdm_1_1dirfilelog.html#15e1c0228c8ecefb372b364742748dff" title="Default constructor.">dirfilelog</a>"; | 
|---|
 | 258 |                 <a class="code" href="classbdm_1_1dirfilelog.html#985eb02770f01e25cdceff32ff53a9c5" title="name of the directory">dirname</a> = <span class="stringliteral">"directory_for_files"</span>; <span class="comment">// resulting files will be stored there</span> | 
|---|
| [368] | 259 |                 <a class="code" href="classbdm_1_1memlog.html#a690ebd91430b5973855c9b4c9cf1b1d" title="Maximum length of vectors stored in memory.">maxlen</a> = 100;                    <span class="comment">// size of memory buffer, when full results are written to disk</span> | 
|---|
 | 260 |         } | 
|---|
 | 261 | </pre></div>  | 
|---|
| [396] | 262 | <p>Reimplemented from <a class="el" href="classbdm_1_1memlog.html#7352b474bc54c35ab7c9297c5b958629">bdm::memlog</a>.</p> | 
|---|
| [368] | 263 |  | 
|---|
| [590] | 264 | <p>References <a class="el" href="loggers_8h-source.html#l00102">dirname</a>, <a class="el" href="loggers_8h-source.html#l00029">bdm::memlog::maxlen</a>, and <a class="el" href="loggers_8h-source.html#l00104">scalarnames</a>.</p> | 
|---|
| [368] | 265 |  | 
|---|
 | 266 | </div> | 
|---|
 | 267 | </div><p> | 
|---|
| [290] | 268 | <a class="anchor" name="f595c0df25f5fa5d8c27ea1e375d9c51"></a><!-- doxytag: member="bdm::dirfilelog::write_buffers" ref="f595c0df25f5fa5d8c27ea1e375d9c51" args="(int Len)" --> | 
|---|
| [271] | 269 | <div class="memitem"> | 
|---|
 | 270 | <div class="memproto"> | 
|---|
 | 271 |       <table class="memname"> | 
|---|
 | 272 |         <tr> | 
|---|
| [290] | 273 |           <td class="memname">void bdm::dirfilelog::write_buffers           </td> | 
|---|
| [271] | 274 |           <td>(</td> | 
|---|
| [290] | 275 |           <td class="paramtype">int </td> | 
|---|
 | 276 |           <td class="paramname"> <em>Len</em>          </td> | 
|---|
 | 277 |           <td> ) </td> | 
|---|
| [271] | 278 |           <td></td> | 
|---|
 | 279 |         </tr> | 
|---|
 | 280 |       </table> | 
|---|
 | 281 | </div> | 
|---|
 | 282 | <div class="memdoc"> | 
|---|
 | 283 |  | 
|---|
 | 284 | <p> | 
|---|
| [290] | 285 | Write memory storage to disk.  | 
|---|
 | 286 | <p> | 
|---|
 | 287 | <dl compact><dt><b>Parameters:</b></dt><dd> | 
|---|
 | 288 |   <table border="0" cellspacing="2" cellpadding="0"> | 
|---|
 | 289 |     <tr><td valign="top"></td><td valign="top"><em>Len</em> </td><td>length of buffer to be written, if 0 the file is truncated at 0. </td></tr> | 
|---|
 | 290 |   </table> | 
|---|
 | 291 | </dl> | 
|---|
| [271] | 292 |  | 
|---|
| [590] | 293 | <p>References <a class="el" href="bdmerror_8h-source.html#l00047">bdm_assert_debug</a>, <a class="el" href="loggers_8h-source.html#l00102">dirname</a>, <a class="el" href="bdmbase_8h-source.html#l00670">bdm::logger::entries</a>, <a class="el" href="loggers_8h-source.html#l00029">bdm::memlog::maxlen</a>, <a class="el" href="loggers_8h-source.html#l00104">scalarnames</a>, and <a class="el" href="loggers_8h-source.html#l00033">bdm::memlog::vectors</a>.</p> | 
|---|
| [271] | 294 |  | 
|---|
| [590] | 295 | <p>Referenced by <a class="el" href="loggers_8cpp-source.html#l00169">finalize()</a>, <a class="el" href="loggers_8cpp-source.html#l00055">init()</a>, and <a class="el" href="loggers_8cpp-source.html#l00159">step()</a>.</p> | 
|---|
| [290] | 296 |  | 
|---|
| [271] | 297 | </div> | 
|---|
 | 298 | </div><p> | 
|---|
| [259] | 299 | <hr>The documentation for this class was generated from the following files:<ul> | 
|---|
| [538] | 300 | <li><a class="el" href="loggers_8h-source.html">loggers.h</a><li>loggers.cpp</ul> | 
|---|
| [259] | 301 | </div> | 
|---|
| [590] | 302 | <hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 29 20:49:46 2009 for mixpp by  | 
|---|
| [259] | 303 | <a href="http://www.doxygen.org/index.html"> | 
|---|
| [538] | 304 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> | 
|---|
| [259] | 305 | </body> | 
|---|
 | 306 | </html> | 
|---|