diff options
| author | Manuel Traut <manut@mecka.net> | 2012-06-03 15:41:47 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2012-06-03 15:41:47 +0200 |
| commit | da8eeabec353e94a067de5cb0200bb6680da53de (patch) | |
| tree | 448fa741264ccb845550e3445d03e282cb3ffefc /manager/bin/manager_base.h | |
| parent | 99eaad1f40d12993321327667862699b9f63927b (diff) | |
manager: split into bin and lib
- bin is distrio_manager application
- lib is for components using the distrio_manager interface
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'manager/bin/manager_base.h')
| -rw-r--r-- | manager/bin/manager_base.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/manager/bin/manager_base.h b/manager/bin/manager_base.h new file mode 100644 index 0000000..790609e --- /dev/null +++ b/manager/bin/manager_base.h @@ -0,0 +1,21 @@ +/** + * used by interface implementation to store private attributes + * + * @author Manuel Traut <manut@mecka.net> + * @licence GPLv2 + */ + +#include <distrio_ioC.h> + +class Distrio_manager_base { + public: + Distrio_manager_base () {id = 0;} + ~Distrio_manager_base () {} + protected: + long id; + Distrio::Device_list device_list; + Distrio::Analog_list analog_list; + Distrio::Digital_list digital_list; + /* TODO: locking */ + long new_id () { return id++; } +}; |
