Scope
Base.h
1 #pragma once
2 
3 #include "ScopeDatatypes.h"
4 
5 namespace scope {
6 
8 namespace parameters {
9 
10 using boost::property_tree::wptree;
11 
21 class Base {
22 protected:
27  std::vector<boost::signals2::connection> connection_collector;
28 
29 public:
30  virtual ~Base();
31 
33  virtual void Load(const wptree& pt) {}
34 
36  virtual void Save(wptree& pt) const {}
37 
39  virtual void SetReadOnlyWhileScanning(const RunState& _runstate) {}
40 };
41 
42 }
43 
44 }
std::vector< boost::signals2::connection > connection_collector
You can put connections between ScopeValues in different classes in here.
Definition: Base.h:27
virtual void SetReadOnlyWhileScanning(const RunState &_runstate)
set values that must not be changed to read-only during scanning.
Definition: Base.h:39
All parameter classes derive from this.
Definition: Base.h:21
Base class for all Scope datatypes here, provides a uniform interface (and saves typing...).
virtual void Load(const wptree &pt)
load parameters from a boost::property_tree
Definition: Base.h:33
In here all declarations for all kinds of datatypes Scope needs.
virtual void Save(wptree &pt) const
save parameters into a boost:property_tree
Definition: Base.h:36