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"> |
---|
5 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
6 | </head><body> |
---|
7 | <!-- Generated by Doxygen 1.5.8 --> |
---|
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> |
---|
49 | <div class="navigation" id="top"> |
---|
50 | <div class="tabs"> |
---|
51 | <ul> |
---|
52 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
53 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
54 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
55 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
56 | <li><a href="files.html"><span>Files</span></a></li> |
---|
57 | </ul> |
---|
58 | </div> |
---|
59 | <div class="tabs"> |
---|
60 | <ul> |
---|
61 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
62 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
63 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
64 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
65 | </ul> |
---|
66 | </div> |
---|
67 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1dirfilelog.html">dirfilelog</a> |
---|
68 | </div> |
---|
69 | </div> |
---|
70 | <div class="contents"> |
---|
71 | <h1>bdm::dirfilelog Class Reference</h1><!-- doxytag: class="bdm::dirfilelog" --><!-- doxytag: inherits="bdm::memlog" -->Logging into dirfile with buffer in memory. |
---|
72 | <a href="#_details">More...</a> |
---|
73 | <p> |
---|
74 | <code>#include <<a class="el" href="loggers_8h-source.html">loggers.h</a>></code> |
---|
75 | <p> |
---|
76 | |
---|
77 | <p> |
---|
78 | <a href="classbdm_1_1dirfilelog-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
79 | <tr><td></td></tr> |
---|
80 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
81 | <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> |
---|
82 | |
---|
83 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#15e1c0228c8ecefb372b364742748dff"></a><br></td></tr> |
---|
84 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="78a3bd8a83cbd6299e279544bc81493d"></a><!-- doxytag: member="bdm::dirfilelog::init" ref="78a3bd8a83cbd6299e279544bc81493d" args="()" --> |
---|
85 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1dirfilelog.html#78a3bd8a83cbd6299e279544bc81493d">init</a> ()</td></tr> |
---|
86 | |
---|
87 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize storage. <br></td></tr> |
---|
88 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f79660645d09aa2d8bdd18923a721662"></a><!-- doxytag: member="bdm::dirfilelog::step" ref="f79660645d09aa2d8bdd18923a721662" args="()" --> |
---|
89 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1dirfilelog.html#f79660645d09aa2d8bdd18923a721662">step</a> ()</td></tr> |
---|
90 | |
---|
91 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Shifts storage position for another time step. <br></td></tr> |
---|
92 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="521d7ba159f97a0182392df27953804f"></a><!-- doxytag: member="bdm::dirfilelog::finalize" ref="521d7ba159f97a0182392df27953804f" args="()" --> |
---|
93 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1dirfilelog.html#521d7ba159f97a0182392df27953804f">finalize</a> ()</td></tr> |
---|
94 | |
---|
95 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Finalize storing information. <br></td></tr> |
---|
96 | <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> |
---|
97 | |
---|
98 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Write memory storage to disk. <a href="#f595c0df25f5fa5d8c27ea1e375d9c51"></a><br></td></tr> |
---|
99 | <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> |
---|
100 | |
---|
101 | <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classbdm_1_1UI.html" title="UI is an abstract class and it is intended for internal purposes only.">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> |
---|
102 | <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)" --> |
---|
103 | 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> |
---|
104 | |
---|
105 | <tr><td class="mdescLeft"> </td><td class="mdescRight">log this vector <br></td></tr> |
---|
106 | <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)" --> |
---|
107 | 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> |
---|
108 | |
---|
109 | <tr><td class="mdescLeft"> </td><td class="mdescRight">log this double <br></td></tr> |
---|
110 | <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)" --> |
---|
111 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#6a74b7a3d889607391594279112aef1f">itsave</a> (const char *fname)</td></tr> |
---|
112 | |
---|
113 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Save values into an itfile named after <code>fname</code>. <br></td></tr> |
---|
114 | <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> |
---|
115 | |
---|
116 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::dirfilelog::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
---|
117 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
---|
118 | |
---|
119 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
---|
120 | <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 " --> |
---|
121 | 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> |
---|
122 | |
---|
123 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
---|
124 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::dirfilelog::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
125 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
126 | |
---|
127 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
---|
128 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
129 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="985eb02770f01e25cdceff32ff53a9c5"></a><!-- doxytag: member="bdm::dirfilelog::dirname" ref="985eb02770f01e25cdceff32ff53a9c5" args="" --> |
---|
130 | string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1dirfilelog.html#985eb02770f01e25cdceff32ff53a9c5">dirname</a></td></tr> |
---|
131 | |
---|
132 | <tr><td class="mdescLeft"> </td><td class="mdescRight">name of the directory <br></td></tr> |
---|
133 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7805040fe1ffa2a048c33980bc995793"></a><!-- doxytag: member="bdm::dirfilelog::scalarnames" ref="7805040fe1ffa2a048c33980bc995793" args="" --> |
---|
134 | Array< string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1dirfilelog.html#7805040fe1ffa2a048c33980bc995793">scalarnames</a></td></tr> |
---|
135 | |
---|
136 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Automatically generated. <br></td></tr> |
---|
137 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a690ebd91430b5973855c9b4c9cf1b1d"></a><!-- doxytag: member="bdm::dirfilelog::maxlen" ref="a690ebd91430b5973855c9b4c9cf1b1d" args="" --> |
---|
138 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#a690ebd91430b5973855c9b4c9cf1b1d">maxlen</a></td></tr> |
---|
139 | |
---|
140 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Maximum length of vectors stored in memory. <br></td></tr> |
---|
141 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="70cec1d3549a82796ad7b6f0d07a4570"></a><!-- doxytag: member="bdm::dirfilelog::ind" ref="70cec1d3549a82796ad7b6f0d07a4570" args="" --> |
---|
142 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#70cec1d3549a82796ad7b6f0d07a4570">ind</a></td></tr> |
---|
143 | |
---|
144 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Currect record to be written. <br></td></tr> |
---|
145 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1fed143162f2de6ef1c1b6557964f24e"></a><!-- doxytag: member="bdm::dirfilelog::vectors" ref="1fed143162f2de6ef1c1b6557964f24e" args="" --> |
---|
146 | Array< mat > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e">vectors</a></td></tr> |
---|
147 | |
---|
148 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Storage. <br></td></tr> |
---|
149 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="11fdf8ffca0f509ff637b0c3ac161c1f"></a><!-- doxytag: member="bdm::dirfilelog::itfilename" ref="11fdf8ffca0f509ff637b0c3ac161c1f" args="" --> |
---|
150 | string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#11fdf8ffca0f509ff637b0c3ac161c1f">itfilename</a></td></tr> |
---|
151 | |
---|
152 | <tr><td class="mdescLeft"> </td><td class="mdescRight">name of it file to save results <br></td></tr> |
---|
153 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c54566a4554089443a20b2a49ed1a61f"></a><!-- doxytag: member="bdm::dirfilelog::entries" ref="c54566a4554089443a20b2a49ed1a61f" args="" --> |
---|
154 | 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> |
---|
155 | |
---|
156 | <tr><td class="mdescLeft"> </td><td class="mdescRight">RVs of all logged variables. <br></td></tr> |
---|
157 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="68ca1f05cf3d414ba0f39211977b8d02"></a><!-- doxytag: member="bdm::dirfilelog::names" ref="68ca1f05cf3d414ba0f39211977b8d02" args="" --> |
---|
158 | Array< string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1logger.html#68ca1f05cf3d414ba0f39211977b8d02">names</a></td></tr> |
---|
159 | |
---|
160 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Names of logged quantities, e.g. names of algorithm variants. <br></td></tr> |
---|
161 | </table> |
---|
162 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
163 | Logging into dirfile with buffer in memory. |
---|
164 | <p> |
---|
165 | Dirfile is a special format used by the kst program. See documentation of kst for description.<p> |
---|
166 | This format is used to store scalars, hence multivariate RVs must be separated. <hr><h2>Constructor & Destructor Documentation</h2> |
---|
167 | <a class="anchor" name="15e1c0228c8ecefb372b364742748dff"></a><!-- doxytag: member="bdm::dirfilelog::dirfilelog" ref="15e1c0228c8ecefb372b364742748dff" args="(string dirname0, int maxlen0)" --> |
---|
168 | <div class="memitem"> |
---|
169 | <div class="memproto"> |
---|
170 | <table class="memname"> |
---|
171 | <tr> |
---|
172 | <td class="memname">bdm::dirfilelog::dirfilelog </td> |
---|
173 | <td>(</td> |
---|
174 | <td class="paramtype">string </td> |
---|
175 | <td class="paramname"> <em>dirname0</em>, </td> |
---|
176 | </tr> |
---|
177 | <tr> |
---|
178 | <td class="paramkey"></td> |
---|
179 | <td></td> |
---|
180 | <td class="paramtype">int </td> |
---|
181 | <td class="paramname"> <em>maxlen0</em></td><td> </td> |
---|
182 | </tr> |
---|
183 | <tr> |
---|
184 | <td></td> |
---|
185 | <td>)</td> |
---|
186 | <td></td><td></td><td><code> [inline]</code></td> |
---|
187 | </tr> |
---|
188 | </table> |
---|
189 | </div> |
---|
190 | <div class="memdoc"> |
---|
191 | |
---|
192 | <p> |
---|
193 | Default constructor. |
---|
194 | <p> |
---|
195 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
196 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
197 | <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> |
---|
198 | <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> |
---|
199 | </table> |
---|
200 | </dl> |
---|
201 | |
---|
202 | </div> |
---|
203 | </div><p> |
---|
204 | <hr><h2>Member Function Documentation</h2> |
---|
205 | <a class="anchor" name="47aa3b098a81d02a8ffaea2c9fa09ac7"></a><!-- doxytag: member="bdm::dirfilelog::add" ref="47aa3b098a81d02a8ffaea2c9fa09ac7" args="(const RV &rv, string prefix="")" --> |
---|
206 | <div class="memitem"> |
---|
207 | <div class="memproto"> |
---|
208 | <table class="memname"> |
---|
209 | <tr> |
---|
210 | <td class="memname">virtual int bdm::logger::add </td> |
---|
211 | <td>(</td> |
---|
212 | <td class="paramtype">const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td> |
---|
213 | <td class="paramname"> <em>rv</em>, </td> |
---|
214 | </tr> |
---|
215 | <tr> |
---|
216 | <td class="paramkey"></td> |
---|
217 | <td></td> |
---|
218 | <td class="paramtype">string </td> |
---|
219 | <td class="paramname"> <em>prefix</em> = <code>""</code></td><td> </td> |
---|
220 | </tr> |
---|
221 | <tr> |
---|
222 | <td></td> |
---|
223 | <td>)</td> |
---|
224 | <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> |
---|
225 | </tr> |
---|
226 | </table> |
---|
227 | </div> |
---|
228 | <div class="memdoc"> |
---|
229 | |
---|
230 | <p> |
---|
231 | 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>. |
---|
232 | <p>References <a class="el" href="bdmbase_8h-source.html#l00123">bdm::RV::_dsize()</a>, <a class="el" href="bdmbase_8h-source.html#l00569">bdm::logger::entries</a>, and <a class="el" href="bdmbase_8h-source.html#l00571">bdm::logger::names</a>.</p> |
---|
233 | |
---|
234 | <p>Referenced by <a class="el" href="datasources_8h-source.html#l00191">bdm::ArxDS::log_add()</a>, <a class="el" href="bdmbase_8h-source.html#l00819">bdm::BM::log_add()</a>, and <a class="el" href="bdmbase_8h-source.html#l00686">bdm::DS::log_add()</a>.</p> |
---|
235 | |
---|
236 | </div> |
---|
237 | </div><p> |
---|
238 | <a class="anchor" name="a32de0f314a30392d69f07458643514e"></a><!-- doxytag: member="bdm::dirfilelog::from_setting" ref="a32de0f314a30392d69f07458643514e" args="(const Setting &set)" --> |
---|
239 | <div class="memitem"> |
---|
240 | <div class="memproto"> |
---|
241 | <table class="memname"> |
---|
242 | <tr> |
---|
243 | <td class="memname">void bdm::dirfilelog::from_setting </td> |
---|
244 | <td>(</td> |
---|
245 | <td class="paramtype">const Setting & </td> |
---|
246 | <td class="paramname"> <em>set</em> </td> |
---|
247 | <td> ) </td> |
---|
248 | <td><code> [virtual]</code></td> |
---|
249 | </tr> |
---|
250 | </table> |
---|
251 | </div> |
---|
252 | <div class="memdoc"> |
---|
253 | |
---|
254 | <p> |
---|
255 | <a class="el" href="classbdm_1_1UI.html" title="UI is an abstract class and it is intended for internal purposes only.">UI</a> for <a class="el" href="classbdm_1_1dirfilelog.html" title="Logging into dirfile with buffer in memory.">dirfilelog</a> (Kst file format). |
---|
256 | <p> |
---|
257 | <div class="fragment"><pre class="fragment"> <a class="code" href="classbdm_1_1logger.html#f9c2fe7db5ddbda0098a4a5bd2c29fbf" title="Default constructor.">logger</a> = { |
---|
258 | type = <span class="stringliteral">"dirfilelog"</span>; |
---|
259 | dirmane = <span class="stringliteral">"directory_for_files"</span>; <span class="comment">// resulting files will be stored there</span> |
---|
260 | <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> |
---|
261 | } |
---|
262 | </pre></div> |
---|
263 | <p>Reimplemented from <a class="el" href="classbdm_1_1memlog.html#7352b474bc54c35ab7c9297c5b958629">bdm::memlog</a>.</p> |
---|
264 | |
---|
265 | <p>References <a class="el" href="loggers_8h-source.html#l00097">dirname</a>, <a class="el" href="loggers_8h-source.html#l00032">bdm::memlog::maxlen</a>, and <a class="el" href="loggers_8h-source.html#l00099">scalarnames</a>.</p> |
---|
266 | |
---|
267 | </div> |
---|
268 | </div><p> |
---|
269 | <a class="anchor" name="f595c0df25f5fa5d8c27ea1e375d9c51"></a><!-- doxytag: member="bdm::dirfilelog::write_buffers" ref="f595c0df25f5fa5d8c27ea1e375d9c51" args="(int Len)" --> |
---|
270 | <div class="memitem"> |
---|
271 | <div class="memproto"> |
---|
272 | <table class="memname"> |
---|
273 | <tr> |
---|
274 | <td class="memname">void bdm::dirfilelog::write_buffers </td> |
---|
275 | <td>(</td> |
---|
276 | <td class="paramtype">int </td> |
---|
277 | <td class="paramname"> <em>Len</em> </td> |
---|
278 | <td> ) </td> |
---|
279 | <td></td> |
---|
280 | </tr> |
---|
281 | </table> |
---|
282 | </div> |
---|
283 | <div class="memdoc"> |
---|
284 | |
---|
285 | <p> |
---|
286 | Write memory storage to disk. |
---|
287 | <p> |
---|
288 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
289 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
290 | <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> |
---|
291 | </table> |
---|
292 | </dl> |
---|
293 | |
---|
294 | <p>References <a class="el" href="loggers_8h-source.html#l00097">dirname</a>, <a class="el" href="bdmbase_8h-source.html#l00569">bdm::logger::entries</a>, <a class="el" href="loggers_8h-source.html#l00032">bdm::memlog::maxlen</a>, <a class="el" href="loggers_8h-source.html#l00099">scalarnames</a>, and <a class="el" href="loggers_8h-source.html#l00036">bdm::memlog::vectors</a>.</p> |
---|
295 | |
---|
296 | <p>Referenced by <a class="el" href="loggers_8cpp-source.html#l00155">finalize()</a>, <a class="el" href="loggers_8cpp-source.html#l00046">init()</a>, and <a class="el" href="loggers_8cpp-source.html#l00144">step()</a>.</p> |
---|
297 | |
---|
298 | </div> |
---|
299 | </div><p> |
---|
300 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
301 | <li><a class="el" href="loggers_8h-source.html">loggers.h</a><li>loggers.cpp</ul> |
---|
302 | </div> |
---|
303 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jul 1 13:05:57 2009 for mixpp by |
---|
304 | <a href="http://www.doxygen.org/index.html"> |
---|
305 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
306 | </body> |
---|
307 | </html> |
---|