Revision 669, 1.2 kB
(checked in by smidl, 15 years ago)
|
all root offsprings can be logged
|
Rev | Line | |
---|
[357] | 1 | /*! |
---|
| 2 | \file |
---|
| 3 | \brief Bayesian Models (bm) that use Bayes rule to learn from observations |
---|
| 4 | \author Vaclav Smidl. |
---|
| 5 | |
---|
| 6 | ----------------------------------- |
---|
| 7 | BDM++ - C++ library for Bayesian Decision Making under Uncertainty |
---|
| 8 | |
---|
| 9 | Using IT++ for numerical operations |
---|
| 10 | ----------------------------------- |
---|
| 11 | */ |
---|
| 12 | |
---|
[390] | 13 | #ifndef root_H |
---|
| 14 | #define root_H |
---|
[357] | 15 | |
---|
| 16 | #include <string> |
---|
| 17 | |
---|
| 18 | #include "itpp_ext.h" |
---|
[387] | 19 | #include "base/libconfig/libconfig.h++" |
---|
[357] | 20 | |
---|
| 21 | using namespace libconfig; |
---|
| 22 | using namespace itpp; |
---|
| 23 | using namespace std; |
---|
| 24 | |
---|
| 25 | namespace bdm { |
---|
| 26 | |
---|
| 27 | //! Root class of BDM objects |
---|
[390] | 28 | class root { |
---|
[669] | 29 | //! level of details that will be logged to logger |
---|
| 30 | int log_level; |
---|
[357] | 31 | public: |
---|
| 32 | //! make sure this is a virtual object |
---|
[408] | 33 | virtual ~root() { |
---|
[357] | 34 | } |
---|
| 35 | |
---|
| 36 | //! This method returns a basic info about the current instance |
---|
[665] | 37 | virtual string to_string() const { |
---|
[357] | 38 | return ""; |
---|
| 39 | } |
---|
| 40 | |
---|
| 41 | //! This method arrange instance properties according the data stored in the Setting structure |
---|
[477] | 42 | virtual void from_setting ( const Setting &set ) { |
---|
[357] | 43 | } |
---|
| 44 | |
---|
[408] | 45 | //! This method save all the instance properties into the Setting structure |
---|
[477] | 46 | virtual void to_setting ( Setting &set ) const { |
---|
[357] | 47 | } |
---|
| 48 | |
---|
| 49 | //! This method TODO |
---|
[408] | 50 | virtual void validate() { |
---|
[357] | 51 | } |
---|
[669] | 52 | |
---|
[357] | 53 | }; |
---|
| 54 | |
---|
| 55 | }; //namespace |
---|
[390] | 56 | #endif // root_H |
---|