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: user_info.h Source File</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><a href="annotated.html"><span>Classes</span></a></li> |
---|
56 | <li class="current"><a href="files.html"><span>Files</span></a></li> |
---|
57 | </ul> |
---|
58 | </div> |
---|
59 | <div class="tabs"> |
---|
60 | <ul> |
---|
61 | <li><a href="files.html"><span>File List</span></a></li> |
---|
62 | <li><a href="globals.html"><span>File Members</span></a></li> |
---|
63 | </ul> |
---|
64 | </div> |
---|
65 | <h1>user_info.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef UIBUILD</span> |
---|
66 | <a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define UIBUILD</span> |
---|
67 | <a name="l00003"></a>00003 <span class="preprocessor"></span> |
---|
68 | <a name="l00004"></a>00004 <span class="preprocessor">#include <<a class="code" href="itbase_8h.html" title="Include file for the IT++ base module.">itpp/itbase.h</a>></span> |
---|
69 | <a name="l00005"></a>00005 <span class="preprocessor">#include "<a class="code" href="libBM_8h.html" title="Bayesian Models (bm) that use Bayes rule to learn from observations.">stat/libBM.h</a>"</span> |
---|
70 | <a name="l00006"></a>00006 <span class="preprocessor">#include "libconfig/libconfig.h++"</span> |
---|
71 | <a name="l00007"></a>00007 |
---|
72 | <a name="l00008"></a>00008 <span class="preprocessor">#include <sstream></span> |
---|
73 | <a name="l00009"></a>00009 <span class="preprocessor">#include <iostream></span> |
---|
74 | <a name="l00010"></a>00010 <span class="preprocessor">#include <stdio.h></span> |
---|
75 | <a name="l00011"></a>00011 <span class="preprocessor">#include <string></span> |
---|
76 | <a name="l00012"></a>00012 <span class="preprocessor">#include <typeinfo></span> |
---|
77 | <a name="l00013"></a>00013 <span class="preprocessor">#include <map></span> |
---|
78 | <a name="l00014"></a>00014 <span class="preprocessor">#include <utility></span> |
---|
79 | <a name="l00015"></a>00015 <span class="preprocessor">#include <vector></span> |
---|
80 | <a name="l00016"></a>00016 <span class="preprocessor">#include <iostream></span> |
---|
81 | <a name="l00017"></a>00017 |
---|
82 | <a name="l00018"></a>00018 <span class="keyword">using</span> std::string; |
---|
83 | <a name="l00019"></a>00019 <span class="keyword">using namespace </span>std; |
---|
84 | <a name="l00020"></a>00020 <span class="keyword">using namespace </span>libconfig; |
---|
85 | <a name="l00021"></a>00021 |
---|
86 | <a name="l00022"></a>00022 <span class="preprocessor">#define UIREGISTER(class_name) template<> Particular_UI<class_name>& Particular_UI<class_name>::ui = Particular_UI<class_name>(#class_name)</span> |
---|
87 | <a name="l00023"></a>00023 <span class="preprocessor"></span> |
---|
88 | <a name="l00024"></a>00024 <span class="preprocessor">#define ASSERT_UITYPE(S,Type) it_assert_debug(S.getType()==Setting::Type, string("Wrong setting type, see input path \"")+string(S.getPath())+string("\""))</span> |
---|
89 | <a name="l00025"></a>00025 <span class="preprocessor"></span> |
---|
90 | <a name="l00026"></a>00026 <span class="keyword">namespace </span>bdm |
---|
91 | <a name="l00027"></a>00027 { |
---|
92 | <a name="l00028"></a>00028 |
---|
93 | <a name="l00051"></a><a class="code" href="classbdm_1_1UI__File.html">00051</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1UI__File.html" title="This class serves to load and/or save DOMElements into/from files stored on a hard-disk...">UI_File</a> : <span class="keyword">public</span> Config |
---|
94 | <a name="l00052"></a>00052 { |
---|
95 | <a name="l00053"></a>00053 <span class="keyword">private</span>: |
---|
96 | <a name="l00054"></a>00054 <span class="keyword">const</span> <span class="keywordtype">string</span> file_name; |
---|
97 | <a name="l00055"></a>00055 |
---|
98 | <a name="l00056"></a>00056 <span class="keyword">public</span>: |
---|
99 | <a name="l00058"></a>00058 <a class="code" href="classbdm_1_1UI__File.html#ae02de2102865cdfdf8a9b27e2f22dd8" title="attach new RootElement instance to a file (typically with an XML extension)">UI_File</a>( <span class="keyword">const</span> <span class="keywordtype">string</span> &file_name ); |
---|
100 | <a name="l00059"></a>00059 |
---|
101 | <a name="l00061"></a>00061 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1UI__File.html#6485b7f1f07eecb92551f9e9857c0716" title="loads root element from a file">load</a>(); |
---|
102 | <a name="l00062"></a>00062 |
---|
103 | <a name="l00064"></a>00064 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1UI__File.html#2a2482e189601fe5cd98777c55b80ae5" title="save UserInfo to the file (typically with an XML extension)">save</a>(); |
---|
104 | <a name="l00065"></a>00065 |
---|
105 | <a name="l00066"></a>00066 operator Setting&(); |
---|
106 | <a name="l00067"></a>00067 }; |
---|
107 | <a name="l00068"></a>00068 |
---|
108 | <a name="l00069"></a>00069 |
---|
109 | <a name="l00084"></a><a class="code" href="classbdm_1_1UI.html">00084</a> |
---|
110 | <a name="l00091"></a>00091 |
---|
111 | <a name="l00095"></a>00095 |
---|
112 | <a name="l00098"></a>00098 |
---|
113 | <a name="l00102"></a>00102 |
---|
114 | <a name="l00105"></a>00105 |
---|
115 | <a name="l00109"></a>00109 |
---|
116 | <a name="l00112"></a>00112 |
---|
117 | <a name="l00117"></a>00117 |
---|
118 | <a name="l00269"></a>00269 |
---|
119 | <a name="l00323"></a>00323 |
---|
120 | <a name="l00343"></a>00343 |
---|
121 | <a name="l00407"></a>00407 |
---|
122 | <a name="l00417"></a>00417 |
---|
123 | <a name="l00445"></a>00445 |
---|
124 | <a name="l00457"></a><a class="code" href="classbdm_1_1UI.html#b4be507739428757eee17f40a594cab3">00457</a> |
---|
125 | <a name="l00463"></a><a class="code" href="classbdm_1_1UI.html#95a5a0e160bf21357f99a9291b0b5e88">00463</a> |
---|
126 | <a name="l00477"></a>00477 |
---|
127 | <a name="l00479"></a><a class="code" href="classbdm_1_1UI.html#946a134eecd2da41c36cb53a371afa57">00479</a> |
---|
128 | <a name="l00492"></a><a class="code" href="classbdm_1_1UI.html#a86192d0fee67cc5b6f1eabe2bd0732a">00492</a> |
---|
129 | <a name="l00500"></a><a class="code" href="classbdm_1_1UI.html#7fbba3fc8cf76b1aa297297a9cbf8f03">00500</a> |
---|
130 | <a name="l00509"></a><a class="code" href="classbdm_1_1UI.html#05e62b97a2df97510af794716eb6c37a">00509</a> |
---|
131 | <a name="l00518"></a><a class="code" href="classbdm_1_1UI.html#8ba9b7294f2041fd31107726ef735f78">00518</a> |
---|
132 | <a name="l00526"></a><a class="code" href="classbdm_1_1UI.html#0eab3627b6a14b932ebde0e5a3d9cad4">00526</a> |
---|
133 | <a name="l00535"></a><a class="code" href="classbdm_1_1UI.html#de1ff787bb1c2fe8b000189d435575af">00535</a> |
---|
134 | <a name="l00544"></a><a class="code" href="classbdm_1_1UI.html#1524f48ac7c08f5dc339853584c2ad9f">00544</a> |
---|
135 | <a name="l00552"></a><a class="code" href="classbdm_1_1UI.html#990baf528b3a87609475ce91931b2a99">00552</a> |
---|
136 | <a name="l00561"></a><a class="code" href="classbdm_1_1UI.html#3b6f3d40865e53e7adf7da95e11bc776">00561</a> |
---|
137 | <a name="l00570"></a><a class="code" href="classbdm_1_1UI.html#367963d85dbafd3d4d3af0a5aefb161a">00570</a> |
---|
138 | <a name="l00584"></a><a class="code" href="classbdm_1_1Particular__UI.html">00584</a> |
---|
139 | <a name="l00590"></a>00590 |
---|
140 | <a name="l00596"></a>00596 |
---|
141 | <a name="l00630"></a>00630 </pre></div></div> |
---|
142 | <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:13 2009 for mixpp by |
---|
143 | <a href="http://www.doxygen.org/index.html"> |
---|
144 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
145 | </body> |
---|
146 | </html> |
---|