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 | | }; |
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 | |
| 197 | UIREGISTER(RV); |