2019-03-26 08:59:50 +01:00
|
|
|
|
|
|
|
|
/*
|
2019-04-04 20:39:31 +02:00
|
|
|
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
2019-03-26 08:59:50 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __sdbuscpp__celsius_thermometer_proxy_h__proxy__H__
|
|
|
|
|
#define __sdbuscpp__celsius_thermometer_proxy_h__proxy__H__
|
|
|
|
|
|
|
|
|
|
#include <sdbus-c++/sdbus-c++.h>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <tuple>
|
|
|
|
|
|
|
|
|
|
namespace org {
|
|
|
|
|
namespace sdbuscpp {
|
2019-04-04 20:39:31 +02:00
|
|
|
namespace stresstests {
|
2019-03-26 08:59:50 +01:00
|
|
|
namespace celsius {
|
|
|
|
|
|
|
|
|
|
class thermometer_proxy
|
|
|
|
|
{
|
|
|
|
|
public:
|
2019-05-29 22:28:15 +02:00
|
|
|
static constexpr const char* INTERFACE_NAME = "org.sdbuscpp.stresstests.celsius.thermometer";
|
2019-03-26 08:59:50 +01:00
|
|
|
|
|
|
|
|
protected:
|
2019-04-09 21:28:07 +02:00
|
|
|
thermometer_proxy(sdbus::IProxy& proxy)
|
|
|
|
|
: proxy_(proxy)
|
2019-03-26 08:59:50 +01:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-10 22:54:16 +02:00
|
|
|
~thermometer_proxy() = default;
|
|
|
|
|
|
2019-03-26 08:59:50 +01:00
|
|
|
public:
|
|
|
|
|
uint32_t getCurrentTemperature()
|
|
|
|
|
{
|
|
|
|
|
uint32_t result;
|
2019-05-29 22:28:15 +02:00
|
|
|
proxy_.callMethod("getCurrentTemperature").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
2019-03-26 08:59:50 +01:00
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private:
|
2019-04-09 21:28:07 +02:00
|
|
|
sdbus::IProxy& proxy_;
|
2019-03-26 08:59:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}}}} // namespaces
|
|
|
|
|
|
|
|
|
|
#endif
|