Files

52 lines
1.3 KiB
C++
Raw Permalink Normal View History

2019-03-15 11:34:25 +01:00
/*
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
2019-03-15 11:34:25 +01:00
*/
#ifndef __sdbuscpp__perftests_proxy_h__proxy__H__
#define __sdbuscpp__perftests_proxy_h__proxy__H__
2019-03-15 11:34:25 +01:00
#include <sdbus-c++/sdbus-c++.h>
#include <string>
#include <tuple>
namespace org {
namespace sdbuscpp {
class perftests_proxy
2019-03-15 11:34:25 +01:00
{
public:
static constexpr const char* INTERFACE_NAME = "org.sdbuscpp.perftests";
2019-03-15 11:34:25 +01:00
protected:
perftests_proxy(sdbus::IProxy& proxy)
: proxy_(proxy)
2019-03-15 11:34:25 +01:00
{
proxy_.uponSignal("dataSignal").onInterface(INTERFACE_NAME).call([this](const std::string& data){ this->onDataSignal(data); });
2019-03-15 11:34:25 +01:00
}
~perftests_proxy() = default;
2019-03-15 11:34:25 +01:00
virtual void onDataSignal(const std::string& data) = 0;
public:
void sendDataSignals(const uint32_t& numberOfSignals, const uint32_t& signalMsgSize)
{
proxy_.callMethod("sendDataSignals").onInterface(INTERFACE_NAME).withArguments(numberOfSignals, signalMsgSize);
2019-03-15 11:34:25 +01:00
}
std::string concatenateTwoStrings(const std::string& string1, const std::string& string2)
{
std::string result;
proxy_.callMethod("concatenateTwoStrings").onInterface(INTERFACE_NAME).withArguments(string1, string2).storeResultsTo(result);
2019-03-15 11:34:25 +01:00
return result;
}
private:
sdbus::IProxy& proxy_;
2019-03-15 11:34:25 +01:00
};
}} // namespaces
#endif