#pragma once #include #include #include #include namespace stubs { class DbusSensorObject { public: DbusSensorObject( boost::asio::io_context& ioc, const std::shared_ptr& bus, const std::shared_ptr& objServer); ~DbusSensorObject(); static const char* path(); static const char* interface(); void setValue(double); double getValue() const; struct Properties { static const char* value(); }; static constexpr Properties property = {}; private: boost::asio::io_context& ioc; std::shared_ptr bus; std::shared_ptr objServer; std::shared_ptr sensorIface; double value = 0.0; }; } // namespace stubs