| 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 File 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="annotated.html"><span>Classes</span></a></li> | 
|---|
| 55 |       <li class="current"><a href="files.html"><span>Files</span></a></li> | 
|---|
| 56 |     </ul> | 
|---|
| 57 |   </div> | 
|---|
| 58 |   <div class="tabs"> | 
|---|
| 59 |     <ul> | 
|---|
| 60 |       <li><a href="files.html"><span>File List</span></a></li> | 
|---|
| 61 |       <li><a href="globals.html"><span>File Members</span></a></li> | 
|---|
| 62 |     </ul> | 
|---|
| 63 |   </div> | 
|---|
| 64 | </div> | 
|---|
| 65 | <div class="contents"> | 
|---|
| 66 | <h1>user_info.h File Reference</h1>UI (user info) class for loading/saving objects from/to configuration files. It is designed with use of libconfig C/C++ Configuration File Library <a class="el" href="ui_page.html">User Infos and their use</a>.   | 
|---|
| 67 | <a href="#_details">More...</a> | 
|---|
| 68 | <p> | 
|---|
| 69 | <code>#include <stdio.h></code><br> | 
|---|
| 70 | <code>#include <string></code><br> | 
|---|
| 71 | <code>#include <typeinfo></code><br> | 
|---|
| 72 | <code>#include <map></code><br> | 
|---|
| 73 | <code>#include <stdexcept></code><br> | 
|---|
| 74 | <code>#include "libconfig/libconfig.h++"</code><br> | 
|---|
| 75 | <code>#include "<a class="el" href="bdmroot_8h-source.html">../bdmroot.h</a>"</code><br> | 
|---|
| 76 | <code>#include "<a class="el" href="shared__ptr_8h-source.html">../shared_ptr.h</a>"</code><br> | 
|---|
| 77 | <code>#include "itpp/itbase.h"</code><br> | 
|---|
| 78 |  | 
|---|
| 79 | <p> | 
|---|
| 80 | <a href="user__info_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> | 
|---|
| 81 | <tr><td></td></tr> | 
|---|
| 82 | <tr><td colspan="2"><br><h2>Classes</h2></td></tr> | 
|---|
| 83 | <tr><td class="memItemLeft" nowrap align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1UIException.html">bdm::UIException</a></td></tr> | 
|---|
| 84 |  | 
|---|
| 85 | <tr><td class="memItemLeft" nowrap align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1UIFile.html">bdm::UIFile</a></td></tr> | 
|---|
| 86 |  | 
|---|
| 87 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This class serves to load and/or save user-infos into/from configuration files stored on a hard-disk.  <a href="classbdm_1_1UIFile.html#_details">More...</a><br></td></tr> | 
|---|
| 88 | <tr><td class="memItemLeft" nowrap align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1SettingResolver.html">bdm::SettingResolver</a></td></tr> | 
|---|
| 89 |  | 
|---|
| 90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This class serves to expand links used within configuration files.  <a href="classbdm_1_1SettingResolver.html#_details">More...</a><br></td></tr> | 
|---|
| 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html">bdm::UI</a></td></tr> | 
|---|
| 92 |  | 
|---|
| 93 | <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> is an abstract class which collects all the auxiliary functions useful to prepare some concrete user-infos.  <a href="classbdm_1_1UI.html#_details">More...</a><br></td></tr> | 
|---|
| 94 | <tr><td class="memItemLeft" nowrap align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><b>bdm::UI::UI::MappedUI</b></td></tr> | 
|---|
| 95 |  | 
|---|
| 96 | <tr><td class="memItemLeft" nowrap align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ParticularUI.html">bdm::ParticularUI< T ></a></td></tr> | 
|---|
| 97 |  | 
|---|
| 98 | <tr><td colspan="2"><br><h2>Defines</h2></td></tr> | 
|---|
| 99 | <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6">UIREGISTER</a>(class_name)   static <a class="el" href="classbdm_1_1ParticularUI.html">bdm::ParticularUI</a><class_name> UI##class_name(#class_name)</td></tr> | 
|---|
| 100 |  | 
|---|
| 101 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Macro for registration of class into map of user-infos, registered class is scriptable using UI static methods.  <a href="#4f9de2f17e844047726487b99def99c6"></a><br></td></tr> | 
|---|
| 102 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="852592d44ce65a0a870c76b42155aaca"></a><!-- doxytag: member="user_info.h::QUOTEME" ref="852592d44ce65a0a870c76b42155aaca" args="(x)" --> | 
|---|
| 103 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="user__info_8h.html#852592d44ce65a0a870c76b42155aaca">QUOTEME</a>(x)   #x</td></tr> | 
|---|
| 104 |  | 
|---|
| 105 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Instrumental macro for UIREGISTER2. <br></td></tr> | 
|---|
| 106 | <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="user__info_8h.html#b06f1e7c44a8306e321f62a0099210b9">UIREGISTER2</a>(class_name, temp_name)   static <a class="el" href="classbdm_1_1ParticularUI.html">bdm::ParticularUI</a><class_name<temp_name> > UI##class_name##_##temp_name( QUOTEME(class_name<temp_name>) )</td></tr> | 
|---|
| 107 |  | 
|---|
| 108 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Variant of UIREGISTER for templated classes.  <a href="#b06f1e7c44a8306e321f62a0099210b9"></a><br></td></tr> | 
|---|
| 109 | </table> | 
|---|
| 110 | <hr><a name="_details"></a><h2>Detailed Description</h2> | 
|---|
| 111 | UI (user info) class for loading/saving objects from/to configuration files. It is designed with use of libconfig C/C++ Configuration File Library <a class="el" href="ui_page.html">User Infos and their use</a>.  | 
|---|
| 112 | <p> | 
|---|
| 113 | <dl class="author" compact><dt><b>Author:</b></dt><dd>Vaclav Smidl.</dd></dl> | 
|---|
| 114 | ----------------------------------- BDM++ - C++ library for Bayesian Decision Making under Uncertainty<p> | 
|---|
| 115 | Using IT++ for numerical operations ----------------------------------- <hr><h2>Define Documentation</h2> | 
|---|
| 116 | <a class="anchor" name="4f9de2f17e844047726487b99def99c6"></a><!-- doxytag: member="user_info.h::UIREGISTER" ref="4f9de2f17e844047726487b99def99c6" args="(class_name)" --> | 
|---|
| 117 | <div class="memitem"> | 
|---|
| 118 | <div class="memproto"> | 
|---|
| 119 |       <table class="memname"> | 
|---|
| 120 |         <tr> | 
|---|
| 121 |           <td class="memname">#define UIREGISTER          </td> | 
|---|
| 122 |           <td>(</td> | 
|---|
| 123 |           <td class="paramtype">class_name </td> | 
|---|
| 124 |           <td class="paramname">          </td> | 
|---|
| 125 |           <td> ) </td> | 
|---|
| 126 |           <td>   static <a class="el" href="classbdm_1_1ParticularUI.html">bdm::ParticularUI</a><class_name> UI##class_name(#class_name)</td> | 
|---|
| 127 |         </tr> | 
|---|
| 128 |       </table> | 
|---|
| 129 | </div> | 
|---|
| 130 | <div class="memdoc"> | 
|---|
| 131 |  | 
|---|
| 132 | <p> | 
|---|
| 133 | Macro for registration of class into map of user-infos, registered class is scriptable using UI static methods.  | 
|---|
| 134 | <p> | 
|---|
| 135 | Argument <em>class_name</em> has to be a descendant of root class and also to have a default constructor. This macro should be used in header file, immediately after a class declaration.<p> | 
|---|
| 136 | <a class="el" href="ui_page.html">User Infos and their use</a>  | 
|---|
| 137 | </div> | 
|---|
| 138 | </div><p> | 
|---|
| 139 | <a class="anchor" name="b06f1e7c44a8306e321f62a0099210b9"></a><!-- doxytag: member="user_info.h::UIREGISTER2" ref="b06f1e7c44a8306e321f62a0099210b9" args="(class_name, temp_name)" --> | 
|---|
| 140 | <div class="memitem"> | 
|---|
| 141 | <div class="memproto"> | 
|---|
| 142 |       <table class="memname"> | 
|---|
| 143 |         <tr> | 
|---|
| 144 |           <td class="memname">#define UIREGISTER2          </td> | 
|---|
| 145 |           <td>(</td> | 
|---|
| 146 |           <td class="paramtype">class_name,         <tr> | 
|---|
| 147 |           <td class="paramkey"></td> | 
|---|
| 148 |           <td></td> | 
|---|
| 149 |           <td class="paramtype">temp_name </td> | 
|---|
| 150 |           <td class="paramname">          </td> | 
|---|
| 151 |           <td> ) </td> | 
|---|
| 152 |           <td>   static <a class="el" href="classbdm_1_1ParticularUI.html">bdm::ParticularUI</a><class_name<temp_name> > UI##class_name##_##temp_name( QUOTEME(class_name<temp_name>) )</td> | 
|---|
| 153 |         </tr> | 
|---|
| 154 |       </table> | 
|---|
| 155 | </div> | 
|---|
| 156 | <div class="memdoc"> | 
|---|
| 157 |  | 
|---|
| 158 | <p> | 
|---|
| 159 | Variant of UIREGISTER for templated classes.  | 
|---|
| 160 | <p> | 
|---|
| 161 | Technical meann of registering <a class="el" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER(class_name<template_name>)</a>.<p> | 
|---|
| 162 | <a class="el" href="ui_page.html">User Infos and their use</a>  | 
|---|
| 163 | </div> | 
|---|
| 164 | </div><p> | 
|---|
| 165 | </div> | 
|---|
| 166 | <hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 16 17:58:18 2009 for mixpp by  | 
|---|
| 167 | <a href="http://www.doxygen.org/index.html"> | 
|---|
| 168 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> | 
|---|
| 169 | </body> | 
|---|
| 170 | </html> | 
|---|