| 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="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 | </div> | 
|---|
| 66 | <div class="contents"> | 
|---|
| 67 | <h1>user_info.h File Reference</h1>UI (user info) class for loading/saving objects from/to configuration files. It is designed over with an use of 'libconfig � C/C++ Configuration File Library'. | 
|---|
| 68 | <a href="#_details">More...</a> | 
|---|
| 69 | <p> | 
|---|
| 70 | <code>#include <stdio.h></code><br> | 
|---|
| 71 | <code>#include <string></code><br> | 
|---|
| 72 | <code>#include <typeinfo></code><br> | 
|---|
| 73 | <code>#include <map></code><br> | 
|---|
| 74 | <code>#include <stdexcept></code><br> | 
|---|
| 75 | <code>#include "libconfig/libconfig.h++"</code><br> | 
|---|
| 76 | <code>#include "<a class="el" href="bdmroot_8h-source.html">../bdmroot.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="mdescLeft"> </td><td class="mdescRight">Exception prepared for reporting user-info errors which are always related to some concrete Setting path.  <a href="classbdm_1_1UIException.html#_details">More...</a><br></td></tr> | 
|---|
| 86 | <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> | 
|---|
| 87 |  | 
|---|
| 88 | <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> | 
|---|
| 89 | <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> | 
|---|
| 90 |  | 
|---|
| 91 | <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> | 
|---|
| 92 | <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> | 
|---|
| 93 |  | 
|---|
| 94 | <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> is an abstract class and it is intended for internal purposes only.  <a href="classbdm_1_1UI.html#_details">More...</a><br></td></tr> | 
|---|
| 95 | <tr><td class="memItemLeft" nowrap align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><b>bdm::UI::UI::MappedUI</b></td></tr> | 
|---|
| 96 |  | 
|---|
| 97 | <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> | 
|---|
| 98 |  | 
|---|
| 99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The only <a class="el" href="classbdm_1_1UI.html" title="UI is an abstract class and it is intended for internal purposes only.">UI</a> descendant class which is not intended for direct use. It should be accessed within the <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</a> macro only.  <a href="classbdm_1_1ParticularUI.html#_details">More...</a><br></td></tr> | 
|---|
| 100 | <tr><td colspan="2"><br><h2>Defines</h2></td></tr> | 
|---|
| 101 | <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)   template<> const ParticularUI<class_name>& ParticularUI<class_name>::factory = ParticularUI<class_name>(#class_name)</td></tr> | 
|---|
| 102 |  | 
|---|
| 103 | <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> | 
|---|
| 104 | </table> | 
|---|
| 105 | <hr><a name="_details"></a><h2>Detailed Description</h2> | 
|---|
| 106 | UI (user info) class for loading/saving objects from/to configuration files. It is designed over with an use of 'libconfig � C/C++ Configuration File Library'. | 
|---|
| 107 | <p> | 
|---|
| 108 | <dl class="author" compact><dt><b>Author:</b></dt><dd>Vaclav Smidl.</dd></dl> | 
|---|
| 109 | ----------------------------------- BDM++ - C++ library for Bayesian Decision Making under Uncertainty<p> | 
|---|
| 110 | Using IT++ for numerical operations ----------------------------------- <hr><h2>Define Documentation</h2> | 
|---|
| 111 | <a class="anchor" name="4f9de2f17e844047726487b99def99c6"></a><!-- doxytag: member="user_info.h::UIREGISTER" ref="4f9de2f17e844047726487b99def99c6" args="(class_name)" --> | 
|---|
| 112 | <div class="memitem"> | 
|---|
| 113 | <div class="memproto"> | 
|---|
| 114 | <table class="memname"> | 
|---|
| 115 | <tr> | 
|---|
| 116 | <td class="memname">#define UIREGISTER          </td> | 
|---|
| 117 | <td>(</td> | 
|---|
| 118 | <td class="paramtype">class_name </td> | 
|---|
| 119 | <td class="paramname">          </td> | 
|---|
| 120 | <td> ) </td> | 
|---|
| 121 | <td>   template<> const ParticularUI<class_name>& ParticularUI<class_name>::factory = ParticularUI<class_name>(#class_name)</td> | 
|---|
| 122 | </tr> | 
|---|
| 123 | </table> | 
|---|
| 124 | </div> | 
|---|
| 125 | <div class="memdoc"> | 
|---|
| 126 |  | 
|---|
| 127 | <p> | 
|---|
| 128 | Macro for registration of class into map of user-infos, registered class is scriptable using UI static methods. | 
|---|
| 129 | <p> | 
|---|
| 130 | Argument <em>class_name</em> has to be a descendant of root class and also, it has to have parameterless constructor prepared. This macro should be used in header file, immediately after a class declaration.<p> | 
|---|
| 131 | <dl class="see" compact><dt><b>See also:</b></dt><dd>TODO MODUL </dd></dl> | 
|---|
| 132 |  | 
|---|
| 133 | </div> | 
|---|
| 134 | </div><p> | 
|---|
| 135 | </div> | 
|---|
| 136 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 24 21:53:05 2009 for mixpp by  | 
|---|
| 137 | <a href="http://www.doxygen.org/index.html"> | 
|---|
| 138 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> | 
|---|
| 139 | </body> | 
|---|
| 140 | </html> | 
|---|