Changeset 357 for bdm/stat/libBM.h

Show
Ignore:
Timestamp:
06/08/09 02:15:30 (15 years ago)
Author:
mido
Message:

mnoho zmen:
1) presun FindXXX modulu do \system
2) zalozeni dokumentace \doc\local\library_structure.dox
3) presun obsahu \tests\UI primo do \tests
4) namisto \INSTALL zalozen \install.html, je to vhodnejsi pro uzivatele WINDOWS, a snad i obecne
5) snaha o predelani veskerych UI podle nove koncepce, soubory pmsm_ui.h, arx_ui.h, KF_ui.h, libDS_ui.h, libEF_ui.h a loggers_ui.h ponechavam
jen zdokumentacnich duvodu, nic by na nich jiz nemelo zaviset, a po zkontrolovani spravnosti provedenych uprav by mely byt smazany
6) predelani estimatoru tak, aby fungoval s novym UI konceptem
7) vytazeni tridy bdmroot do samostatneho souboru \bdm\bdmroot.h
8) pridana dokumentace pro zacleneni programu ASTYLE do Visual studia, ASTYLE pridan do instalacniho balicku pro Windows

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/stat/libBM.h

    r351 r357  
    1717 
    1818#include "../itpp_ext.h" 
    19 #include "../libconfig/libconfig.h++" 
     19#include "../bdmroot.h" 
     20#include "../user_info.h" 
    2021 
    2122 
    2223using namespace libconfig; 
    23  
    2424using namespace itpp; 
    2525using namespace std; 
    2626 
    2727namespace bdm { 
    28  
    29 //! Root class of BDM objects 
    30  
    31 class bdmroot { 
    32 public: 
    33         //! make sure this is a virtual object 
    34         virtual ~bdmroot()  
    35         { 
    36         } 
    37  
    38         //! This method returns a basic info about the current instance 
    39         virtual string ToString() 
    40         { 
    41                 return ""; 
    42         } 
    43  
    44         //! This method arrange instance properties according the data stored in the Setting structure 
    45         virtual void from_setting( const Setting &root ) 
    46         { 
    47         } 
    48  
    49         //! This method save all the instance properties into the Setting structure  
    50         virtual void to_setting( Setting &root ) const 
    51         {        
    52         } 
    53 }; 
    5428 
    5529typedef std::map<string, int> RVmap; 
     
    5731extern Array<string> RV_NAMES; 
    5832 
    59 //! Structure of RV (used internally), i.e. expanded RVs 
     33//! Structure of RV (used internally), i.e. expanded RVs - TODO tak proc je ve verejnem prostoru jmen? upravit 
    6034class str { 
    6135public: 
     
    189163        //!@{ 
    190164 
    191         //! generate \c str from rv, by expanding sizes 
     165        //! generate \c str from rv, by expanding sizes TODO to_string..  
    192166        str tostr() const; 
    193167        //! when this rv is a part of bigger rv, this function returns indeces of self in the data vector of the bigger crv. 
     
    201175        //!@} 
    202176 
    203 }; 
    204  
     177        // TODO aktualizovat dle soucasneho UI 
     178        /*! \brief UI for class RV (description of data vectors) 
     179 
     180        \code 
     181        rv = { 
     182                type = "rv"; //identifier of the description 
     183                // UNIQUE IDENTIFIER same names = same variable 
     184                names = ["a", "b", "c", ...];   // which will be used e.g. in loggers  
     185 
     186                //optional arguments 
     187                sizes = [1, 2, 3, ...];         // (optional) default = ones() 
     188                times = [-1, -2, 0, ...];       // time shifts with respect to current time (optional) default = zeros() 
     189        } 
     190        \endcode 
     191        */ 
     192        void from_setting( const Setting &root ); 
     193 
     194        // TODO dodelat void to_setting( Setting &root ) const; 
     195}; 
     196 
     197UIREGISTER(RV); 
    205198 
    206199//! Concat two random variables