bdm::UI Class Reference

UI is an abstract class and it is intended for internal purposes only. More...

#include <user_info.h>

List of all members. <<<<<<< HEAD:library/doc/html/classbdm_1_1UI.html ======= >>>>>>> doc:library/doc/html/classbdm_1_1UI.html <<<<<<< HEAD:library/doc/html/classbdm_1_1UI.html ======= >>>>>>> doc:library/doc/html/classbdm_1_1UI.html <<<<<<< HEAD:library/doc/html/classbdm_1_1UI.html <<<<<<< HEAD:library/doc/html/classbdm_1_1UI.html ======= >>>>>>> doc:library/doc/html/classbdm_1_1UI.html <<<<<<< HEAD:library/doc/html/classbdm_1_1UI.html ======= >>>>>>> doc:library/doc/html/classbdm_1_1UI.html <<<<<<< HEAD:library/doc/html/classbdm_1_1UI.html ======= >>>>>>> doc:library/doc/html/classbdm_1_1UI.html <<<<<<< HEAD:library/doc/html/classbdm_1_1UI.html ======= >>>>>>> doc:library/doc/html/classbdm_1_1UI.html <<<<<<< HEAD:library/doc/html/classbdm_1_1UI.html ======= >>>>>>> doc:library/doc/html/classbdm_1_1UI.html

Classes

class  MappedUI
class  SettingResolver
 This class serves to expand links used in configuration file. More...

Static Public Member Functions

Initialization of classes
The type T has to be a root descendant class

template<class T >
static T * build (const Setting &element, const string &name)
 The new instance of type T* is constructed and initialized with values stored in the Setting element[name].
template<class T >
static void save (const T *const instance, Setting &element, const string &name="")
template<class T >
static void save (const Array< T > &array_to_save, Setting &element, const string &name="")
 This methods tries to save a double vec.
static void save (const mat &matrix, Setting &element, const string &name="")
 This methods tries to save a double matrix.
static void save (const ivec &vec, Setting &element, const string &name="")
 This methods tries to save a double vec.
static void save (const vec &vector, Setting &element, const string &name="")
static void save (const string &str, Setting &element, const string &name="")
 This methods tries to save a double vec.
static void save (const int &integer, Setting &element, const string &name="")
static void save (const double &real, Setting &element, const string &name="")
Initialization of bdm::root descendant classes according the values stored in a Setting variable
Return value is by the second argument since it type checking via dynamic_cast.

template<class T >
static T * build (const Setting &element, const int index)
template<class T >
static T * build (const Setting &element)
 The new instance of type T* is constructed and initialized with values stored in the Setting element[index].
=======
 VS: addition for root elements.
>>>>>>> doc:library/doc/html/classbdm_1_1UI.html template<class T >
static T * build (const Setting &element)
 The new instance of type T* is constructed and initialized with values stored in the Setting element.
Initialization of structures
The type T has to be int, double, string, vec, ivec or mat.

Initialization of structures according the values stored in a Setting variable - TODO VYCET?!
This methods tries to build a new double matrix

template<class T >
static void get (T &instance, const Setting &element, const string &name)
 The existing instance of type T is initialized with values stored in the Setting element[name].
template<class T >
static void get (T &instance, const Setting &element, const int index)
 The existing instance of type T is initialized with values stored in the Setting element[index].
 This methods tries to build a new double matrix.
template<class T >
static void get (T &instance, const Setting &element)
 The existing instance of type T is initialized with values stored in the Setting element directly.
Initialization of arrays Array<T>
The type T has to be int, double, string, vec, ivec or mat, or pointer to any root descendant.

 This methods tries to build a new double matrix.
template<class T >
static void get (Array< T > &array_to_load, const Setting &element, const string &name)
 The existing array of type T is initialized with values stored in the Setting element[name].
template<class T >
static void get (Array< T > &array_to_load, const Setting &element, const int index)
 The existing array of type T is initialized with values stored in the Setting element[index].
template<class T >
static void get (Array< T > &array_to_load, const Setting &element)
 The existing array of type T is initialized with values stored in the Setting element.
Serialization of objects and structures into a new Setting
The new child Setting can be accessed either by its name - if some name is passed as a parameter - or by its integer index. In that case, the new element is added at the very end of the current list of child Settings.

template<class T >
static void save (const T *const instance, Setting &element, const string &name="")
 A root descendant instance is stored in the new child Setting appended to the passed element.
template<class T >
static void save (const Array< T > &array_to_save, Setting &element, const string &name="")
 An Array<T> instance is stored in the new child Setting appended to the passed element.
static void save (const mat &matrix, Setting &element, const string &name="")
 A matrix(of type mat) is stored in the new child Setting appended to the passed element.
static void save (const ivec &vec, Setting &element, const string &name="")
 An integer vector (of type ivec) is stored in the new child Setting appended to the passed element.
static void save (const vec &vector, Setting &element, const string &name="")
 A double vector (of type vec) is stored in the new child Setting appended to the passed element.
static void save (const string &str, Setting &element, const string &name="")
 A string is stored in the new child Setting appended to the passed element.
static void save (const int &integer, Setting &element, const string &name="")
 An integer is stored in the new child Setting appended to the passed element.
static void save (const double &real, Setting &element, const string &name="")
 A double is stored in the new child Setting appended to the passed element.

Protected Member Functions

 UI (const string &class_name, const type_info *const class_type_info)
 This methods tries to build a new double matrix.
template<class T >
static void get (Array< T > &array_to_load, const Setting &element)
 This methods tries to build a new double matrix.

Protected Member Functions

 UI (const string &class_name, const type_info *const class_type_info)
 Default constructor for internal use only, see.


Detailed Description

UI is an abstract class and it is intended for internal purposes only.

This class exists mainly to allow pointers to its templated descendant ParticularUI<T>. Next, it collects all the auxiliary functions useful to prepare some concret user-infos, see static methods 'build', 'get' and 'save'.


Constructor & Destructor Documentation

bdm::UI::UI ( const string &  class_name,
const type_info *const   class_type_info 
) [inline, protected]

Default constructor for internal use only, see.

See also:
ParticularUI<T>


The documentation for this class was generated from the following files:
<<<<<<< HEAD:library/doc/html/classbdm_1_1UI.html
Generated on Wed Jun 24 13:35:49 2009 for mixpp by  =======
Generated on Tue Jun 23 19:52:52 2009 for mixpp by  >>>>>>> doc:library/doc/html/classbdm_1_1UI.html doxygen 1.5.9