root/library/bdm/bdmroot.h @ 670

Revision 670, 1.3 kB (checked in by smidl, 15 years ago)

root logging ids

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