Files
sdbus-cpp/tests/stresstests/celsius-thermometer-proxy.h
T

46 lines
895 B
C++
Raw Normal View History

2019-03-26 08:59:50 +01: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 {
namespace stresstests {
2019-03-26 08:59:50 +01:00
namespace celsius {
class thermometer_proxy
{
public:
static constexpr const char* INTERFACE_NAME = "org.sdbuscpp.stresstests.celsius.thermometer";
2019-03-26 08:59:50 +01:00
protected:
thermometer_proxy(sdbus::IProxy& proxy)
: proxy_(proxy)
2019-03-26 08:59:50 +01:00
{
}
~thermometer_proxy() = default;
2019-03-26 08:59:50 +01:00
public:
uint32_t getCurrentTemperature()
{
uint32_t result;
proxy_.callMethod("getCurrentTemperature").onInterface(INTERFACE_NAME).storeResultsTo(result);
2019-03-26 08:59:50 +01:00
return result;
}
private:
sdbus::IProxy& proxy_;
2019-03-26 08:59:50 +01:00
};
}}}} // namespaces
#endif