2019-03-15 11:34:25 +01:00
|
|
|
|
|
|
|
|
/*
|
2019-04-09 21:28:07 +02:00
|
|
|
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
2019-03-15 11:34:25 +01:00
|
|
|
*/
|
|
|
|
|
|
2019-05-29 22:28:15 +02: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 {
|
|
|
|
|
|
2019-04-09 21:28:07 +02:00
|
|
|
class perftests_proxy
|
2019-03-15 11:34:25 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2019-05-29 22:28:15 +02:00
|
|
|
static constexpr const char* INTERFACE_NAME = "org.sdbuscpp.perftests";
|
2019-03-15 11:34:25 +01:00
|
|
|
|
|
|
|
|
protected:
|
2019-04-09 21:28:07 +02:00
|
|
|
perftests_proxy(sdbus::IProxy& proxy)
|
|
|
|
|
: proxy_(proxy)
|
2019-03-15 11:34:25 +01:00
|
|
|
{
|
2019-05-29 22:28:15 +02:00
|
|
|
proxy_.uponSignal("dataSignal").onInterface(INTERFACE_NAME).call([this](const std::string& data){ this->onDataSignal(data); });
|
2019-03-15 11:34:25 +01:00
|
|
|
}
|
|
|
|
|
|
2019-06-10 22:54:16 +02: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)
|
|
|
|
|
{
|
2019-05-29 22:28:15 +02:00
|
|
|
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;
|
2019-05-29 22:28:15 +02:00
|
|
|
proxy_.callMethod("concatenateTwoStrings").onInterface(INTERFACE_NAME).withArguments(string1, string2).storeResultsTo(result);
|
2019-03-15 11:34:25 +01:00
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private:
|
2019-04-09 21:28:07 +02:00
|
|
|
sdbus::IProxy& proxy_;
|
2019-03-15 11:34:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}} // namespaces
|
|
|
|
|
|
|
|
|
|
#endif
|