26 | | <a name="l00019"></a>00019 <span class="keyword">using namespace </span>itpp; |
27 | | <a name="l00020"></a>00020 <span class="keyword">using</span> std::string; |
28 | | <a name="l00021"></a>00021 |
29 | | <a name="l00022"></a>00022 <span class="keyword">class </span>UIdirfilelog : <span class="keyword">public</span> UIbuilder{ |
30 | | <a name="l00023"></a>00023 <span class="keyword">public</span>: |
31 | | <a name="l00024"></a>00024 UIdirfilelog():UIbuilder(<span class="stringliteral">"dirfilelog"</span>){}; |
32 | | <a name="l00025"></a>00025 bdmroot* build(Setting &S)<span class="keyword"> const</span>{ |
33 | | <a name="l00026"></a>00026 <span class="keywordflow">return</span> <span class="keyword">new</span> dirfilelog(S[<span class="stringliteral">"dirname"</span>],S[<span class="stringliteral">"maxlen"</span>]); |
34 | | <a name="l00027"></a>00027 }; |
35 | | <a name="l00028"></a>00028 }; |
36 | | <a name="l00029"></a>00029 |
37 | | <a name="l00030"></a>00030 UIREGISTER(UIdirfilelog); |
38 | | <a name="l00031"></a>00031 <span class="preprocessor">#endif // LGR_H</span> |
| 26 | <a name="l00019"></a>00019 <span class="keyword">using namespace </span>bdm; |
| 27 | <a name="l00020"></a>00020 |
| 28 | <a name="l00021"></a>00021 <span class="keyword">class </span>UIdirfilelog : <span class="keyword">public</span> <a class="code" href="classbdm_1_1UIbuilder.html" title="Builds computational object from a UserInfo structure.">UIbuilder</a> { |
| 29 | <a name="l00022"></a>00022 <span class="keyword">public</span>: |
| 30 | <a name="l00023"></a>00023 UIdirfilelog():<a class="code" href="classbdm_1_1UIbuilder.html" title="Builds computational object from a UserInfo structure.">UIbuilder</a>(<span class="stringliteral">"dirfilelog"</span>){}; |
| 31 | <a name="l00024"></a>00024 <a class="code" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects.">bdmroot</a>* <a class="code" href="classbdm_1_1UIbuilder.html#193cede6302669ff48dfd8ab3b7e31f8" title="Function building the computational object.">build</a>(Setting &S)<span class="keyword"> const</span>{ |
| 32 | <a name="l00025"></a>00025 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classbdm_1_1dirfilelog.html" title="Logging into dirfile with buffer in memory.">dirfilelog</a>(S[<span class="stringliteral">"dirname"</span>],S[<span class="stringliteral">"maxlen"</span>]); |
| 33 | <a name="l00026"></a>00026 }; |
| 34 | <a name="l00027"></a>00027 }; |
| 35 | <a name="l00028"></a>00028 |
| 36 | <a name="l00029"></a>00029 UIREGISTER(UIdirfilelog); |
| 37 | <a name="l00030"></a>00030 <span class="preprocessor">#endif // LGR_H</span> |