root/library/bdm/bdmroot.h @ 673

Revision 673, 1.4 kB (checked in by smidl, 15 years ago)

root

Line 
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
13#ifndef root_H
14#define root_H
15
16#include <string>
17
18#include "itpp_ext.h"
19#include "base/libconfig/libconfig.h++"
20
21using namespace libconfig;
22using namespace itpp;
23using namespace std;
24
25namespace bdm {
26
27//! Root class of BDM objects
28class root {
29        protected:
30        //! level of details that will be logged to logger
31        int log_level;
32        //! vector of log IDs - one element for each entry
33        ivec log_ids;
34public:
35        //! make sure this is a virtual object
36        virtual ~root() {
37        }
38
39        //! This method returns a basic info about the current instance
40        virtual string to_string() const {
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 &set ) {
46        }
47
48        //! This method save all the instance properties into the Setting structure
49        virtual void to_setting ( Setting &set ) const {
50        }
51
52        //! This method checks that all internal structures has been correctly set-up, always call at the ned of from_setting
53        virtual void validate() {
54        }
55};
56
57}; //namespace
58#endif // root_H
Note: See TracBrowser for help on using the browser.