root/library/bdm/bdmroot.h @ 669

Revision 669, 1.2 kB (checked in by smidl, 15 years ago)

all root offsprings can be logged

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        //! level of details that will be logged to logger
30        int log_level;
31public:
32        //! make sure this is a virtual object
33        virtual ~root() {
34        }
35
36        //! This method returns a basic info about the current instance
37        virtual string to_string() const {
38                return "";
39        }
40
41        //! This method arrange instance properties according the data stored in the Setting structure
42        virtual void from_setting ( const Setting &set ) {
43        }
44
45        //! This method save all the instance properties into the Setting structure
46        virtual void to_setting ( Setting &set ) const {
47        }
48
49        //! This method TODO
50        virtual void validate() {
51        }
52       
53};
54
55}; //namespace
56#endif // root_H
Note: See TracBrowser for help on using the browser.