BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
HotplugEvent.h
1 #pragma once
2 
3 #include <string>
4 
5 #include <Poco/AutoPtr.h>
6 #include <Poco/Util/PropertyFileConfiguration.h>
7 
8 namespace BeeeOn {
9 
10 class HotplugEvent {
11 public:
12  typedef Poco::Util::PropertyFileConfiguration Properties;
13 
14  HotplugEvent();
15 
16  void setSubsystem(const std::string &subsystem);
17  std::string subsystem() const;
18 
19  void setNode(const std::string &node);
20  std::string node() const;
21 
22  void setType(const std::string &type);
23  std::string type() const;
24 
25  void setName(const std::string &name);
26  std::string name() const;
27 
28  void setDriver(const std::string &driver);
29  std::string driver() const;
30 
31  std::string toString() const;
32 
33  Poco::AutoPtr<Properties> properties() const;
34 
35 private:
36  std::string m_node;
37  std::string m_subsystem;
38  std::string m_type;
39  std::string m_name;
40  std::string m_driver;
41  Poco::AutoPtr<Properties> m_properties;
42 };
43 
44 }
Definition: HotplugEvent.h:10