From faea5f299525500093843da72215d279c3eb483d Mon Sep 17 00:00:00 2001 From: Dirk Huss Date: Wed, 25 Nov 2015 14:59:52 +0100 Subject: CommonAPI-D-Bus 3.1.4 --- .../tests/ExtendedInterfaceDBusDeployment.cpp | 28 -- .../tests/ExtendedInterfaceDBusDeployment.hpp | 43 -- .../commonapi/tests/ExtendedInterfaceDBusProxy.cpp | 82 ---- .../commonapi/tests/ExtendedInterfaceDBusProxy.hpp | 61 --- .../tests/ExtendedInterfaceDBusStubAdapter.cpp | 339 ------------- .../tests/ExtendedInterfaceDBusStubAdapter.hpp | 269 ----------- ...stFreedesktopDerivedInterfaceDBusDeployment.cpp | 28 -- ...stFreedesktopDerivedInterfaceDBusDeployment.hpp | 43 -- .../TestFreedesktopDerivedInterfaceDBusProxy.cpp | 51 -- .../TestFreedesktopDerivedInterfaceDBusProxy.hpp | 62 --- ...tFreedesktopDerivedInterfaceDBusStubAdapter.cpp | 221 --------- ...tFreedesktopDerivedInterfaceDBusStubAdapter.hpp | 166 ------- .../TestFreedesktopInterfaceDBusDeployment.cpp | 28 -- .../TestFreedesktopInterfaceDBusDeployment.hpp | 44 -- .../tests/TestFreedesktopInterfaceDBusProxy.cpp | 62 --- .../tests/TestFreedesktopInterfaceDBusProxy.hpp | 68 --- .../TestFreedesktopInterfaceDBusStubAdapter.cpp | 248 ---------- .../TestFreedesktopInterfaceDBusStubAdapter.hpp | 134 ------ .../tests/TestInterfaceDBusDeployment.cpp | 28 -- .../tests/TestInterfaceDBusDeployment.hpp | 44 -- .../commonapi/tests/TestInterfaceDBusProxy.cpp | 417 ---------------- .../commonapi/tests/TestInterfaceDBusProxy.hpp | 93 ---- .../tests/TestInterfaceDBusStubAdapter.cpp | 531 --------------------- .../tests/TestInterfaceDBusStubAdapter.hpp | 247 ---------- .../managed/BranchInterfaceDBusDeployment.cpp | 30 -- .../managed/BranchInterfaceDBusDeployment.hpp | 45 -- .../tests/managed/BranchInterfaceDBusProxy.cpp | 104 ---- .../tests/managed/BranchInterfaceDBusProxy.hpp | 62 --- .../managed/BranchInterfaceDBusStubAdapter.cpp | 109 ----- .../managed/BranchInterfaceDBusStubAdapter.hpp | 109 ----- .../tests/managed/LeafInterfaceDBusDeployment.cpp | 30 -- .../tests/managed/LeafInterfaceDBusDeployment.hpp | 45 -- .../tests/managed/LeafInterfaceDBusProxy.cpp | 104 ---- .../tests/managed/LeafInterfaceDBusProxy.hpp | 62 --- .../tests/managed/LeafInterfaceDBusStubAdapter.cpp | 109 ----- .../tests/managed/LeafInterfaceDBusStubAdapter.hpp | 109 ----- .../tests/managed/RootInterfaceDBusDeployment.cpp | 30 -- .../tests/managed/RootInterfaceDBusDeployment.hpp | 45 -- .../tests/managed/RootInterfaceDBusProxy.cpp | 112 ----- .../tests/managed/RootInterfaceDBusProxy.hpp | 67 --- .../tests/managed/RootInterfaceDBusStubAdapter.cpp | 229 --------- .../tests/managed/RootInterfaceDBusStubAdapter.hpp | 119 ----- .../tests/managed/SecondRootDBusDeployment.cpp | 30 -- .../tests/managed/SecondRootDBusDeployment.hpp | 45 -- .../tests/managed/SecondRootDBusProxy.cpp | 52 -- .../tests/managed/SecondRootDBusProxy.hpp | 63 --- .../tests/managed/SecondRootDBusStubAdapter.cpp | 151 ------ .../tests/managed/SecondRootDBusStubAdapter.hpp | 106 ---- 48 files changed, 5304 deletions(-) delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusDeployment.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusDeployment.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusProxy.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusProxy.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusStubAdapter.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusStubAdapter.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusDeployment.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusDeployment.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusProxy.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusProxy.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusStubAdapter.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusStubAdapter.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusDeployment.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusDeployment.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusProxy.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusProxy.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusStubAdapter.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusStubAdapter.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusDeployment.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusDeployment.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusProxy.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusProxy.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusStubAdapter.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusStubAdapter.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusDeployment.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusDeployment.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusProxy.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusProxy.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusStubAdapter.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusStubAdapter.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusDeployment.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusDeployment.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusProxy.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusProxy.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusStubAdapter.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusStubAdapter.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusDeployment.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusDeployment.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusProxy.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusProxy.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusStubAdapter.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusStubAdapter.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusDeployment.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusDeployment.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusProxy.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusProxy.hpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusStubAdapter.cpp delete mode 100644 src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusStubAdapter.hpp (limited to 'src/test/src-gen/dbus/v1_0/commonapi/tests') diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusDeployment.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusDeployment.cpp deleted file mode 100644 index a267c64..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusDeployment.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include "ExtendedInterfaceDBusDeployment.hpp" - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace ExtendedInterface_ { - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - -} // namespace ExtendedInterface_ -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusDeployment.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusDeployment.hpp deleted file mode 100644 index aa20be0..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusDeployment.hpp +++ /dev/null @@ -1,43 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ - -#ifndef COMMONAPI_DBUS_EXTENDEDINTERFACE_DEPLOYMENT_HPP_ -#define COMMONAPI_DBUS_EXTENDEDINTERFACE_DEPLOYMENT_HPP_ - - - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif -#include -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace ExtendedInterface_ { - -// Interface-specific deployment types - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - - -} // namespace ExtendedInterface_ -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_DBUS_EXTENDEDINTERFACE_DEPLOYMENT_HPP_ diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusProxy.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusProxy.cpp deleted file mode 100644 index 48758f3..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusProxy.cpp +++ /dev/null @@ -1,82 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { - -std::shared_ptr createExtendedInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) { - return std::make_shared(_address, _connection); -} - -INITIALIZER(registerExtendedInterfaceDBusProxy) { - CommonAPI::DBus::Factory::get()->registerProxyCreateMethod( - ExtendedInterface::getInterface(), - &createExtendedInterfaceDBusProxy); -} - -ExtendedInterfaceDBusProxy::ExtendedInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) - : CommonAPI::DBus::DBusProxy(_address, _connection), - TestInterfaceDBusProxy(_address, _connection) -{ -} - - - - void ExtendedInterfaceDBusProxy::TestIntMethodExtended(const uint32_t &_inInt, CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable deploy_inInt(_inInt, static_cast(nullptr)); - CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodWithReply( - *this, - "TestIntMethodExtended", - "u", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inInt, - _internalCallStatus); - } - std::future ExtendedInterfaceDBusProxy::TestIntMethodExtendedAsync(const uint32_t &_inInt, TestIntMethodExtendedAsyncCallback _callback, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable deploy_inInt(_inInt, static_cast(nullptr)); - return CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodAsync( - *this, - "TestIntMethodExtended", - "u", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inInt, - [_callback] (CommonAPI::CallStatus _status) { - _callback(_status); - }, - std::make_tuple()); - } - - - void ExtendedInterfaceDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const { - ownVersionMajor = 1; - ownVersionMinor = 0; - } - - } // namespace tests - } // namespace commonapi - } // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusProxy.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusProxy.hpp deleted file mode 100644 index a3358bf..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusProxy.hpp +++ /dev/null @@ -1,61 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_Extended_Interface_DBUS_PROXY_HPP_ -#define COMMONAPI_TESTS_Extended_Interface_DBUS_PROXY_HPP_ - -#include -#include - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { - -class ExtendedInterfaceDBusProxy - : virtual public ExtendedInterfaceProxyBase, - virtual public TestInterfaceDBusProxy { -public: - ExtendedInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection); - - virtual ~ExtendedInterfaceDBusProxy() { } - - - - virtual void TestIntMethodExtended(const uint32_t &_inInt, CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info); - virtual std::future TestIntMethodExtendedAsync(const uint32_t &_inInt, TestIntMethodExtendedAsyncCallback _callback, const CommonAPI::CallInfo *_info); - - - virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const; - -private: - - - -}; - -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_Extended_Interface_DBUS_PROXY_HPP_ - diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusStubAdapter.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusStubAdapter.cpp deleted file mode 100644 index 40578de..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusStubAdapter.cpp +++ /dev/null @@ -1,339 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { - -std::shared_ptr createExtendedInterfaceDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) { - return std::make_shared(_address, _connection, _stub); -} - -INITIALIZER(registerExtendedInterfaceDBusStubAdapter) { - CommonAPI::DBus::Factory::get()->registerStubAdapterCreateMethod( - ExtendedInterface::getInterface(), &createExtendedInterfaceDBusStubAdapter); -} - -ExtendedInterfaceDBusStubAdapterInternal::~ExtendedInterfaceDBusStubAdapterInternal() { - deactivateManagedInstances(); - ExtendedInterfaceDBusStubAdapterHelper::deinit(); -} - -void ExtendedInterfaceDBusStubAdapterInternal::deactivateManagedInstances() { - -} - -const char* ExtendedInterfaceDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData() const { - static const std::string introspectionData = - std::string(TestInterfaceDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData()) + - "\n" - "\n" - "\n" - - ; - return introspectionData.c_str(); -} - -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - ExtendedInterfaceStub, - CommonAPI::Version - > ExtendedInterfaceDBusStubAdapterInternal::getExtendedInterfaceInterfaceVersionStubDispatcher(&ExtendedInterfaceStub::getInterfaceVersion, "uu"); - - -#ifdef WIN32 -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - ExtendedInterfaceStub, - uint32_t - > ExtendedInterfaceDBusStubAdapterInternal::getTestPredefinedTypeAttributeAttributeStubDispatcher( - &ExtendedInterfaceStub::getTestPredefinedTypeAttributeAttribute - , "u" - ); -CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - ExtendedInterfaceStub, - uint32_t - > ExtendedInterfaceDBusStubAdapterInternal::setTestPredefinedTypeAttributeAttributeStubDispatcher( - &ExtendedInterfaceStub::getTestPredefinedTypeAttributeAttribute, - &ExtendedInterfaceStubRemoteEvent::onRemoteSetTestPredefinedTypeAttributeAttribute, - &ExtendedInterfaceStubRemoteEvent::onRemoteTestPredefinedTypeAttributeAttributeChanged - ,&ExtendedInterfaceStubAdapter::fireTestPredefinedTypeAttributeAttributeChanged - ,"u" - ); -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - ExtendedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > ExtendedInterfaceDBusStubAdapterInternal::getTestDerivedStructAttributeAttributeStubDispatcher( - &ExtendedInterfaceStub::getTestDerivedStructAttributeAttribute - , "(sqi)" - ); -CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - ExtendedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > ExtendedInterfaceDBusStubAdapterInternal::setTestDerivedStructAttributeAttributeStubDispatcher( - &ExtendedInterfaceStub::getTestDerivedStructAttributeAttribute, - &ExtendedInterfaceStubRemoteEvent::onRemoteSetTestDerivedStructAttributeAttribute, - &ExtendedInterfaceStubRemoteEvent::onRemoteTestDerivedStructAttributeAttributeChanged - ,&ExtendedInterfaceStubAdapter::fireTestDerivedStructAttributeAttributeChanged - ,"(sqi)" - ); -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - ExtendedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > ExtendedInterfaceDBusStubAdapterInternal::getTestDerivedArrayAttributeAttributeStubDispatcher( - &ExtendedInterfaceStub::getTestDerivedArrayAttributeAttribute - , "at" - ); -CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - ExtendedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > ExtendedInterfaceDBusStubAdapterInternal::setTestDerivedArrayAttributeAttributeStubDispatcher( - &ExtendedInterfaceStub::getTestDerivedArrayAttributeAttribute, - &ExtendedInterfaceStubRemoteEvent::onRemoteSetTestDerivedArrayAttributeAttribute, - &ExtendedInterfaceStubRemoteEvent::onRemoteTestDerivedArrayAttributeAttributeChanged - ,&ExtendedInterfaceStubAdapter::fireTestDerivedArrayAttributeAttributeChanged - ,"at" - ); -#endif - - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple, - std::tuple<>, - std::tuple, - std::tuple<> - - > ExtendedInterfaceDBusStubAdapterInternal::testIntMethodExtendedStubDispatcher( - &ExtendedInterfaceStub::TestIntMethodExtended, "", - std::make_tuple(static_cast(nullptr)), - std::make_tuple()); - -#ifdef WIN32 - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple<>, - std::tuple<>, - std::tuple<>, - std::tuple<> - - > ExtendedInterfaceDBusStubAdapterInternal::testEmptyMethodStubDispatcher( - &ExtendedInterfaceStub::testEmptyMethod, "", - std::make_tuple(), - std::make_tuple()); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple, - std::tuple<>, - std::tuple, - std::tuple<> - - > ExtendedInterfaceDBusStubAdapterInternal::testVoidPredefinedTypeMethodStubDispatcher( - &ExtendedInterfaceStub::testVoidPredefinedTypeMethod, "", - std::make_tuple(static_cast(nullptr), static_cast(nullptr)), - std::make_tuple()); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple, - std::tuple, - std::tuple, - std::tuple - - > ExtendedInterfaceDBusStubAdapterInternal::testPredefinedTypeMethodStubDispatcher( - &ExtendedInterfaceStub::testPredefinedTypeMethod, "us", - std::make_tuple(static_cast(nullptr), static_cast(nullptr)), - std::make_tuple(static_cast(nullptr), static_cast(nullptr))); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, ::commonapi::tests::DerivedTypeCollection::TestMap>, - std::tuple<>, - std::tuple, - std::tuple<> - - > ExtendedInterfaceDBusStubAdapterInternal::testVoidDerivedTypeMethodStubDispatcher( - &ExtendedInterfaceStub::testVoidDerivedTypeMethod, "", - std::make_tuple(static_cast(nullptr), static_cast<::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t*>(nullptr)), - std::make_tuple()); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, ::commonapi::tests::DerivedTypeCollection::TestMap>, - std::tuple<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, ::commonapi::tests::DerivedTypeCollection::TestMap>, - std::tuple, - std::tuple - - > ExtendedInterfaceDBusStubAdapterInternal::testDerivedTypeMethodStubDispatcher( - &ExtendedInterfaceStub::testDerivedTypeMethod, "ia{ua(sq)}", - std::make_tuple(static_cast(nullptr), static_cast<::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t*>(nullptr)), - std::make_tuple(static_cast(nullptr), static_cast<::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t*>(nullptr))); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple>>, - std::tuple<>, - std::tuple>, - std::tuple<> - - > ExtendedInterfaceDBusStubAdapterInternal::testArrayOfPolymorphicStructMethodStubDispatcher( - &ExtendedInterfaceStub::TestArrayOfPolymorphicStructMethod, "", - std::make_tuple(static_cast*>(nullptr)), - std::make_tuple()); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::MapIntToPolymorphic>, - std::tuple<>, - std::tuple<::commonapi::tests::DerivedTypeCollection_::MapIntToPolymorphicDeployment_t>, - std::tuple<> - - > ExtendedInterfaceDBusStubAdapterInternal::testMapOfPolymorphicStructMethodStubDispatcher( - &ExtendedInterfaceStub::TestMapOfPolymorphicStructMethod, "", - std::make_tuple(static_cast<::commonapi::tests::DerivedTypeCollection_::MapIntToPolymorphicDeployment_t*>(nullptr)), - std::make_tuple()); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::StructWithPolymorphicMember>, - std::tuple<>, - std::tuple<::commonapi::tests::DerivedTypeCollection_::StructWithPolymorphicMemberDeployment_t>, - std::tuple<> - - > ExtendedInterfaceDBusStubAdapterInternal::testStructWithPolymorphicMemberMethodStubDispatcher( - &ExtendedInterfaceStub::TestStructWithPolymorphicMemberMethod, "", - std::make_tuple(static_cast<::commonapi::tests::DerivedTypeCollection_::StructWithPolymorphicMemberDeployment_t*>(nullptr)), - std::make_tuple()); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::StructWithEnumKeyMap>, - std::tuple<>, - std::tuple<::commonapi::tests::DerivedTypeCollection_::StructWithEnumKeyMapDeployment_t>, - std::tuple<> - - > ExtendedInterfaceDBusStubAdapterInternal::testStructWithEnumKeyMapMemberStubDispatcher( - &ExtendedInterfaceStub::TestStructWithEnumKeyMapMember, "", - std::make_tuple(static_cast<::commonapi::tests::DerivedTypeCollection_::StructWithEnumKeyMapDeployment_t*>(nullptr)), - std::make_tuple()); -#endif - - - -#ifdef WIN32 -CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - ExtendedInterfaceStub, - ExtendedInterfaceStubAdapter, - std::tuple<>, - std::tuple - > ExtendedInterfaceDBusStubAdapterInternal::subscribeTestSelectiveBroadcastSelectiveStubDispatcher(&ExtendedInterfaceStubAdapter::subscribeForTestSelectiveBroadcastSelective, "b"); - -CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - ExtendedInterfaceStub, - ExtendedInterfaceStubAdapter, - std::tuple<>, - std::tuple<> - > ExtendedInterfaceDBusStubAdapterInternal::unsubscribeTestSelectiveBroadcastSelectiveStubDispatcher(&ExtendedInterfaceStubAdapter::unsubscribeFromTestSelectiveBroadcastSelective, ""); -CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - ExtendedInterfaceStub, - ExtendedInterfaceStubAdapter, - std::tuple<>, - std::tuple - > ExtendedInterfaceDBusStubAdapterInternal::subscribeTestBroadcastWithOutArgsSelectiveStubDispatcher(&ExtendedInterfaceStubAdapter::subscribeForTestBroadcastWithOutArgsSelective, "b"); - -CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - ExtendedInterfaceStub, - ExtendedInterfaceStubAdapter, - std::tuple<>, - std::tuple<> - > ExtendedInterfaceDBusStubAdapterInternal::unsubscribeTestBroadcastWithOutArgsSelectiveStubDispatcher(&ExtendedInterfaceStubAdapter::unsubscribeFromTestBroadcastWithOutArgsSelective, ""); -#endif - -const ExtendedInterfaceDBusStubAdapterHelper::StubDispatcherTable& ExtendedInterfaceDBusStubAdapterInternal::getStubDispatcherTable() { - return stubDispatcherTable_; -} - -const CommonAPI::DBus::StubAttributeTable& ExtendedInterfaceDBusStubAdapterInternal::getStubAttributeTable() { - return stubAttributeTable_; -} - -ExtendedInterfaceDBusStubAdapterInternal::ExtendedInterfaceDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter(_address, _connection,false), - ExtendedInterfaceDBusStubAdapterHelper(_address, _connection, std::dynamic_pointer_cast(_stub), false), - TestInterfaceDBusStubAdapterInternal(_address, _connection, _stub), - stubDispatcherTable_({ - { { "TestIntMethodExtended", "u" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::testIntMethodExtendedStubDispatcher } - #ifdef WIN32 - , - { { "getTestPredefinedTypeAttributeAttribute", "" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::getTestPredefinedTypeAttributeAttributeStubDispatcher } - , { { "setTestPredefinedTypeAttributeAttribute", "u" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::setTestPredefinedTypeAttributeAttributeStubDispatcher }, - { { "getTestDerivedStructAttributeAttribute", "" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::getTestDerivedStructAttributeAttributeStubDispatcher } - , { { "setTestDerivedStructAttributeAttribute", "(sqi)" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::setTestDerivedStructAttributeAttributeStubDispatcher }, - { { "getTestDerivedArrayAttributeAttribute", "" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::getTestDerivedArrayAttributeAttributeStubDispatcher } - , { { "setTestDerivedArrayAttributeAttribute", "at" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::setTestDerivedArrayAttributeAttributeStubDispatcher } - , - { { "testEmptyMethod", "" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::testEmptyMethodStubDispatcher }, - { { "testVoidPredefinedTypeMethod", "us" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::testVoidPredefinedTypeMethodStubDispatcher }, - { { "testPredefinedTypeMethod", "us" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::testPredefinedTypeMethodStubDispatcher }, - { { "testVoidDerivedTypeMethod", "ia{ua(sq)}" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::testVoidDerivedTypeMethodStubDispatcher }, - { { "testDerivedTypeMethod", "ia{ua(sq)}" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::testDerivedTypeMethodStubDispatcher }, - { { "TestArrayOfPolymorphicStructMethod", "a(uv)" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::testArrayOfPolymorphicStructMethodStubDispatcher }, - { { "TestMapOfPolymorphicStructMethod", "a{y(uv)}" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::testMapOfPolymorphicStructMethodStubDispatcher }, - { { "TestStructWithPolymorphicMemberMethod", "(u(uv))" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::testStructWithPolymorphicMemberMethodStubDispatcher }, - { { "TestStructWithEnumKeyMapMember", "(a{is})" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::testStructWithEnumKeyMapMemberStubDispatcher } - , - { { "subscribeForTestSelectiveBroadcastSelective", "" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::subscribeTestSelectiveBroadcastSelectiveStubDispatcher } - , - { { "unsubscribeFromTestSelectiveBroadcastSelective", "" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::unsubscribeTestSelectiveBroadcastSelectiveStubDispatcher }, - { { "subscribeForTestBroadcastWithOutArgsSelective", "" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::subscribeTestBroadcastWithOutArgsSelectiveStubDispatcher } - , - { { "unsubscribeFromTestBroadcastWithOutArgsSelective", "" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::unsubscribeTestBroadcastWithOutArgsSelectiveStubDispatcher } - #endif - }), - stubAttributeTable_() { - - #ifdef WIN32 - stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::getExtendedInterfaceInterfaceVersionStubDispatcher }); - #else - auto parentDispatcherTable = TestInterfaceDBusStubAdapterInternal::getStubDispatcherTable(); - stubDispatcherTable_.insert(parentDispatcherTable.begin(), parentDispatcherTable.end()); - - auto interfaceVersionGetter = stubDispatcherTable_.find({ "getInterfaceVersion", "" }); - if(interfaceVersionGetter != stubDispatcherTable_.end()) { - interfaceVersionGetter->second = &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::getExtendedInterfaceInterfaceVersionStubDispatcher; - } else { - stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &commonapi::tests::ExtendedInterfaceDBusStubAdapterInternal::getExtendedInterfaceInterfaceVersionStubDispatcher }); - } - - auto parentAttributeTable = TestInterfaceDBusStubAdapterInternal::getStubAttributeTable(); - stubAttributeTable_.insert(parentAttributeTable.begin(), parentAttributeTable.end()); - - #endif -} - -const bool ExtendedInterfaceDBusStubAdapterInternal::hasFreedesktopProperties() { - return false; -} - -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusStubAdapter.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusStubAdapter.hpp deleted file mode 100644 index acbce43..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/ExtendedInterfaceDBusStubAdapter.hpp +++ /dev/null @@ -1,269 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_Extended_Interface_DBUS_STUB_ADAPTER_HPP_ -#define COMMONAPI_TESTS_Extended_Interface_DBUS_STUB_ADAPTER_HPP_ - -#include -#include -#include "v1_0/commonapi/tests/ExtendedInterfaceDBusDeployment.hpp" - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { - -typedef CommonAPI::DBus::DBusStubAdapterHelper ExtendedInterfaceDBusStubAdapterHelper; - -class ExtendedInterfaceDBusStubAdapterInternal - : public virtual ExtendedInterfaceStubAdapter, - public ExtendedInterfaceDBusStubAdapterHelper, - public TestInterfaceDBusStubAdapterInternal -{ -public: - ExtendedInterfaceDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub); - - ~ExtendedInterfaceDBusStubAdapterInternal(); - - virtual const bool hasFreedesktopProperties(); - - - - - const ExtendedInterfaceDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable(); - const CommonAPI::DBus::StubAttributeTable& getStubAttributeTable(); - - void deactivateManagedInstances(); - - virtual const CommonAPI::Address &getAddress() const { - return DBusStubAdapter::getAddress(); - } - - virtual void init(std::shared_ptr instance) { - return ExtendedInterfaceDBusStubAdapterHelper::init(instance); - } - - virtual void deinit() { - return ExtendedInterfaceDBusStubAdapterHelper::deinit(); - } - - virtual bool onInterfaceDBusMessage(const CommonAPI::DBus::DBusMessage& dbusMessage) { - return ExtendedInterfaceDBusStubAdapterHelper::onInterfaceDBusMessage(dbusMessage); - } - - virtual bool onInterfaceDBusFreedesktopPropertiesMessage(const CommonAPI::DBus::DBusMessage& dbusMessage) { - return ExtendedInterfaceDBusStubAdapterHelper::onInterfaceDBusFreedesktopPropertiesMessage(dbusMessage); - } - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - ExtendedInterfaceStub, - CommonAPI::Version - > getExtendedInterfaceInterfaceVersionStubDispatcher; - - -#ifdef WIN32 -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - ExtendedInterfaceStub, - uint32_t - > getTestPredefinedTypeAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - ExtendedInterfaceStub, - uint32_t - > setTestPredefinedTypeAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - ExtendedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > getTestDerivedStructAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - ExtendedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > setTestDerivedStructAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - ExtendedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > getTestDerivedArrayAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - ExtendedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > setTestDerivedArrayAttributeAttributeStubDispatcher; -#endif - - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple, - std::tuple<>, - std::tuple, - std::tuple<> - - > testIntMethodExtendedStubDispatcher; - -#ifdef WIN32 - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple<>, - std::tuple<>, - std::tuple<>, - std::tuple<> - - > testEmptyMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple, - std::tuple<>, - std::tuple, - std::tuple<> - - > testVoidPredefinedTypeMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple, - std::tuple, - std::tuple, - std::tuple - - > testPredefinedTypeMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, ::commonapi::tests::DerivedTypeCollection::TestMap>, - std::tuple<>, - std::tuple, - std::tuple<> - - > testVoidDerivedTypeMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, ::commonapi::tests::DerivedTypeCollection::TestMap>, - std::tuple<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, ::commonapi::tests::DerivedTypeCollection::TestMap>, - std::tuple, - std::tuple - - > testDerivedTypeMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple>>, - std::tuple<>, - std::tuple>, - std::tuple<> - - > testArrayOfPolymorphicStructMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::MapIntToPolymorphic>, - std::tuple<>, - std::tuple<::commonapi::tests::DerivedTypeCollection_::MapIntToPolymorphicDeployment_t>, - std::tuple<> - - > testMapOfPolymorphicStructMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::StructWithPolymorphicMember>, - std::tuple<>, - std::tuple<::commonapi::tests::DerivedTypeCollection_::StructWithPolymorphicMemberDeployment_t>, - std::tuple<> - - > testStructWithPolymorphicMemberMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ExtendedInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::StructWithEnumKeyMap>, - std::tuple<>, - std::tuple<::commonapi::tests::DerivedTypeCollection_::StructWithEnumKeyMapDeployment_t>, - std::tuple<> - - > testStructWithEnumKeyMapMemberStubDispatcher; -#endif - - -#ifdef WIN32 -static CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - ExtendedInterfaceStub, - ExtendedInterfaceStubAdapter, - std::tuple<>, - std::tuple - > subscribeTestSelectiveBroadcastSelectiveStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - ExtendedInterfaceStub, - ExtendedInterfaceStubAdapter, - std::tuple<>, - std::tuple<> - > unsubscribeTestSelectiveBroadcastSelectiveStubDispatcher; -static CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - ExtendedInterfaceStub, - ExtendedInterfaceStubAdapter, - std::tuple<>, - std::tuple - > subscribeTestBroadcastWithOutArgsSelectiveStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - ExtendedInterfaceStub, - ExtendedInterfaceStubAdapter, - std::tuple<>, - std::tuple<> - > unsubscribeTestBroadcastWithOutArgsSelectiveStubDispatcher; -#endif - - protected: - virtual const char* getMethodsDBusIntrospectionXmlData() const; - - private: - ExtendedInterfaceDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; - CommonAPI::DBus::StubAttributeTable stubAttributeTable_; -}; - -class ExtendedInterfaceDBusStubAdapter - : public ExtendedInterfaceDBusStubAdapterInternal, - public std::enable_shared_from_this { -public: - ExtendedInterfaceDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter( - _address, - _connection, - false), - ExtendedInterfaceDBusStubAdapterInternal( - _address, - _connection, - _stub) { - } -}; - -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_Extended_Interface_DBUS_STUB_ADAPTER_HPP_ diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusDeployment.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusDeployment.cpp deleted file mode 100644 index c96b62e..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusDeployment.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include "TestFreedesktopDerivedInterfaceDBusDeployment.hpp" - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace TestFreedesktopDerivedInterface_ { - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - -} // namespace TestFreedesktopDerivedInterface_ -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusDeployment.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusDeployment.hpp deleted file mode 100644 index bdb1c56..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusDeployment.hpp +++ /dev/null @@ -1,43 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ - -#ifndef COMMONAPI_DBUS_TESTFREEDESKTOPDERIVEDINTERFACE_DEPLOYMENT_HPP_ -#define COMMONAPI_DBUS_TESTFREEDESKTOPDERIVEDINTERFACE_DEPLOYMENT_HPP_ - - - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif -#include -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace TestFreedesktopDerivedInterface_ { - -// Interface-specific deployment types - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - - -} // namespace TestFreedesktopDerivedInterface_ -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_DBUS_TESTFREEDESKTOPDERIVEDINTERFACE_DEPLOYMENT_HPP_ diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusProxy.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusProxy.cpp deleted file mode 100644 index d46a6cc..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusProxy.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { - -std::shared_ptr createTestFreedesktopDerivedInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) { - return std::make_shared(_address, _connection); -} - -INITIALIZER(registerTestFreedesktopDerivedInterfaceDBusProxy) { - CommonAPI::DBus::Factory::get()->registerProxyCreateMethod( - TestFreedesktopDerivedInterface::getInterface(), - &createTestFreedesktopDerivedInterfaceDBusProxy); -} - -TestFreedesktopDerivedInterfaceDBusProxy::TestFreedesktopDerivedInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) - : CommonAPI::DBus::DBusProxy(_address, _connection), - TestFreedesktopInterfaceDBusProxy(_address, _connection) -, testAttributedFromDerivedInterface_(*this, "onTestAttributedFromDerivedInterfaceAttributeChanged", "setTestAttributedFromDerivedInterfaceAttribute", "u", "getTestAttributedFromDerivedInterfaceAttribute", static_cast(nullptr)) -{ -} - - TestFreedesktopDerivedInterfaceDBusProxy::TestAttributedFromDerivedInterfaceAttribute& TestFreedesktopDerivedInterfaceDBusProxy::getTestAttributedFromDerivedInterfaceAttribute() { - return testAttributedFromDerivedInterface_; - } - - - - - void TestFreedesktopDerivedInterfaceDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const { - ownVersionMajor = 1; - ownVersionMinor = 0; - } - - } // namespace tests - } // namespace commonapi - } // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusProxy.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusProxy.hpp deleted file mode 100644 index 24cfb5c..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusProxy.hpp +++ /dev/null @@ -1,62 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_Test_Freedesktop_Derived_Interface_DBUS_PROXY_HPP_ -#define COMMONAPI_TESTS_Test_Freedesktop_Derived_Interface_DBUS_PROXY_HPP_ - -#include -#include - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { - -class TestFreedesktopDerivedInterfaceDBusProxy - : virtual public TestFreedesktopDerivedInterfaceProxyBase, - virtual public TestFreedesktopInterfaceDBusProxy { -public: - TestFreedesktopDerivedInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection); - - virtual ~TestFreedesktopDerivedInterfaceDBusProxy() { } - - virtual TestAttributedFromDerivedInterfaceAttribute& getTestAttributedFromDerivedInterfaceAttribute(); - - - - - virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const; - -private: - - CommonAPI::DBus::DBusObservableAttribute> testAttributedFromDerivedInterface_; - - -}; - -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_Test_Freedesktop_Derived_Interface_DBUS_PROXY_HPP_ - diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusStubAdapter.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusStubAdapter.cpp deleted file mode 100644 index 75505eb..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusStubAdapter.cpp +++ /dev/null @@ -1,221 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { - -std::shared_ptr createTestFreedesktopDerivedInterfaceDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) { - return std::make_shared(_address, _connection, _stub); -} - -INITIALIZER(registerTestFreedesktopDerivedInterfaceDBusStubAdapter) { - CommonAPI::DBus::Factory::get()->registerStubAdapterCreateMethod( - TestFreedesktopDerivedInterface::getInterface(), &createTestFreedesktopDerivedInterfaceDBusStubAdapter); -} - -TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::~TestFreedesktopDerivedInterfaceDBusStubAdapterInternal() { - deactivateManagedInstances(); - TestFreedesktopDerivedInterfaceDBusStubAdapterHelper::deinit(); -} - -void TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::deactivateManagedInstances() { - -} - -const char* TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData() const { - static const std::string introspectionData = - std::string(TestFreedesktopInterfaceDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData()) + - "\n" - "" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - - ; - return introspectionData.c_str(); -} - -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - CommonAPI::Version - > TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getTestFreedesktopDerivedInterfaceInterfaceVersionStubDispatcher(&TestFreedesktopDerivedInterfaceStub::getInterfaceVersion, "uu"); - -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - uint32_t - > TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getTestAttributedFromDerivedInterfaceAttributeStubDispatcher( - &TestFreedesktopDerivedInterfaceStub::getTestAttributedFromDerivedInterfaceAttribute - , "u" - ); -CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - uint32_t - > TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::setTestAttributedFromDerivedInterfaceAttributeStubDispatcher( - &TestFreedesktopDerivedInterfaceStub::getTestAttributedFromDerivedInterfaceAttribute, - &TestFreedesktopDerivedInterfaceStubRemoteEvent::onRemoteSetTestAttributedFromDerivedInterfaceAttribute, - &TestFreedesktopDerivedInterfaceStubRemoteEvent::onRemoteTestAttributedFromDerivedInterfaceAttributeChanged - ,&TestFreedesktopDerivedInterfaceStubAdapter::fireTestAttributedFromDerivedInterfaceAttributeChanged - ,"u" - ); - -#ifdef WIN32 -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - uint32_t - > TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getTestPredefinedTypeAttributeAttributeStubDispatcher( - &TestFreedesktopDerivedInterfaceStub::getTestPredefinedTypeAttributeAttribute - , "u" - ); -CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - uint32_t - > TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::setTestPredefinedTypeAttributeAttributeStubDispatcher( - &TestFreedesktopDerivedInterfaceStub::getTestPredefinedTypeAttributeAttribute, - &TestFreedesktopDerivedInterfaceStubRemoteEvent::onRemoteSetTestPredefinedTypeAttributeAttribute, - &TestFreedesktopDerivedInterfaceStubRemoteEvent::onRemoteTestPredefinedTypeAttributeAttributeChanged - ,&TestFreedesktopDerivedInterfaceStubAdapter::fireTestPredefinedTypeAttributeAttributeChanged - ,"u" - ); -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - uint32_t - > TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getTestReadonlyAttributeAttributeStubDispatcher( - &TestFreedesktopDerivedInterfaceStub::getTestReadonlyAttributeAttribute - , "u" - ); -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getTestDerivedStructAttributeAttributeStubDispatcher( - &TestFreedesktopDerivedInterfaceStub::getTestDerivedStructAttributeAttribute - , "(sqi)" - ); -CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::setTestDerivedStructAttributeAttributeStubDispatcher( - &TestFreedesktopDerivedInterfaceStub::getTestDerivedStructAttributeAttribute, - &TestFreedesktopDerivedInterfaceStubRemoteEvent::onRemoteSetTestDerivedStructAttributeAttribute, - &TestFreedesktopDerivedInterfaceStubRemoteEvent::onRemoteTestDerivedStructAttributeAttributeChanged - ,&TestFreedesktopDerivedInterfaceStubAdapter::fireTestDerivedStructAttributeAttributeChanged - ,"(sqi)" - ); -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getTestDerivedArrayAttributeAttributeStubDispatcher( - &TestFreedesktopDerivedInterfaceStub::getTestDerivedArrayAttributeAttribute - , "at" - ); -CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::setTestDerivedArrayAttributeAttributeStubDispatcher( - &TestFreedesktopDerivedInterfaceStub::getTestDerivedArrayAttributeAttribute, - &TestFreedesktopDerivedInterfaceStubRemoteEvent::onRemoteSetTestDerivedArrayAttributeAttribute, - &TestFreedesktopDerivedInterfaceStubRemoteEvent::onRemoteTestDerivedArrayAttributeAttributeChanged - ,&TestFreedesktopDerivedInterfaceStubAdapter::fireTestDerivedArrayAttributeAttributeChanged - ,"at" - ); -#endif - - -#ifdef WIN32 -#endif - -void TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::fireTestAttributedFromDerivedInterfaceAttributeChanged(const uint32_t& value) { - CommonAPI::DBus::DBusStubSignalHelper> - ::sendSignal( - *this, - "onTestAttributedFromDerivedInterfaceAttributeChanged", - "u", - value - - ); -} - - -#ifdef WIN32 -#endif - -const TestFreedesktopDerivedInterfaceDBusStubAdapterHelper::StubDispatcherTable& TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getStubDispatcherTable() { - return stubDispatcherTable_; -} - -const CommonAPI::DBus::StubAttributeTable& TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getStubAttributeTable() { - return stubAttributeTable_; -} - -TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::TestFreedesktopDerivedInterfaceDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter(_address, _connection,false), - TestFreedesktopDerivedInterfaceDBusStubAdapterHelper(_address, _connection, std::dynamic_pointer_cast(_stub), false), - TestFreedesktopInterfaceDBusStubAdapterInternal(_address, _connection, _stub), - stubDispatcherTable_({ - { { "getTestAttributedFromDerivedInterfaceAttribute", "" }, &commonapi::tests::TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getTestAttributedFromDerivedInterfaceAttributeStubDispatcher } - , { { "setTestAttributedFromDerivedInterfaceAttribute", "u" }, &commonapi::tests::TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::setTestAttributedFromDerivedInterfaceAttributeStubDispatcher } - #ifdef WIN32 - , - { { "getTestPredefinedTypeAttributeAttribute", "" }, &commonapi::tests::TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getTestPredefinedTypeAttributeAttributeStubDispatcher } - , { { "setTestPredefinedTypeAttributeAttribute", "u" }, &commonapi::tests::TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::setTestPredefinedTypeAttributeAttributeStubDispatcher }, - { { "getTestReadonlyAttributeAttribute", "" }, &commonapi::tests::TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getTestReadonlyAttributeAttributeStubDispatcher }, - { { "getTestDerivedStructAttributeAttribute", "" }, &commonapi::tests::TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getTestDerivedStructAttributeAttributeStubDispatcher } - , { { "setTestDerivedStructAttributeAttribute", "(sqi)" }, &commonapi::tests::TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::setTestDerivedStructAttributeAttributeStubDispatcher }, - { { "getTestDerivedArrayAttributeAttribute", "" }, &commonapi::tests::TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getTestDerivedArrayAttributeAttributeStubDispatcher } - , { { "setTestDerivedArrayAttributeAttribute", "at" }, &commonapi::tests::TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::setTestDerivedArrayAttributeAttributeStubDispatcher } - #endif - }), - stubAttributeTable_() { - - #ifdef WIN32 - stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &commonapi::tests::TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getTestFreedesktopDerivedInterfaceInterfaceVersionStubDispatcher }); - #else - auto parentDispatcherTable = TestFreedesktopInterfaceDBusStubAdapterInternal::getStubDispatcherTable(); - stubDispatcherTable_.insert(parentDispatcherTable.begin(), parentDispatcherTable.end()); - - auto interfaceVersionGetter = stubDispatcherTable_.find({ "getInterfaceVersion", "" }); - if(interfaceVersionGetter != stubDispatcherTable_.end()) { - interfaceVersionGetter->second = &commonapi::tests::TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getTestFreedesktopDerivedInterfaceInterfaceVersionStubDispatcher; - } else { - stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &commonapi::tests::TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::getTestFreedesktopDerivedInterfaceInterfaceVersionStubDispatcher }); - } - - auto parentAttributeTable = TestFreedesktopInterfaceDBusStubAdapterInternal::getStubAttributeTable(); - stubAttributeTable_.insert(parentAttributeTable.begin(), parentAttributeTable.end()); - - #endif -} - -const bool TestFreedesktopDerivedInterfaceDBusStubAdapterInternal::hasFreedesktopProperties() { - return false; -} - -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusStubAdapter.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusStubAdapter.hpp deleted file mode 100644 index 7b940ef..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusStubAdapter.hpp +++ /dev/null @@ -1,166 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_Test_Freedesktop_Derived_Interface_DBUS_STUB_ADAPTER_HPP_ -#define COMMONAPI_TESTS_Test_Freedesktop_Derived_Interface_DBUS_STUB_ADAPTER_HPP_ - -#include -#include -#include "v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusDeployment.hpp" - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { - -typedef CommonAPI::DBus::DBusStubAdapterHelper TestFreedesktopDerivedInterfaceDBusStubAdapterHelper; - -class TestFreedesktopDerivedInterfaceDBusStubAdapterInternal - : public virtual TestFreedesktopDerivedInterfaceStubAdapter, - public TestFreedesktopDerivedInterfaceDBusStubAdapterHelper, - public TestFreedesktopInterfaceDBusStubAdapterInternal -{ -public: - TestFreedesktopDerivedInterfaceDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub); - - ~TestFreedesktopDerivedInterfaceDBusStubAdapterInternal(); - - virtual const bool hasFreedesktopProperties(); - - void fireTestAttributedFromDerivedInterfaceAttributeChanged(const uint32_t& value); - - - - const TestFreedesktopDerivedInterfaceDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable(); - const CommonAPI::DBus::StubAttributeTable& getStubAttributeTable(); - - void deactivateManagedInstances(); - - virtual const CommonAPI::Address &getAddress() const { - return DBusStubAdapter::getAddress(); - } - - virtual void init(std::shared_ptr instance) { - return TestFreedesktopDerivedInterfaceDBusStubAdapterHelper::init(instance); - } - - virtual void deinit() { - return TestFreedesktopDerivedInterfaceDBusStubAdapterHelper::deinit(); - } - - virtual bool onInterfaceDBusMessage(const CommonAPI::DBus::DBusMessage& dbusMessage) { - return TestFreedesktopDerivedInterfaceDBusStubAdapterHelper::onInterfaceDBusMessage(dbusMessage); - } - - virtual bool onInterfaceDBusFreedesktopPropertiesMessage(const CommonAPI::DBus::DBusMessage& dbusMessage) { - return TestFreedesktopDerivedInterfaceDBusStubAdapterHelper::onInterfaceDBusFreedesktopPropertiesMessage(dbusMessage); - } - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - CommonAPI::Version - > getTestFreedesktopDerivedInterfaceInterfaceVersionStubDispatcher; - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - uint32_t - > getTestAttributedFromDerivedInterfaceAttributeStubDispatcher; -static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - uint32_t - > setTestAttributedFromDerivedInterfaceAttributeStubDispatcher; - -#ifdef WIN32 -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - uint32_t - > getTestPredefinedTypeAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - uint32_t - > setTestPredefinedTypeAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - uint32_t - > getTestReadonlyAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > getTestDerivedStructAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > setTestDerivedStructAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > getTestDerivedArrayAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestFreedesktopDerivedInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > setTestDerivedArrayAttributeAttributeStubDispatcher; -#endif - - -#ifdef WIN32 -#endif - - -#ifdef WIN32 -#endif - - protected: - virtual const char* getMethodsDBusIntrospectionXmlData() const; - - private: - TestFreedesktopDerivedInterfaceDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; - CommonAPI::DBus::StubAttributeTable stubAttributeTable_; -}; - -class TestFreedesktopDerivedInterfaceDBusStubAdapter - : public TestFreedesktopDerivedInterfaceDBusStubAdapterInternal, - public std::enable_shared_from_this { -public: - TestFreedesktopDerivedInterfaceDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter( - _address, - _connection, - false), - TestFreedesktopDerivedInterfaceDBusStubAdapterInternal( - _address, - _connection, - _stub) { - } -}; - -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_Test_Freedesktop_Derived_Interface_DBUS_STUB_ADAPTER_HPP_ diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusDeployment.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusDeployment.cpp deleted file mode 100644 index f2f2a15..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusDeployment.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include "TestFreedesktopInterfaceDBusDeployment.hpp" - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace TestFreedesktopInterface_ { - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - -} // namespace TestFreedesktopInterface_ -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusDeployment.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusDeployment.hpp deleted file mode 100644 index c5df423..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusDeployment.hpp +++ /dev/null @@ -1,44 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ - -#ifndef COMMONAPI_DBUS_TESTFREEDESKTOPINTERFACE_DEPLOYMENT_HPP_ -#define COMMONAPI_DBUS_TESTFREEDESKTOPINTERFACE_DEPLOYMENT_HPP_ - - -#include - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif -#include -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace TestFreedesktopInterface_ { - -// Interface-specific deployment types - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - - -} // namespace TestFreedesktopInterface_ -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_DBUS_TESTFREEDESKTOPINTERFACE_DEPLOYMENT_HPP_ diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusProxy.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusProxy.cpp deleted file mode 100644 index 82a772c..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusProxy.cpp +++ /dev/null @@ -1,62 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { - -std::shared_ptr createTestFreedesktopInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) { - return std::make_shared(_address, _connection); -} - -INITIALIZER(registerTestFreedesktopInterfaceDBusProxy) { - CommonAPI::DBus::Factory::get()->registerProxyCreateMethod( - TestFreedesktopInterface::getInterface(), - &createTestFreedesktopInterfaceDBusProxy); -} - -TestFreedesktopInterfaceDBusProxy::TestFreedesktopInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) - : CommonAPI::DBus::DBusProxy(_address, _connection) -, testPredefinedTypeAttribute_(*this, "onTestPredefinedTypeAttributeAttributeChanged", "setTestPredefinedTypeAttributeAttribute", "u", "getTestPredefinedTypeAttributeAttribute", static_cast(nullptr)), - testReadonlyAttribute_(*this, "onTestReadonlyAttributeAttributeChanged", "u", "getTestReadonlyAttributeAttribute", static_cast(nullptr)), - testDerivedStructAttribute_(*this, "onTestDerivedStructAttributeAttributeChanged", "setTestDerivedStructAttributeAttribute", "(sqi)", "getTestDerivedStructAttributeAttribute", static_cast<::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t*>(nullptr)), - testDerivedArrayAttribute_(*this, "onTestDerivedArrayAttributeAttributeChanged", "setTestDerivedArrayAttributeAttribute", "at", "getTestDerivedArrayAttributeAttribute", static_cast<::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t*>(nullptr)) -{ -} - - TestFreedesktopInterfaceDBusProxy::TestPredefinedTypeAttributeAttribute& TestFreedesktopInterfaceDBusProxy::getTestPredefinedTypeAttributeAttribute() { - return testPredefinedTypeAttribute_; - } - TestFreedesktopInterfaceDBusProxy::TestReadonlyAttributeAttribute& TestFreedesktopInterfaceDBusProxy::getTestReadonlyAttributeAttribute() { - return testReadonlyAttribute_; - } - TestFreedesktopInterfaceDBusProxy::TestDerivedStructAttributeAttribute& TestFreedesktopInterfaceDBusProxy::getTestDerivedStructAttributeAttribute() { - return testDerivedStructAttribute_; - } - TestFreedesktopInterfaceDBusProxy::TestDerivedArrayAttributeAttribute& TestFreedesktopInterfaceDBusProxy::getTestDerivedArrayAttributeAttribute() { - return testDerivedArrayAttribute_; - } - - - - - void TestFreedesktopInterfaceDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const { - ownVersionMajor = 1; - ownVersionMinor = 0; - } - - } // namespace tests - } // namespace commonapi - } // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusProxy.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusProxy.hpp deleted file mode 100644 index d2a3aa2..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusProxy.hpp +++ /dev/null @@ -1,68 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_Test_Freedesktop_Interface_DBUS_PROXY_HPP_ -#define COMMONAPI_TESTS_Test_Freedesktop_Interface_DBUS_PROXY_HPP_ - -#include -#include - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { - -class TestFreedesktopInterfaceDBusProxy - : virtual public TestFreedesktopInterfaceProxyBase, - virtual public CommonAPI::DBus::DBusProxy { -public: - TestFreedesktopInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection); - - virtual ~TestFreedesktopInterfaceDBusProxy() { } - - virtual TestPredefinedTypeAttributeAttribute& getTestPredefinedTypeAttributeAttribute(); - virtual TestReadonlyAttributeAttribute& getTestReadonlyAttributeAttribute(); - virtual TestDerivedStructAttributeAttribute& getTestDerivedStructAttributeAttribute(); - virtual TestDerivedArrayAttributeAttribute& getTestDerivedArrayAttributeAttribute(); - - - - - virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const; - -private: - - CommonAPI::DBus::DBusObservableAttribute> testPredefinedTypeAttribute_; - CommonAPI::DBus::DBusObservableAttribute> testReadonlyAttribute_; - CommonAPI::DBus::DBusObservableAttribute> testDerivedStructAttribute_; - CommonAPI::DBus::DBusObservableAttribute> testDerivedArrayAttribute_; - - -}; - -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_Test_Freedesktop_Interface_DBUS_PROXY_HPP_ - diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusStubAdapter.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusStubAdapter.cpp deleted file mode 100644 index 11b53d4..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusStubAdapter.cpp +++ /dev/null @@ -1,248 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { - -std::shared_ptr createTestFreedesktopInterfaceDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) { - return std::make_shared(_address, _connection, _stub); -} - -INITIALIZER(registerTestFreedesktopInterfaceDBusStubAdapter) { - CommonAPI::DBus::Factory::get()->registerStubAdapterCreateMethod( - TestFreedesktopInterface::getInterface(), &createTestFreedesktopInterfaceDBusStubAdapter); -} - -TestFreedesktopInterfaceDBusStubAdapterInternal::~TestFreedesktopInterfaceDBusStubAdapterInternal() { - deactivateManagedInstances(); - TestFreedesktopInterfaceDBusStubAdapterHelper::deinit(); -} - -void TestFreedesktopInterfaceDBusStubAdapterInternal::deactivateManagedInstances() { - -} - -const char* TestFreedesktopInterfaceDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData() const { - static const std::string introspectionData = - "\n" - "" - "\n" - "\n" - "" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "" - "\n" - "\n" - "\n" - "\n" - "\n" - "" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - - ; - return introspectionData.c_str(); -} - -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - CommonAPI::Version - > TestFreedesktopInterfaceDBusStubAdapterInternal::getTestFreedesktopInterfaceInterfaceVersionStubDispatcher(&TestFreedesktopInterfaceStub::getInterfaceVersion, "uu"); - -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - uint32_t - > TestFreedesktopInterfaceDBusStubAdapterInternal::getTestPredefinedTypeAttributeAttributeStubDispatcher( - &TestFreedesktopInterfaceStub::getTestPredefinedTypeAttributeAttribute - , "u" - ); -CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - uint32_t - > TestFreedesktopInterfaceDBusStubAdapterInternal::setTestPredefinedTypeAttributeAttributeStubDispatcher( - &TestFreedesktopInterfaceStub::getTestPredefinedTypeAttributeAttribute, - &TestFreedesktopInterfaceStubRemoteEvent::onRemoteSetTestPredefinedTypeAttributeAttribute, - &TestFreedesktopInterfaceStubRemoteEvent::onRemoteTestPredefinedTypeAttributeAttributeChanged - ,&TestFreedesktopInterfaceStubAdapter::fireTestPredefinedTypeAttributeAttributeChanged - ,"u" - ); -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - uint32_t - > TestFreedesktopInterfaceDBusStubAdapterInternal::getTestReadonlyAttributeAttributeStubDispatcher( - &TestFreedesktopInterfaceStub::getTestReadonlyAttributeAttribute - , "u" - ); -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > TestFreedesktopInterfaceDBusStubAdapterInternal::getTestDerivedStructAttributeAttributeStubDispatcher( - &TestFreedesktopInterfaceStub::getTestDerivedStructAttributeAttribute - , "(sqi)" - ); -CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > TestFreedesktopInterfaceDBusStubAdapterInternal::setTestDerivedStructAttributeAttributeStubDispatcher( - &TestFreedesktopInterfaceStub::getTestDerivedStructAttributeAttribute, - &TestFreedesktopInterfaceStubRemoteEvent::onRemoteSetTestDerivedStructAttributeAttribute, - &TestFreedesktopInterfaceStubRemoteEvent::onRemoteTestDerivedStructAttributeAttributeChanged - ,&TestFreedesktopInterfaceStubAdapter::fireTestDerivedStructAttributeAttributeChanged - ,"(sqi)" - ); -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > TestFreedesktopInterfaceDBusStubAdapterInternal::getTestDerivedArrayAttributeAttributeStubDispatcher( - &TestFreedesktopInterfaceStub::getTestDerivedArrayAttributeAttribute - , "at" - ); -CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > TestFreedesktopInterfaceDBusStubAdapterInternal::setTestDerivedArrayAttributeAttributeStubDispatcher( - &TestFreedesktopInterfaceStub::getTestDerivedArrayAttributeAttribute, - &TestFreedesktopInterfaceStubRemoteEvent::onRemoteSetTestDerivedArrayAttributeAttribute, - &TestFreedesktopInterfaceStubRemoteEvent::onRemoteTestDerivedArrayAttributeAttributeChanged - ,&TestFreedesktopInterfaceStubAdapter::fireTestDerivedArrayAttributeAttributeChanged - ,"at" - ); - - - - -void TestFreedesktopInterfaceDBusStubAdapterInternal::fireTestPredefinedTypeAttributeAttributeChanged(const uint32_t& value) { - CommonAPI::DBus::DBusStubSignalHelper> - ::sendSignal( - *this, - "onTestPredefinedTypeAttributeAttributeChanged", - "u", - value - - ); -} -void TestFreedesktopInterfaceDBusStubAdapterInternal::fireTestReadonlyAttributeAttributeChanged(const uint32_t& value) { - CommonAPI::DBus::DBusStubSignalHelper> - ::sendSignal( - *this, - "onTestReadonlyAttributeAttributeChanged", - "u", - value - - ); -} -void TestFreedesktopInterfaceDBusStubAdapterInternal::fireTestDerivedStructAttributeAttributeChanged(const ::commonapi::tests::DerivedTypeCollection::TestStructExtended& value) { - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestStructExtended, ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t> deployedValue(value, static_cast<::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t*>(nullptr)); - CommonAPI::DBus::DBusStubSignalHelper - >> - ::sendSignal( - *this, - "onTestDerivedStructAttributeAttributeChanged", - "(sqi)", - deployedValue - - ); -} -void TestFreedesktopInterfaceDBusStubAdapterInternal::fireTestDerivedArrayAttributeAttributeChanged(const ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64& value) { - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t> deployedValue(value, static_cast<::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t*>(nullptr)); - CommonAPI::DBus::DBusStubSignalHelper - >> - ::sendSignal( - *this, - "onTestDerivedArrayAttributeAttributeChanged", - "at", - deployedValue - - ); -} - - - -const TestFreedesktopInterfaceDBusStubAdapterHelper::StubDispatcherTable& TestFreedesktopInterfaceDBusStubAdapterInternal::getStubDispatcherTable() { - return stubDispatcherTable_; -} - -const CommonAPI::DBus::StubAttributeTable& TestFreedesktopInterfaceDBusStubAdapterInternal::getStubAttributeTable() { - return stubAttributeTable_; -} - -TestFreedesktopInterfaceDBusStubAdapterInternal::TestFreedesktopInterfaceDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter(_address, _connection,false), - TestFreedesktopInterfaceDBusStubAdapterHelper(_address, _connection, std::dynamic_pointer_cast(_stub), false), - stubDispatcherTable_({ - { { "getTestPredefinedTypeAttributeAttribute", "" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::getTestPredefinedTypeAttributeAttributeStubDispatcher } - , { { "setTestPredefinedTypeAttributeAttribute", "u" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::setTestPredefinedTypeAttributeAttributeStubDispatcher }, - { { "getTestReadonlyAttributeAttribute", "" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::getTestReadonlyAttributeAttributeStubDispatcher }, - { { "getTestDerivedStructAttributeAttribute", "" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::getTestDerivedStructAttributeAttributeStubDispatcher } - , { { "setTestDerivedStructAttributeAttribute", "(sqi)" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::setTestDerivedStructAttributeAttributeStubDispatcher }, - { { "getTestDerivedArrayAttributeAttribute", "" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::getTestDerivedArrayAttributeAttributeStubDispatcher } - , { { "setTestDerivedArrayAttributeAttribute", "at" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::setTestDerivedArrayAttributeAttributeStubDispatcher } - }), - stubAttributeTable_() { - - stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::getTestFreedesktopInterfaceInterfaceVersionStubDispatcher }); -} - -const bool TestFreedesktopInterfaceDBusStubAdapterInternal::hasFreedesktopProperties() { - return false; -} - -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusStubAdapter.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusStubAdapter.hpp deleted file mode 100644 index 0705da8..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusStubAdapter.hpp +++ /dev/null @@ -1,134 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_Test_Freedesktop_Interface_DBUS_STUB_ADAPTER_HPP_ -#define COMMONAPI_TESTS_Test_Freedesktop_Interface_DBUS_STUB_ADAPTER_HPP_ - -#include -#include "v1_0/commonapi/tests/TestFreedesktopInterfaceDBusDeployment.hpp" - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { - -typedef CommonAPI::DBus::DBusStubAdapterHelper TestFreedesktopInterfaceDBusStubAdapterHelper; - -class TestFreedesktopInterfaceDBusStubAdapterInternal - : public virtual TestFreedesktopInterfaceStubAdapter, - public TestFreedesktopInterfaceDBusStubAdapterHelper -{ -public: - TestFreedesktopInterfaceDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub); - - ~TestFreedesktopInterfaceDBusStubAdapterInternal(); - - virtual const bool hasFreedesktopProperties(); - - void fireTestPredefinedTypeAttributeAttributeChanged(const uint32_t& value); - void fireTestReadonlyAttributeAttributeChanged(const uint32_t& value); - void fireTestDerivedStructAttributeAttributeChanged(const ::commonapi::tests::DerivedTypeCollection::TestStructExtended& value); - void fireTestDerivedArrayAttributeAttributeChanged(const ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64& value); - - - - const TestFreedesktopInterfaceDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable(); - const CommonAPI::DBus::StubAttributeTable& getStubAttributeTable(); - - void deactivateManagedInstances(); - - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - CommonAPI::Version - > getTestFreedesktopInterfaceInterfaceVersionStubDispatcher; - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - uint32_t - > getTestPredefinedTypeAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - uint32_t - > setTestPredefinedTypeAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - uint32_t - > getTestReadonlyAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > getTestDerivedStructAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > setTestDerivedStructAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > getTestDerivedArrayAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestFreedesktopInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > setTestDerivedArrayAttributeAttributeStubDispatcher; - - - - - - - protected: - virtual const char* getMethodsDBusIntrospectionXmlData() const; - - private: - TestFreedesktopInterfaceDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; - CommonAPI::DBus::StubAttributeTable stubAttributeTable_; -}; - -class TestFreedesktopInterfaceDBusStubAdapter - : public TestFreedesktopInterfaceDBusStubAdapterInternal, - public std::enable_shared_from_this { -public: - TestFreedesktopInterfaceDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter( - _address, - _connection, - false), - TestFreedesktopInterfaceDBusStubAdapterInternal( - _address, - _connection, - _stub) { - } -}; - -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_Test_Freedesktop_Interface_DBUS_STUB_ADAPTER_HPP_ diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusDeployment.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusDeployment.cpp deleted file mode 100644 index e9d2049..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusDeployment.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include "TestInterfaceDBusDeployment.hpp" - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace TestInterface_ { - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - -} // namespace TestInterface_ -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusDeployment.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusDeployment.hpp deleted file mode 100644 index a857619..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusDeployment.hpp +++ /dev/null @@ -1,44 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ - -#ifndef COMMONAPI_DBUS_TESTINTERFACE_DEPLOYMENT_HPP_ -#define COMMONAPI_DBUS_TESTINTERFACE_DEPLOYMENT_HPP_ - - -#include - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif -#include -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace TestInterface_ { - -// Interface-specific deployment types - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - - -} // namespace TestInterface_ -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_DBUS_TESTINTERFACE_DEPLOYMENT_HPP_ diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusProxy.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusProxy.cpp deleted file mode 100644 index 94240f6..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusProxy.cpp +++ /dev/null @@ -1,417 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { - -std::shared_ptr createTestInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) { - return std::make_shared(_address, _connection); -} - -INITIALIZER(registerTestInterfaceDBusProxy) { - CommonAPI::DBus::Factory::get()->registerProxyCreateMethod( - TestInterface::getInterface(), - &createTestInterfaceDBusProxy); -} - -TestInterfaceDBusProxy::TestInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) - : CommonAPI::DBus::DBusProxy(_address, _connection) -, testPredefinedTypeAttribute_(*this, "onTestPredefinedTypeAttributeAttributeChanged", "setTestPredefinedTypeAttributeAttribute", "u", "getTestPredefinedTypeAttributeAttribute", static_cast(nullptr)), - testDerivedStructAttribute_(*this, "onTestDerivedStructAttributeAttributeChanged", "setTestDerivedStructAttributeAttribute", "(sqi)", "getTestDerivedStructAttributeAttribute", static_cast<::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t*>(nullptr)), - testDerivedArrayAttribute_(*this, "onTestDerivedArrayAttributeAttributeChanged", "setTestDerivedArrayAttributeAttribute", "at", "getTestDerivedArrayAttributeAttribute", static_cast<::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t*>(nullptr)) -, testPredefinedTypeBroadcast_(*this, "TestPredefinedTypeBroadcast", "us", std::make_tuple(static_cast(nullptr), static_cast(nullptr))), - testSelectiveBroadcastSelective_(*this, "TestSelectiveBroadcast", "", std::make_tuple()), - testBroadcastWithOutArgsSelective_(*this, "TestBroadcastWithOutArgs", "us", std::make_tuple(static_cast(nullptr), static_cast(nullptr))) -{ -} - - TestInterfaceDBusProxy::TestPredefinedTypeAttributeAttribute& TestInterfaceDBusProxy::getTestPredefinedTypeAttributeAttribute() { - return testPredefinedTypeAttribute_; - } - TestInterfaceDBusProxy::TestDerivedStructAttributeAttribute& TestInterfaceDBusProxy::getTestDerivedStructAttributeAttribute() { - return testDerivedStructAttribute_; - } - TestInterfaceDBusProxy::TestDerivedArrayAttributeAttribute& TestInterfaceDBusProxy::getTestDerivedArrayAttributeAttribute() { - return testDerivedArrayAttribute_; - } - - TestInterfaceDBusProxy::TestPredefinedTypeBroadcastEvent& TestInterfaceDBusProxy::getTestPredefinedTypeBroadcastEvent() { - return testPredefinedTypeBroadcast_; - } - TestInterfaceDBusProxy::TestSelectiveBroadcastSelectiveEvent& TestInterfaceDBusProxy::getTestSelectiveBroadcastSelectiveEvent() { - return testSelectiveBroadcastSelective_; - } - TestInterfaceDBusProxy::TestBroadcastWithOutArgsSelectiveEvent& TestInterfaceDBusProxy::getTestBroadcastWithOutArgsSelectiveEvent() { - return testBroadcastWithOutArgsSelective_; - } - - void TestInterfaceDBusProxy::testEmptyMethod(CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info) { - CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodWithReply( - *this, - "testEmptyMethod", - "", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - _internalCallStatus); - } - std::future TestInterfaceDBusProxy::testEmptyMethodAsync(TestEmptyMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info) { - return CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodAsync( - *this, - "testEmptyMethod", - "", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - [_callback] (CommonAPI::CallStatus _status) { - _callback(_status); - }, - std::make_tuple()); - } - void TestInterfaceDBusProxy::testVoidPredefinedTypeMethod(const uint32_t &_uint32Value, const std::string &_stringValue, CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable deploy_uint32Value(_uint32Value, static_cast(nullptr)); - CommonAPI::Deployable deploy_stringValue(_stringValue, static_cast(nullptr)); - CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodWithReply( - *this, - "testVoidPredefinedTypeMethod", - "us", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_uint32Value, deploy_stringValue, - _internalCallStatus); - } - std::future TestInterfaceDBusProxy::testVoidPredefinedTypeMethodAsync(const uint32_t &_uint32Value, const std::string &_stringValue, TestVoidPredefinedTypeMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable deploy_uint32Value(_uint32Value, static_cast(nullptr)); - CommonAPI::Deployable deploy_stringValue(_stringValue, static_cast(nullptr)); - return CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodAsync( - *this, - "testVoidPredefinedTypeMethod", - "us", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_uint32Value, deploy_stringValue, - [_callback] (CommonAPI::CallStatus _status) { - _callback(_status); - }, - std::make_tuple()); - } - void TestInterfaceDBusProxy::testPredefinedTypeMethod(const uint32_t &_uint32InValue, const std::string &_stringInValue, CommonAPI::CallStatus &_internalCallStatus, uint32_t &_uint32OutValue, std::string &_stringOutValue, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable deploy_uint32InValue(_uint32InValue, static_cast(nullptr)); - CommonAPI::Deployable deploy_stringInValue(_stringInValue, static_cast(nullptr)); - CommonAPI::Deployable deploy_uint32OutValue(static_cast(nullptr)); - CommonAPI::Deployable deploy_stringOutValue(static_cast(nullptr)); - CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable - >, - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable - > - >::callMethodWithReply( - *this, - "testPredefinedTypeMethod", - "us", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_uint32InValue, deploy_stringInValue, - _internalCallStatus, - deploy_uint32OutValue, deploy_stringOutValue); - _uint32OutValue = deploy_uint32OutValue.getValue(); - _stringOutValue = deploy_stringOutValue.getValue(); - } - std::future TestInterfaceDBusProxy::testPredefinedTypeMethodAsync(const uint32_t &_uint32InValue, const std::string &_stringInValue, TestPredefinedTypeMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable deploy_uint32InValue(_uint32InValue, static_cast(nullptr)); - CommonAPI::Deployable deploy_stringInValue(_stringInValue, static_cast(nullptr)); - CommonAPI::Deployable deploy_uint32OutValue(static_cast(nullptr)); - CommonAPI::Deployable deploy_stringOutValue(static_cast(nullptr)); - return CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable - >, - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable - > - >::callMethodAsync( - *this, - "testPredefinedTypeMethod", - "us", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_uint32InValue, deploy_stringInValue, - [_callback] (CommonAPI::CallStatus _status, CommonAPI::Deployable _uint32OutValue, CommonAPI::Deployable _stringOutValue) { - _callback(_status, _uint32OutValue.getValue(), _stringOutValue.getValue()); - }, - std::make_tuple(deploy_uint32OutValue, deploy_stringOutValue)); - } - void TestInterfaceDBusProxy::testVoidDerivedTypeMethod(const ::commonapi::tests::DerivedTypeCollection::TestEnumExtended2 &_testEnumExtended2Value, const ::commonapi::tests::DerivedTypeCollection::TestMap &_testMapValue, CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, CommonAPI::EmptyDeployment> deploy_testEnumExtended2Value(_testEnumExtended2Value, static_cast(nullptr)); - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestMap, ::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t> deploy_testMapValue(_testMapValue, static_cast<::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t*>(nullptr)); - CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, CommonAPI::EmptyDeployment >, - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestMap, ::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t > - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodWithReply( - *this, - "testVoidDerivedTypeMethod", - "ia{ua(sq)}", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_testEnumExtended2Value, deploy_testMapValue, - _internalCallStatus); - } - std::future TestInterfaceDBusProxy::testVoidDerivedTypeMethodAsync(const ::commonapi::tests::DerivedTypeCollection::TestEnumExtended2 &_testEnumExtended2Value, const ::commonapi::tests::DerivedTypeCollection::TestMap &_testMapValue, TestVoidDerivedTypeMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, CommonAPI::EmptyDeployment> deploy_testEnumExtended2Value(_testEnumExtended2Value, static_cast(nullptr)); - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestMap, ::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t> deploy_testMapValue(_testMapValue, static_cast<::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t*>(nullptr)); - return CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, CommonAPI::EmptyDeployment >, - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestMap, ::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t > - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodAsync( - *this, - "testVoidDerivedTypeMethod", - "ia{ua(sq)}", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_testEnumExtended2Value, deploy_testMapValue, - [_callback] (CommonAPI::CallStatus _status) { - _callback(_status); - }, - std::make_tuple()); - } - void TestInterfaceDBusProxy::testDerivedTypeMethod(const ::commonapi::tests::DerivedTypeCollection::TestEnumExtended2 &_testEnumExtended2InValue, const ::commonapi::tests::DerivedTypeCollection::TestMap &_testMapInValue, CommonAPI::CallStatus &_internalCallStatus, ::commonapi::tests::DerivedTypeCollection::TestEnumExtended2 &_testEnumExtended2OutValue, ::commonapi::tests::DerivedTypeCollection::TestMap &_testMapOutValue, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, CommonAPI::EmptyDeployment> deploy_testEnumExtended2InValue(_testEnumExtended2InValue, static_cast(nullptr)); - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestMap, ::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t> deploy_testMapInValue(_testMapInValue, static_cast<::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t*>(nullptr)); - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, CommonAPI::EmptyDeployment> deploy_testEnumExtended2OutValue(static_cast(nullptr)); - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestMap, ::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t> deploy_testMapOutValue(static_cast<::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t*>(nullptr)); - CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, CommonAPI::EmptyDeployment >, - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestMap, ::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t > - >, - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2,CommonAPI::EmptyDeployment>, - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestMap,::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t> - > - >::callMethodWithReply( - *this, - "testDerivedTypeMethod", - "ia{ua(sq)}", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_testEnumExtended2InValue, deploy_testMapInValue, - _internalCallStatus, - deploy_testEnumExtended2OutValue, deploy_testMapOutValue); - _testEnumExtended2OutValue = deploy_testEnumExtended2OutValue.getValue(); - _testMapOutValue = deploy_testMapOutValue.getValue(); - } - std::future TestInterfaceDBusProxy::testDerivedTypeMethodAsync(const ::commonapi::tests::DerivedTypeCollection::TestEnumExtended2 &_testEnumExtended2InValue, const ::commonapi::tests::DerivedTypeCollection::TestMap &_testMapInValue, TestDerivedTypeMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, CommonAPI::EmptyDeployment> deploy_testEnumExtended2InValue(_testEnumExtended2InValue, static_cast(nullptr)); - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestMap, ::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t> deploy_testMapInValue(_testMapInValue, static_cast<::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t*>(nullptr)); - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, CommonAPI::EmptyDeployment> deploy_testEnumExtended2OutValue(static_cast(nullptr)); - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestMap, ::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t> deploy_testMapOutValue(static_cast<::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t*>(nullptr)); - return CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, CommonAPI::EmptyDeployment >, - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestMap, ::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t > - >, - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2,CommonAPI::EmptyDeployment>, - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestMap,::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t> - > - >::callMethodAsync( - *this, - "testDerivedTypeMethod", - "ia{ua(sq)}", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_testEnumExtended2InValue, deploy_testMapInValue, - [_callback] (CommonAPI::CallStatus _status, CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, CommonAPI::EmptyDeployment> _testEnumExtended2OutValue, CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestMap, ::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t> _testMapOutValue) { - _callback(_status, _testEnumExtended2OutValue.getValue(), _testMapOutValue.getValue()); - }, - std::make_tuple(deploy_testEnumExtended2OutValue, deploy_testMapOutValue)); - } - void TestInterfaceDBusProxy::TestArrayOfPolymorphicStructMethod(const std::vector> &_inArray, CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable>, CommonAPI::DBus::ArrayDeployment<::commonapi::tests::DerivedTypeCollection_::TestPolymorphicStructDeployment_t>> deploy_inArray(_inArray, static_cast*>(nullptr)); - CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable>, CommonAPI::DBus::ArrayDeployment<::commonapi::tests::DerivedTypeCollection_::TestPolymorphicStructDeployment_t> > - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodWithReply( - *this, - "TestArrayOfPolymorphicStructMethod", - "a(uv)", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inArray, - _internalCallStatus); - } - std::future TestInterfaceDBusProxy::TestArrayOfPolymorphicStructMethodAsync(const std::vector> &_inArray, TestArrayOfPolymorphicStructMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable>, CommonAPI::DBus::ArrayDeployment<::commonapi::tests::DerivedTypeCollection_::TestPolymorphicStructDeployment_t>> deploy_inArray(_inArray, static_cast*>(nullptr)); - return CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable>, CommonAPI::DBus::ArrayDeployment<::commonapi::tests::DerivedTypeCollection_::TestPolymorphicStructDeployment_t> > - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodAsync( - *this, - "TestArrayOfPolymorphicStructMethod", - "a(uv)", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inArray, - [_callback] (CommonAPI::CallStatus _status) { - _callback(_status); - }, - std::make_tuple()); - } - void TestInterfaceDBusProxy::TestMapOfPolymorphicStructMethod(const ::commonapi::tests::DerivedTypeCollection::MapIntToPolymorphic &_inMap, CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::MapIntToPolymorphic, ::commonapi::tests::DerivedTypeCollection_::MapIntToPolymorphicDeployment_t> deploy_inMap(_inMap, static_cast<::commonapi::tests::DerivedTypeCollection_::MapIntToPolymorphicDeployment_t*>(nullptr)); - CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::MapIntToPolymorphic, ::commonapi::tests::DerivedTypeCollection_::MapIntToPolymorphicDeployment_t > - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodWithReply( - *this, - "TestMapOfPolymorphicStructMethod", - "a{y(uv)}", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inMap, - _internalCallStatus); - } - std::future TestInterfaceDBusProxy::TestMapOfPolymorphicStructMethodAsync(const ::commonapi::tests::DerivedTypeCollection::MapIntToPolymorphic &_inMap, TestMapOfPolymorphicStructMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::MapIntToPolymorphic, ::commonapi::tests::DerivedTypeCollection_::MapIntToPolymorphicDeployment_t> deploy_inMap(_inMap, static_cast<::commonapi::tests::DerivedTypeCollection_::MapIntToPolymorphicDeployment_t*>(nullptr)); - return CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::MapIntToPolymorphic, ::commonapi::tests::DerivedTypeCollection_::MapIntToPolymorphicDeployment_t > - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodAsync( - *this, - "TestMapOfPolymorphicStructMethod", - "a{y(uv)}", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inMap, - [_callback] (CommonAPI::CallStatus _status) { - _callback(_status); - }, - std::make_tuple()); - } - void TestInterfaceDBusProxy::TestStructWithPolymorphicMemberMethod(const ::commonapi::tests::DerivedTypeCollection::StructWithPolymorphicMember &_inStruct, CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::StructWithPolymorphicMember, ::commonapi::tests::DerivedTypeCollection_::StructWithPolymorphicMemberDeployment_t> deploy_inStruct(_inStruct, static_cast<::commonapi::tests::DerivedTypeCollection_::StructWithPolymorphicMemberDeployment_t*>(nullptr)); - CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::StructWithPolymorphicMember, ::commonapi::tests::DerivedTypeCollection_::StructWithPolymorphicMemberDeployment_t > - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodWithReply( - *this, - "TestStructWithPolymorphicMemberMethod", - "(u(uv))", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inStruct, - _internalCallStatus); - } - std::future TestInterfaceDBusProxy::TestStructWithPolymorphicMemberMethodAsync(const ::commonapi::tests::DerivedTypeCollection::StructWithPolymorphicMember &_inStruct, TestStructWithPolymorphicMemberMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::StructWithPolymorphicMember, ::commonapi::tests::DerivedTypeCollection_::StructWithPolymorphicMemberDeployment_t> deploy_inStruct(_inStruct, static_cast<::commonapi::tests::DerivedTypeCollection_::StructWithPolymorphicMemberDeployment_t*>(nullptr)); - return CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::StructWithPolymorphicMember, ::commonapi::tests::DerivedTypeCollection_::StructWithPolymorphicMemberDeployment_t > - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodAsync( - *this, - "TestStructWithPolymorphicMemberMethod", - "(u(uv))", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inStruct, - [_callback] (CommonAPI::CallStatus _status) { - _callback(_status); - }, - std::make_tuple()); - } - void TestInterfaceDBusProxy::TestStructWithEnumKeyMapMember(const ::commonapi::tests::DerivedTypeCollection::StructWithEnumKeyMap &_inStruct, CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::StructWithEnumKeyMap, ::commonapi::tests::DerivedTypeCollection_::StructWithEnumKeyMapDeployment_t> deploy_inStruct(_inStruct, static_cast<::commonapi::tests::DerivedTypeCollection_::StructWithEnumKeyMapDeployment_t*>(nullptr)); - CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::StructWithEnumKeyMap, ::commonapi::tests::DerivedTypeCollection_::StructWithEnumKeyMapDeployment_t > - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodWithReply( - *this, - "TestStructWithEnumKeyMapMember", - "(a{is})", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inStruct, - _internalCallStatus); - } - std::future TestInterfaceDBusProxy::TestStructWithEnumKeyMapMemberAsync(const ::commonapi::tests::DerivedTypeCollection::StructWithEnumKeyMap &_inStruct, TestStructWithEnumKeyMapMemberAsyncCallback _callback, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::StructWithEnumKeyMap, ::commonapi::tests::DerivedTypeCollection_::StructWithEnumKeyMapDeployment_t> deploy_inStruct(_inStruct, static_cast<::commonapi::tests::DerivedTypeCollection_::StructWithEnumKeyMapDeployment_t*>(nullptr)); - return CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::StructWithEnumKeyMap, ::commonapi::tests::DerivedTypeCollection_::StructWithEnumKeyMapDeployment_t > - >, - CommonAPI::DBus::DBusSerializableArguments< - > - >::callMethodAsync( - *this, - "TestStructWithEnumKeyMapMember", - "(a{is})", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inStruct, - [_callback] (CommonAPI::CallStatus _status) { - _callback(_status); - }, - std::make_tuple()); - } - - - void TestInterfaceDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const { - ownVersionMajor = 1; - ownVersionMinor = 0; - } - - } // namespace tests - } // namespace commonapi - } // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusProxy.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusProxy.hpp deleted file mode 100644 index 7ac21db..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusProxy.hpp +++ /dev/null @@ -1,93 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_Test_Interface_DBUS_PROXY_HPP_ -#define COMMONAPI_TESTS_Test_Interface_DBUS_PROXY_HPP_ - -#include -#include - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include -#include -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { - -class TestInterfaceDBusProxy - : virtual public TestInterfaceProxyBase, - virtual public CommonAPI::DBus::DBusProxy { -public: - TestInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection); - - virtual ~TestInterfaceDBusProxy() { } - - virtual TestPredefinedTypeAttributeAttribute& getTestPredefinedTypeAttributeAttribute(); - virtual TestDerivedStructAttributeAttribute& getTestDerivedStructAttributeAttribute(); - virtual TestDerivedArrayAttributeAttribute& getTestDerivedArrayAttributeAttribute(); - - virtual TestPredefinedTypeBroadcastEvent& getTestPredefinedTypeBroadcastEvent(); - virtual TestSelectiveBroadcastSelectiveEvent& getTestSelectiveBroadcastSelectiveEvent(); - virtual TestBroadcastWithOutArgsSelectiveEvent& getTestBroadcastWithOutArgsSelectiveEvent(); - - virtual void testEmptyMethod(CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info); - virtual std::future testEmptyMethodAsync(TestEmptyMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info); - virtual void testVoidPredefinedTypeMethod(const uint32_t &_uint32Value, const std::string &_stringValue, CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info); - virtual std::future testVoidPredefinedTypeMethodAsync(const uint32_t &_uint32Value, const std::string &_stringValue, TestVoidPredefinedTypeMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info); - virtual void testPredefinedTypeMethod(const uint32_t &_uint32InValue, const std::string &_stringInValue, CommonAPI::CallStatus &_internalCallStatus, uint32_t &_uint32OutValue, std::string &_stringOutValue, const CommonAPI::CallInfo *_info); - virtual std::future testPredefinedTypeMethodAsync(const uint32_t &_uint32InValue, const std::string &_stringInValue, TestPredefinedTypeMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info); - virtual void testVoidDerivedTypeMethod(const ::commonapi::tests::DerivedTypeCollection::TestEnumExtended2 &_testEnumExtended2Value, const ::commonapi::tests::DerivedTypeCollection::TestMap &_testMapValue, CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info); - virtual std::future testVoidDerivedTypeMethodAsync(const ::commonapi::tests::DerivedTypeCollection::TestEnumExtended2 &_testEnumExtended2Value, const ::commonapi::tests::DerivedTypeCollection::TestMap &_testMapValue, TestVoidDerivedTypeMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info); - virtual void testDerivedTypeMethod(const ::commonapi::tests::DerivedTypeCollection::TestEnumExtended2 &_testEnumExtended2InValue, const ::commonapi::tests::DerivedTypeCollection::TestMap &_testMapInValue, CommonAPI::CallStatus &_internalCallStatus, ::commonapi::tests::DerivedTypeCollection::TestEnumExtended2 &_testEnumExtended2OutValue, ::commonapi::tests::DerivedTypeCollection::TestMap &_testMapOutValue, const CommonAPI::CallInfo *_info); - virtual std::future testDerivedTypeMethodAsync(const ::commonapi::tests::DerivedTypeCollection::TestEnumExtended2 &_testEnumExtended2InValue, const ::commonapi::tests::DerivedTypeCollection::TestMap &_testMapInValue, TestDerivedTypeMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info); - virtual void TestArrayOfPolymorphicStructMethod(const std::vector> &_inArray, CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info); - virtual std::future TestArrayOfPolymorphicStructMethodAsync(const std::vector> &_inArray, TestArrayOfPolymorphicStructMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info); - virtual void TestMapOfPolymorphicStructMethod(const ::commonapi::tests::DerivedTypeCollection::MapIntToPolymorphic &_inMap, CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info); - virtual std::future TestMapOfPolymorphicStructMethodAsync(const ::commonapi::tests::DerivedTypeCollection::MapIntToPolymorphic &_inMap, TestMapOfPolymorphicStructMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info); - virtual void TestStructWithPolymorphicMemberMethod(const ::commonapi::tests::DerivedTypeCollection::StructWithPolymorphicMember &_inStruct, CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info); - virtual std::future TestStructWithPolymorphicMemberMethodAsync(const ::commonapi::tests::DerivedTypeCollection::StructWithPolymorphicMember &_inStruct, TestStructWithPolymorphicMemberMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info); - virtual void TestStructWithEnumKeyMapMember(const ::commonapi::tests::DerivedTypeCollection::StructWithEnumKeyMap &_inStruct, CommonAPI::CallStatus &_internalCallStatus, const CommonAPI::CallInfo *_info); - virtual std::future TestStructWithEnumKeyMapMemberAsync(const ::commonapi::tests::DerivedTypeCollection::StructWithEnumKeyMap &_inStruct, TestStructWithEnumKeyMapMemberAsyncCallback _callback, const CommonAPI::CallInfo *_info); - - - virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const; - -private: - - CommonAPI::DBus::DBusObservableAttribute> testPredefinedTypeAttribute_; - CommonAPI::DBus::DBusObservableAttribute> testDerivedStructAttribute_; - CommonAPI::DBus::DBusObservableAttribute> testDerivedArrayAttribute_; - - CommonAPI::DBus::DBusEvent, CommonAPI::Deployable> testPredefinedTypeBroadcast_; - CommonAPI::DBus::DBusSelectiveEvent testSelectiveBroadcastSelective_; - CommonAPI::DBus::DBusSelectiveEvent, CommonAPI::Deployable> testBroadcastWithOutArgsSelective_; - -}; - -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_Test_Interface_DBUS_PROXY_HPP_ - diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusStubAdapter.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusStubAdapter.cpp deleted file mode 100644 index 52eed4e..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusStubAdapter.cpp +++ /dev/null @@ -1,531 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { - -std::shared_ptr createTestInterfaceDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) { - return std::make_shared(_address, _connection, _stub); -} - -INITIALIZER(registerTestInterfaceDBusStubAdapter) { - CommonAPI::DBus::Factory::get()->registerStubAdapterCreateMethod( - TestInterface::getInterface(), &createTestInterfaceDBusStubAdapter); -} - -TestInterfaceDBusStubAdapterInternal::~TestInterfaceDBusStubAdapterInternal() { - deactivateManagedInstances(); - TestInterfaceDBusStubAdapterHelper::deinit(); -} - -void TestInterfaceDBusStubAdapterInternal::deactivateManagedInstances() { - -} - -const char* TestInterfaceDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData() const { - static const std::string introspectionData = - "\n" - "" - "\n" - "\n" - "" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - - ; - return introspectionData.c_str(); -} - -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestInterfaceStub, - CommonAPI::Version - > TestInterfaceDBusStubAdapterInternal::getTestInterfaceInterfaceVersionStubDispatcher(&TestInterfaceStub::getInterfaceVersion, "uu"); - -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestInterfaceStub, - uint32_t - > TestInterfaceDBusStubAdapterInternal::getTestPredefinedTypeAttributeAttributeStubDispatcher( - &TestInterfaceStub::getTestPredefinedTypeAttributeAttribute - , "u" - ); -CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestInterfaceStub, - uint32_t - > TestInterfaceDBusStubAdapterInternal::setTestPredefinedTypeAttributeAttributeStubDispatcher( - &TestInterfaceStub::getTestPredefinedTypeAttributeAttribute, - &TestInterfaceStubRemoteEvent::onRemoteSetTestPredefinedTypeAttributeAttribute, - &TestInterfaceStubRemoteEvent::onRemoteTestPredefinedTypeAttributeAttributeChanged - ,&TestInterfaceStubAdapter::fireTestPredefinedTypeAttributeAttributeChanged - ,"u" - ); -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > TestInterfaceDBusStubAdapterInternal::getTestDerivedStructAttributeAttributeStubDispatcher( - &TestInterfaceStub::getTestDerivedStructAttributeAttribute - , "(sqi)" - ); -CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > TestInterfaceDBusStubAdapterInternal::setTestDerivedStructAttributeAttributeStubDispatcher( - &TestInterfaceStub::getTestDerivedStructAttributeAttribute, - &TestInterfaceStubRemoteEvent::onRemoteSetTestDerivedStructAttributeAttribute, - &TestInterfaceStubRemoteEvent::onRemoteTestDerivedStructAttributeAttributeChanged - ,&TestInterfaceStubAdapter::fireTestDerivedStructAttributeAttributeChanged - ,"(sqi)" - ); -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > TestInterfaceDBusStubAdapterInternal::getTestDerivedArrayAttributeAttributeStubDispatcher( - &TestInterfaceStub::getTestDerivedArrayAttributeAttribute - , "at" - ); -CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > TestInterfaceDBusStubAdapterInternal::setTestDerivedArrayAttributeAttributeStubDispatcher( - &TestInterfaceStub::getTestDerivedArrayAttributeAttribute, - &TestInterfaceStubRemoteEvent::onRemoteSetTestDerivedArrayAttributeAttribute, - &TestInterfaceStubRemoteEvent::onRemoteTestDerivedArrayAttributeAttributeChanged - ,&TestInterfaceStubAdapter::fireTestDerivedArrayAttributeAttributeChanged - ,"at" - ); - - - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple<>, - std::tuple<>, - std::tuple<>, - std::tuple<> - - > TestInterfaceDBusStubAdapterInternal::testEmptyMethodStubDispatcher( - &TestInterfaceStub::testEmptyMethod, "", - std::make_tuple(), - std::make_tuple()); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple, - std::tuple<>, - std::tuple, - std::tuple<> - - > TestInterfaceDBusStubAdapterInternal::testVoidPredefinedTypeMethodStubDispatcher( - &TestInterfaceStub::testVoidPredefinedTypeMethod, "", - std::make_tuple(static_cast(nullptr), static_cast(nullptr)), - std::make_tuple()); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple, - std::tuple, - std::tuple, - std::tuple - - > TestInterfaceDBusStubAdapterInternal::testPredefinedTypeMethodStubDispatcher( - &TestInterfaceStub::testPredefinedTypeMethod, "us", - std::make_tuple(static_cast(nullptr), static_cast(nullptr)), - std::make_tuple(static_cast(nullptr), static_cast(nullptr))); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, ::commonapi::tests::DerivedTypeCollection::TestMap>, - std::tuple<>, - std::tuple, - std::tuple<> - - > TestInterfaceDBusStubAdapterInternal::testVoidDerivedTypeMethodStubDispatcher( - &TestInterfaceStub::testVoidDerivedTypeMethod, "", - std::make_tuple(static_cast(nullptr), static_cast<::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t*>(nullptr)), - std::make_tuple()); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, ::commonapi::tests::DerivedTypeCollection::TestMap>, - std::tuple<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, ::commonapi::tests::DerivedTypeCollection::TestMap>, - std::tuple, - std::tuple - - > TestInterfaceDBusStubAdapterInternal::testDerivedTypeMethodStubDispatcher( - &TestInterfaceStub::testDerivedTypeMethod, "ia{ua(sq)}", - std::make_tuple(static_cast(nullptr), static_cast<::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t*>(nullptr)), - std::make_tuple(static_cast(nullptr), static_cast<::commonapi::tests::DerivedTypeCollection_::TestMapDeployment_t*>(nullptr))); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple>>, - std::tuple<>, - std::tuple>, - std::tuple<> - - > TestInterfaceDBusStubAdapterInternal::testArrayOfPolymorphicStructMethodStubDispatcher( - &TestInterfaceStub::TestArrayOfPolymorphicStructMethod, "", - std::make_tuple(static_cast*>(nullptr)), - std::make_tuple()); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::MapIntToPolymorphic>, - std::tuple<>, - std::tuple<::commonapi::tests::DerivedTypeCollection_::MapIntToPolymorphicDeployment_t>, - std::tuple<> - - > TestInterfaceDBusStubAdapterInternal::testMapOfPolymorphicStructMethodStubDispatcher( - &TestInterfaceStub::TestMapOfPolymorphicStructMethod, "", - std::make_tuple(static_cast<::commonapi::tests::DerivedTypeCollection_::MapIntToPolymorphicDeployment_t*>(nullptr)), - std::make_tuple()); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::StructWithPolymorphicMember>, - std::tuple<>, - std::tuple<::commonapi::tests::DerivedTypeCollection_::StructWithPolymorphicMemberDeployment_t>, - std::tuple<> - - > TestInterfaceDBusStubAdapterInternal::testStructWithPolymorphicMemberMethodStubDispatcher( - &TestInterfaceStub::TestStructWithPolymorphicMemberMethod, "", - std::make_tuple(static_cast<::commonapi::tests::DerivedTypeCollection_::StructWithPolymorphicMemberDeployment_t*>(nullptr)), - std::make_tuple()); - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::StructWithEnumKeyMap>, - std::tuple<>, - std::tuple<::commonapi::tests::DerivedTypeCollection_::StructWithEnumKeyMapDeployment_t>, - std::tuple<> - - > TestInterfaceDBusStubAdapterInternal::testStructWithEnumKeyMapMemberStubDispatcher( - &TestInterfaceStub::TestStructWithEnumKeyMapMember, "", - std::make_tuple(static_cast<::commonapi::tests::DerivedTypeCollection_::StructWithEnumKeyMapDeployment_t*>(nullptr)), - std::make_tuple()); - - -void TestInterfaceDBusStubAdapterInternal::fireTestPredefinedTypeAttributeAttributeChanged(const uint32_t& value) { - CommonAPI::DBus::DBusStubSignalHelper> - ::sendSignal( - *this, - "onTestPredefinedTypeAttributeAttributeChanged", - "u", - value - - ); -} -void TestInterfaceDBusStubAdapterInternal::fireTestDerivedStructAttributeAttributeChanged(const ::commonapi::tests::DerivedTypeCollection::TestStructExtended& value) { - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestStructExtended, ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t> deployedValue(value, static_cast<::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t*>(nullptr)); - CommonAPI::DBus::DBusStubSignalHelper - >> - ::sendSignal( - *this, - "onTestDerivedStructAttributeAttributeChanged", - "(sqi)", - deployedValue - - ); -} -void TestInterfaceDBusStubAdapterInternal::fireTestDerivedArrayAttributeAttributeChanged(const ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64& value) { - CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t> deployedValue(value, static_cast<::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t*>(nullptr)); - CommonAPI::DBus::DBusStubSignalHelper - >> - ::sendSignal( - *this, - "onTestDerivedArrayAttributeAttributeChanged", - "at", - deployedValue - - ); -} - -void TestInterfaceDBusStubAdapterInternal::fireTestPredefinedTypeBroadcastEvent(const uint32_t& uint32Value, const std::string& stringValue) { - CommonAPI::DBus::DBusStubSignalHelper - >>::sendSignal( - *this, - "TestPredefinedTypeBroadcast", - "us", - uint32Value, - CommonAPI::Deployable(stringValue, static_cast(nullptr)) - ); -} -CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - TestInterfaceStub, - TestInterfaceStubAdapter, - std::tuple<>, - std::tuple - > TestInterfaceDBusStubAdapterInternal::subscribeTestSelectiveBroadcastSelectiveStubDispatcher(&TestInterfaceStubAdapter::subscribeForTestSelectiveBroadcastSelective, "b"); - -CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - TestInterfaceStub, - TestInterfaceStubAdapter, - std::tuple<>, - std::tuple<> - > TestInterfaceDBusStubAdapterInternal::unsubscribeTestSelectiveBroadcastSelectiveStubDispatcher(&TestInterfaceStubAdapter::unsubscribeFromTestSelectiveBroadcastSelective, ""); - -void TestInterfaceDBusStubAdapterInternal::fireTestSelectiveBroadcastSelective(const std::shared_ptr _client) { - std::shared_ptr dbusClient = std::dynamic_pointer_cast(_client); - - if(dbusClient) - { - CommonAPI::DBus::DBusStubSignalHelper>::sendSignal( - dbusClient->getDBusId(), - *this, - "TestSelectiveBroadcast", - "" - ); - } -} - -void TestInterfaceDBusStubAdapterInternal::sendTestSelectiveBroadcastSelective(const std::shared_ptr _receivers) { - std::shared_ptr actualReceiverList = _receivers; - - if (!_receivers) - actualReceiverList = subscribersForTestSelectiveBroadcastSelective_; - - for (auto clientIdIterator = actualReceiverList->cbegin(); clientIdIterator != actualReceiverList->cend(); clientIdIterator++) { - if (!_receivers || subscribersForTestSelectiveBroadcastSelective_->find(*clientIdIterator) != subscribersForTestSelectiveBroadcastSelective_->end()) { - fireTestSelectiveBroadcastSelective(*clientIdIterator); - } - } -} - -void TestInterfaceDBusStubAdapterInternal::subscribeForTestSelectiveBroadcastSelective(const std::shared_ptr clientId, bool& success) { - bool ok = TestInterfaceDBusStubAdapterHelper::stub_->onTestSelectiveBroadcastSelectiveSubscriptionRequested(clientId); - if (ok) { - subscribersForTestSelectiveBroadcastSelective_->insert(clientId); - TestInterfaceDBusStubAdapterHelper::stub_->onTestSelectiveBroadcastSelectiveSubscriptionChanged(clientId, CommonAPI::SelectiveBroadcastSubscriptionEvent::SUBSCRIBED); - success = true; - } else { - success = false; - } -} - -void TestInterfaceDBusStubAdapterInternal::unsubscribeFromTestSelectiveBroadcastSelective(const std::shared_ptr clientId) { - subscribersForTestSelectiveBroadcastSelective_->erase(clientId); - TestInterfaceDBusStubAdapterHelper::stub_->onTestSelectiveBroadcastSelectiveSubscriptionChanged(clientId, CommonAPI::SelectiveBroadcastSubscriptionEvent::UNSUBSCRIBED); -} - -std::shared_ptr const TestInterfaceDBusStubAdapterInternal::getSubscribersForTestSelectiveBroadcastSelective() { - return subscribersForTestSelectiveBroadcastSelective_; -} -CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - TestInterfaceStub, - TestInterfaceStubAdapter, - std::tuple<>, - std::tuple - > TestInterfaceDBusStubAdapterInternal::subscribeTestBroadcastWithOutArgsSelectiveStubDispatcher(&TestInterfaceStubAdapter::subscribeForTestBroadcastWithOutArgsSelective, "b"); - -CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - TestInterfaceStub, - TestInterfaceStubAdapter, - std::tuple<>, - std::tuple<> - > TestInterfaceDBusStubAdapterInternal::unsubscribeTestBroadcastWithOutArgsSelectiveStubDispatcher(&TestInterfaceStubAdapter::unsubscribeFromTestBroadcastWithOutArgsSelective, ""); - -void TestInterfaceDBusStubAdapterInternal::fireTestBroadcastWithOutArgsSelective(const std::shared_ptr _client, const uint32_t &_uint32Value, const std::string &_stringValue) { - std::shared_ptr dbusClient = std::dynamic_pointer_cast(_client); - - if(dbusClient) - { - CommonAPI::DBus::DBusStubSignalHelper - >>::sendSignal( - dbusClient->getDBusId(), - *this, - "TestBroadcastWithOutArgs", - "us", - _uint32Value, - CommonAPI::Deployable(_stringValue, static_cast(nullptr)) - ); - } -} - -void TestInterfaceDBusStubAdapterInternal::sendTestBroadcastWithOutArgsSelective(const uint32_t &_uint32Value, const std::string &_stringValue, const std::shared_ptr _receivers) { - std::shared_ptr actualReceiverList = _receivers; - - if (!_receivers) - actualReceiverList = subscribersForTestBroadcastWithOutArgsSelective_; - - for (auto clientIdIterator = actualReceiverList->cbegin(); clientIdIterator != actualReceiverList->cend(); clientIdIterator++) { - if (!_receivers || subscribersForTestBroadcastWithOutArgsSelective_->find(*clientIdIterator) != subscribersForTestBroadcastWithOutArgsSelective_->end()) { - fireTestBroadcastWithOutArgsSelective(*clientIdIterator, _uint32Value, _stringValue); - } - } -} - -void TestInterfaceDBusStubAdapterInternal::subscribeForTestBroadcastWithOutArgsSelective(const std::shared_ptr clientId, bool& success) { - bool ok = TestInterfaceDBusStubAdapterHelper::stub_->onTestBroadcastWithOutArgsSelectiveSubscriptionRequested(clientId); - if (ok) { - subscribersForTestBroadcastWithOutArgsSelective_->insert(clientId); - TestInterfaceDBusStubAdapterHelper::stub_->onTestBroadcastWithOutArgsSelectiveSubscriptionChanged(clientId, CommonAPI::SelectiveBroadcastSubscriptionEvent::SUBSCRIBED); - success = true; - } else { - success = false; - } -} - -void TestInterfaceDBusStubAdapterInternal::unsubscribeFromTestBroadcastWithOutArgsSelective(const std::shared_ptr clientId) { - subscribersForTestBroadcastWithOutArgsSelective_->erase(clientId); - TestInterfaceDBusStubAdapterHelper::stub_->onTestBroadcastWithOutArgsSelectiveSubscriptionChanged(clientId, CommonAPI::SelectiveBroadcastSubscriptionEvent::UNSUBSCRIBED); -} - -std::shared_ptr const TestInterfaceDBusStubAdapterInternal::getSubscribersForTestBroadcastWithOutArgsSelective() { - return subscribersForTestBroadcastWithOutArgsSelective_; -} - - -const TestInterfaceDBusStubAdapterHelper::StubDispatcherTable& TestInterfaceDBusStubAdapterInternal::getStubDispatcherTable() { - return stubDispatcherTable_; -} - -const CommonAPI::DBus::StubAttributeTable& TestInterfaceDBusStubAdapterInternal::getStubAttributeTable() { - return stubAttributeTable_; -} - -TestInterfaceDBusStubAdapterInternal::TestInterfaceDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter(_address, _connection,false), - TestInterfaceDBusStubAdapterHelper(_address, _connection, std::dynamic_pointer_cast(_stub), false), - stubDispatcherTable_({ - { { "getTestPredefinedTypeAttributeAttribute", "" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::getTestPredefinedTypeAttributeAttributeStubDispatcher } - , { { "setTestPredefinedTypeAttributeAttribute", "u" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::setTestPredefinedTypeAttributeAttributeStubDispatcher }, - { { "getTestDerivedStructAttributeAttribute", "" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::getTestDerivedStructAttributeAttributeStubDispatcher } - , { { "setTestDerivedStructAttributeAttribute", "(sqi)" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::setTestDerivedStructAttributeAttributeStubDispatcher }, - { { "getTestDerivedArrayAttributeAttribute", "" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::getTestDerivedArrayAttributeAttributeStubDispatcher } - , { { "setTestDerivedArrayAttributeAttribute", "at" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::setTestDerivedArrayAttributeAttributeStubDispatcher } - , - { { "testEmptyMethod", "" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::testEmptyMethodStubDispatcher }, - { { "testVoidPredefinedTypeMethod", "us" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::testVoidPredefinedTypeMethodStubDispatcher }, - { { "testPredefinedTypeMethod", "us" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::testPredefinedTypeMethodStubDispatcher }, - { { "testVoidDerivedTypeMethod", "ia{ua(sq)}" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::testVoidDerivedTypeMethodStubDispatcher }, - { { "testDerivedTypeMethod", "ia{ua(sq)}" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::testDerivedTypeMethodStubDispatcher }, - { { "TestArrayOfPolymorphicStructMethod", "a(uv)" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::testArrayOfPolymorphicStructMethodStubDispatcher }, - { { "TestMapOfPolymorphicStructMethod", "a{y(uv)}" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::testMapOfPolymorphicStructMethodStubDispatcher }, - { { "TestStructWithPolymorphicMemberMethod", "(u(uv))" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::testStructWithPolymorphicMemberMethodStubDispatcher }, - { { "TestStructWithEnumKeyMapMember", "(a{is})" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::testStructWithEnumKeyMapMemberStubDispatcher } - , - { { "subscribeForTestSelectiveBroadcastSelective", "" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::subscribeTestSelectiveBroadcastSelectiveStubDispatcher } - , - { { "unsubscribeFromTestSelectiveBroadcastSelective", "" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::unsubscribeTestSelectiveBroadcastSelectiveStubDispatcher }, - { { "subscribeForTestBroadcastWithOutArgsSelective", "" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::subscribeTestBroadcastWithOutArgsSelectiveStubDispatcher } - , - { { "unsubscribeFromTestBroadcastWithOutArgsSelective", "" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::unsubscribeTestBroadcastWithOutArgsSelectiveStubDispatcher } - }), - stubAttributeTable_() { - subscribersForTestSelectiveBroadcastSelective_ = std::make_shared(); - subscribersForTestBroadcastWithOutArgsSelective_ = std::make_shared(); - - stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &commonapi::tests::TestInterfaceDBusStubAdapterInternal::getTestInterfaceInterfaceVersionStubDispatcher }); -} - -const bool TestInterfaceDBusStubAdapterInternal::hasFreedesktopProperties() { - return false; -} - -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusStubAdapter.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusStubAdapter.hpp deleted file mode 100644 index 2a3ad56..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/TestInterfaceDBusStubAdapter.hpp +++ /dev/null @@ -1,247 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_Test_Interface_DBUS_STUB_ADAPTER_HPP_ -#define COMMONAPI_TESTS_Test_Interface_DBUS_STUB_ADAPTER_HPP_ - -#include -#include "v1_0/commonapi/tests/TestInterfaceDBusDeployment.hpp" - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { - -typedef CommonAPI::DBus::DBusStubAdapterHelper TestInterfaceDBusStubAdapterHelper; - -class TestInterfaceDBusStubAdapterInternal - : public virtual TestInterfaceStubAdapter, - public TestInterfaceDBusStubAdapterHelper -{ -public: - TestInterfaceDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub); - - ~TestInterfaceDBusStubAdapterInternal(); - - virtual const bool hasFreedesktopProperties(); - - void fireTestPredefinedTypeAttributeAttributeChanged(const uint32_t& value); - void fireTestDerivedStructAttributeAttributeChanged(const ::commonapi::tests::DerivedTypeCollection::TestStructExtended& value); - void fireTestDerivedArrayAttributeAttributeChanged(const ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64& value); - - void fireTestPredefinedTypeBroadcastEvent(const uint32_t& uint32Value, const std::string& stringValue); - void fireTestSelectiveBroadcastSelective(const std::shared_ptr _client); - void sendTestSelectiveBroadcastSelective(const std::shared_ptr _receivers = nullptr); - void subscribeForTestSelectiveBroadcastSelective(const std::shared_ptr clientId, bool& success); - void unsubscribeFromTestSelectiveBroadcastSelective(const std::shared_ptr clientId); - std::shared_ptr const getSubscribersForTestSelectiveBroadcastSelective(); - void fireTestBroadcastWithOutArgsSelective(const std::shared_ptr _client, const uint32_t &_uint32Value, const std::string &_stringValue); - void sendTestBroadcastWithOutArgsSelective(const uint32_t &_uint32Value, const std::string &_stringValue, const std::shared_ptr _receivers = nullptr); - void subscribeForTestBroadcastWithOutArgsSelective(const std::shared_ptr clientId, bool& success); - void unsubscribeFromTestBroadcastWithOutArgsSelective(const std::shared_ptr clientId); - std::shared_ptr const getSubscribersForTestBroadcastWithOutArgsSelective(); - - - const TestInterfaceDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable(); - const CommonAPI::DBus::StubAttributeTable& getStubAttributeTable(); - - void deactivateManagedInstances(); - - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestInterfaceStub, - CommonAPI::Version - > getTestInterfaceInterfaceVersionStubDispatcher; - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestInterfaceStub, - uint32_t - > getTestPredefinedTypeAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestInterfaceStub, - uint32_t - > setTestPredefinedTypeAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > getTestDerivedStructAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestStructExtended, - ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t - > setTestDerivedStructAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - TestInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > getTestDerivedArrayAttributeAttributeStubDispatcher; -static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< - TestInterfaceStub, - ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, - ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t - > setTestDerivedArrayAttributeAttributeStubDispatcher; - - - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple<>, - std::tuple<>, - std::tuple<>, - std::tuple<> - - > testEmptyMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple, - std::tuple<>, - std::tuple, - std::tuple<> - - > testVoidPredefinedTypeMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple, - std::tuple, - std::tuple, - std::tuple - - > testPredefinedTypeMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, ::commonapi::tests::DerivedTypeCollection::TestMap>, - std::tuple<>, - std::tuple, - std::tuple<> - - > testVoidDerivedTypeMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, ::commonapi::tests::DerivedTypeCollection::TestMap>, - std::tuple<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, ::commonapi::tests::DerivedTypeCollection::TestMap>, - std::tuple, - std::tuple - - > testDerivedTypeMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple>>, - std::tuple<>, - std::tuple>, - std::tuple<> - - > testArrayOfPolymorphicStructMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::MapIntToPolymorphic>, - std::tuple<>, - std::tuple<::commonapi::tests::DerivedTypeCollection_::MapIntToPolymorphicDeployment_t>, - std::tuple<> - - > testMapOfPolymorphicStructMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::StructWithPolymorphicMember>, - std::tuple<>, - std::tuple<::commonapi::tests::DerivedTypeCollection_::StructWithPolymorphicMemberDeployment_t>, - std::tuple<> - - > testStructWithPolymorphicMemberMethodStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - TestInterfaceStub, - std::tuple<::commonapi::tests::DerivedTypeCollection::StructWithEnumKeyMap>, - std::tuple<>, - std::tuple<::commonapi::tests::DerivedTypeCollection_::StructWithEnumKeyMapDeployment_t>, - std::tuple<> - - > testStructWithEnumKeyMapMemberStubDispatcher; - - -static CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - TestInterfaceStub, - TestInterfaceStubAdapter, - std::tuple<>, - std::tuple - > subscribeTestSelectiveBroadcastSelectiveStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - TestInterfaceStub, - TestInterfaceStubAdapter, - std::tuple<>, - std::tuple<> - > unsubscribeTestSelectiveBroadcastSelectiveStubDispatcher; -static CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - TestInterfaceStub, - TestInterfaceStubAdapter, - std::tuple<>, - std::tuple - > subscribeTestBroadcastWithOutArgsSelectiveStubDispatcher; - -static CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< - TestInterfaceStub, - TestInterfaceStubAdapter, - std::tuple<>, - std::tuple<> - > unsubscribeTestBroadcastWithOutArgsSelectiveStubDispatcher; - - - protected: - virtual const char* getMethodsDBusIntrospectionXmlData() const; - - private: - TestInterfaceDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; - CommonAPI::DBus::StubAttributeTable stubAttributeTable_; -}; - -class TestInterfaceDBusStubAdapter - : public TestInterfaceDBusStubAdapterInternal, - public std::enable_shared_from_this { -public: - TestInterfaceDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter( - _address, - _connection, - false), - TestInterfaceDBusStubAdapterInternal( - _address, - _connection, - _stub) { - } -}; - -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_Test_Interface_DBUS_STUB_ADAPTER_HPP_ diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusDeployment.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusDeployment.cpp deleted file mode 100644 index f58b844..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusDeployment.cpp +++ /dev/null @@ -1,30 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include "BranchInterfaceDBusDeployment.hpp" - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { -namespace BranchInterface_ { - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - -} // namespace BranchInterface_ -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusDeployment.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusDeployment.hpp deleted file mode 100644 index f87fdb9..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusDeployment.hpp +++ /dev/null @@ -1,45 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ - -#ifndef COMMONAPI_DBUS_BRANCHINTERFACE_DEPLOYMENT_HPP_ -#define COMMONAPI_DBUS_BRANCHINTERFACE_DEPLOYMENT_HPP_ - - - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif -#include -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { -namespace BranchInterface_ { - -// Interface-specific deployment types - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - - -} // namespace BranchInterface_ -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_DBUS_BRANCHINTERFACE_DEPLOYMENT_HPP_ diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusProxy.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusProxy.cpp deleted file mode 100644 index 0c7c6ce..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusProxy.cpp +++ /dev/null @@ -1,104 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -std::shared_ptr createBranchInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) { - return std::make_shared(_address, _connection); -} - -INITIALIZER(registerBranchInterfaceDBusProxy) { - CommonAPI::DBus::Factory::get()->registerProxyCreateMethod( - BranchInterface::getInterface(), - &createBranchInterfaceDBusProxy); -} - -BranchInterfaceDBusProxy::BranchInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) - : CommonAPI::DBus::DBusProxy(_address, _connection) -{ -} - - - - void BranchInterfaceDBusProxy::testBranchMethod(const int32_t &_inInt, const std::string &_inString, CommonAPI::CallStatus &_internalCallStatus, BranchInterface::testBranchMethodError &_error, int32_t &_outInt, std::string &_outString, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable deploy_error(static_cast(nullptr)); - CommonAPI::Deployable deploy_inInt(_inInt, static_cast(nullptr)); - CommonAPI::Deployable deploy_inString(_inString, static_cast(nullptr)); - CommonAPI::Deployable deploy_outInt(static_cast(nullptr)); - CommonAPI::Deployable deploy_outString(static_cast(nullptr)); - CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable - >, - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable, - CommonAPI::Deployable - > - >::callMethodWithReply( - *this, - "testBranchMethod", - "is", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inInt, deploy_inString, - _internalCallStatus, - deploy_error, - deploy_outInt, deploy_outString); - _error = deploy_error.getValue(); - _outInt = deploy_outInt.getValue(); - _outString = deploy_outString.getValue(); - } - std::future BranchInterfaceDBusProxy::testBranchMethodAsync(const int32_t &_inInt, const std::string &_inString, TestBranchMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable deploy_error(static_cast(nullptr)); - CommonAPI::Deployable deploy_inInt(_inInt, static_cast(nullptr)); - CommonAPI::Deployable deploy_inString(_inString, static_cast(nullptr)); - CommonAPI::Deployable deploy_outInt(static_cast(nullptr)); - CommonAPI::Deployable deploy_outString(static_cast(nullptr)); - return CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable - >, - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable, - CommonAPI::Deployable - > - >::callMethodAsync( - *this, - "testBranchMethod", - "is", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inInt, deploy_inString, - [_callback] (CommonAPI::CallStatus _status, CommonAPI::Deployable _deploy_error, CommonAPI::Deployable _outInt, CommonAPI::Deployable _outString) { - _callback(_status, _deploy_error.getValue(), _outInt.getValue(), _outString.getValue()); - }, - std::make_tuple(deploy_error, deploy_outInt, deploy_outString)); - } - - - void BranchInterfaceDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const { - ownVersionMajor = 1; - ownVersionMinor = 0; - } - - } // namespace managed - } // namespace tests - } // namespace commonapi - } // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusProxy.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusProxy.hpp deleted file mode 100644 index 4f66233..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusProxy.hpp +++ /dev/null @@ -1,62 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_MANAGED_Branch_Interface_DBUS_PROXY_HPP_ -#define COMMONAPI_TESTS_MANAGED_Branch_Interface_DBUS_PROXY_HPP_ - -#include - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -class BranchInterfaceDBusProxy - : virtual public BranchInterfaceProxyBase, - virtual public CommonAPI::DBus::DBusProxy { -public: - BranchInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection); - - virtual ~BranchInterfaceDBusProxy() { } - - - - virtual void testBranchMethod(const int32_t &_inInt, const std::string &_inString, CommonAPI::CallStatus &_internalCallStatus, BranchInterface::testBranchMethodError &_error, int32_t &_outInt, std::string &_outString, const CommonAPI::CallInfo *_info); - virtual std::future testBranchMethodAsync(const int32_t &_inInt, const std::string &_inString, TestBranchMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info); - - - virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const; - -private: - - - -}; - -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_MANAGED_Branch_Interface_DBUS_PROXY_HPP_ - diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusStubAdapter.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusStubAdapter.cpp deleted file mode 100644 index ce8f413..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusStubAdapter.cpp +++ /dev/null @@ -1,109 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -std::shared_ptr createBranchInterfaceDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) { - return std::make_shared(_address, _connection, _stub); -} - -INITIALIZER(registerBranchInterfaceDBusStubAdapter) { - CommonAPI::DBus::Factory::get()->registerStubAdapterCreateMethod( - BranchInterface::getInterface(), &createBranchInterfaceDBusStubAdapter); -} - -BranchInterfaceDBusStubAdapterInternal::~BranchInterfaceDBusStubAdapterInternal() { - deactivateManagedInstances(); - BranchInterfaceDBusStubAdapterHelper::deinit(); -} - -void BranchInterfaceDBusStubAdapterInternal::deactivateManagedInstances() { - -} - -const char* BranchInterfaceDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData() const { - static const std::string introspectionData = - "\n" - "" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - - ; - return introspectionData.c_str(); -} - -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - BranchInterfaceStub, - CommonAPI::Version - > BranchInterfaceDBusStubAdapterInternal::getBranchInterfaceInterfaceVersionStubDispatcher(&BranchInterfaceStub::getInterfaceVersion, "uu"); - - - - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - BranchInterfaceStub, - std::tuple, - std::tuple, - std::tuple, - std::tuple - - > BranchInterfaceDBusStubAdapterInternal::testBranchMethodStubDispatcher( - &BranchInterfaceStub::testBranchMethod, "iis", - std::make_tuple(static_cast(nullptr), static_cast(nullptr)), - std::make_tuple(static_cast(nullptr), static_cast(nullptr), static_cast(nullptr))); - - - - - -const BranchInterfaceDBusStubAdapterHelper::StubDispatcherTable& BranchInterfaceDBusStubAdapterInternal::getStubDispatcherTable() { - return stubDispatcherTable_; -} - -const CommonAPI::DBus::StubAttributeTable& BranchInterfaceDBusStubAdapterInternal::getStubAttributeTable() { - return stubAttributeTable_; -} - -BranchInterfaceDBusStubAdapterInternal::BranchInterfaceDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter(_address, _connection,false), - BranchInterfaceDBusStubAdapterHelper(_address, _connection, std::dynamic_pointer_cast(_stub), false), - stubDispatcherTable_({ - { { "testBranchMethod", "is" }, &commonapi::tests::managed::BranchInterfaceDBusStubAdapterInternal::testBranchMethodStubDispatcher } - }), - stubAttributeTable_() { - - stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &commonapi::tests::managed::BranchInterfaceDBusStubAdapterInternal::getBranchInterfaceInterfaceVersionStubDispatcher }); -} - -const bool BranchInterfaceDBusStubAdapterInternal::hasFreedesktopProperties() { - return false; -} - -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusStubAdapter.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusStubAdapter.hpp deleted file mode 100644 index 1da6539..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/BranchInterfaceDBusStubAdapter.hpp +++ /dev/null @@ -1,109 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_MANAGED_Branch_Interface_DBUS_STUB_ADAPTER_HPP_ -#define COMMONAPI_TESTS_MANAGED_Branch_Interface_DBUS_STUB_ADAPTER_HPP_ - -#include -#include "v1_0/commonapi/tests/managed/BranchInterfaceDBusDeployment.hpp" - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -typedef CommonAPI::DBus::DBusStubAdapterHelper BranchInterfaceDBusStubAdapterHelper; - -class BranchInterfaceDBusStubAdapterInternal - : public virtual BranchInterfaceStubAdapter, - public BranchInterfaceDBusStubAdapterHelper -{ -public: - BranchInterfaceDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub); - - ~BranchInterfaceDBusStubAdapterInternal(); - - virtual const bool hasFreedesktopProperties(); - - - - - const BranchInterfaceDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable(); - const CommonAPI::DBus::StubAttributeTable& getStubAttributeTable(); - - void deactivateManagedInstances(); - - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - BranchInterfaceStub, - CommonAPI::Version - > getBranchInterfaceInterfaceVersionStubDispatcher; - - - - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - BranchInterfaceStub, - std::tuple, - std::tuple, - std::tuple, - std::tuple - - > testBranchMethodStubDispatcher; - - - - - protected: - virtual const char* getMethodsDBusIntrospectionXmlData() const; - - private: - BranchInterfaceDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; - CommonAPI::DBus::StubAttributeTable stubAttributeTable_; -}; - -class BranchInterfaceDBusStubAdapter - : public BranchInterfaceDBusStubAdapterInternal, - public std::enable_shared_from_this { -public: - BranchInterfaceDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter( - _address, - _connection, - false), - BranchInterfaceDBusStubAdapterInternal( - _address, - _connection, - _stub) { - } -}; - -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_MANAGED_Branch_Interface_DBUS_STUB_ADAPTER_HPP_ diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusDeployment.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusDeployment.cpp deleted file mode 100644 index d28ab96..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusDeployment.cpp +++ /dev/null @@ -1,30 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include "LeafInterfaceDBusDeployment.hpp" - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { -namespace LeafInterface_ { - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - -} // namespace LeafInterface_ -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusDeployment.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusDeployment.hpp deleted file mode 100644 index 71e0f4c..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusDeployment.hpp +++ /dev/null @@ -1,45 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ - -#ifndef COMMONAPI_DBUS_LEAFINTERFACE_DEPLOYMENT_HPP_ -#define COMMONAPI_DBUS_LEAFINTERFACE_DEPLOYMENT_HPP_ - - - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif -#include -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { -namespace LeafInterface_ { - -// Interface-specific deployment types - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - - -} // namespace LeafInterface_ -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_DBUS_LEAFINTERFACE_DEPLOYMENT_HPP_ diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusProxy.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusProxy.cpp deleted file mode 100644 index 6a26285..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusProxy.cpp +++ /dev/null @@ -1,104 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -std::shared_ptr createLeafInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) { - return std::make_shared(_address, _connection); -} - -INITIALIZER(registerLeafInterfaceDBusProxy) { - CommonAPI::DBus::Factory::get()->registerProxyCreateMethod( - LeafInterface::getInterface(), - &createLeafInterfaceDBusProxy); -} - -LeafInterfaceDBusProxy::LeafInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) - : CommonAPI::DBus::DBusProxy(_address, _connection) -{ -} - - - - void LeafInterfaceDBusProxy::testLeafMethod(const int32_t &_inInt, const std::string &_inString, CommonAPI::CallStatus &_internalCallStatus, LeafInterface::testLeafMethodError &_error, int32_t &_outInt, std::string &_outString, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable deploy_error(static_cast(nullptr)); - CommonAPI::Deployable deploy_inInt(_inInt, static_cast(nullptr)); - CommonAPI::Deployable deploy_inString(_inString, static_cast(nullptr)); - CommonAPI::Deployable deploy_outInt(static_cast(nullptr)); - CommonAPI::Deployable deploy_outString(static_cast(nullptr)); - CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable - >, - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable, - CommonAPI::Deployable - > - >::callMethodWithReply( - *this, - "testLeafMethod", - "is", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inInt, deploy_inString, - _internalCallStatus, - deploy_error, - deploy_outInt, deploy_outString); - _error = deploy_error.getValue(); - _outInt = deploy_outInt.getValue(); - _outString = deploy_outString.getValue(); - } - std::future LeafInterfaceDBusProxy::testLeafMethodAsync(const int32_t &_inInt, const std::string &_inString, TestLeafMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable deploy_error(static_cast(nullptr)); - CommonAPI::Deployable deploy_inInt(_inInt, static_cast(nullptr)); - CommonAPI::Deployable deploy_inString(_inString, static_cast(nullptr)); - CommonAPI::Deployable deploy_outInt(static_cast(nullptr)); - CommonAPI::Deployable deploy_outString(static_cast(nullptr)); - return CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable - >, - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable, - CommonAPI::Deployable - > - >::callMethodAsync( - *this, - "testLeafMethod", - "is", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inInt, deploy_inString, - [_callback] (CommonAPI::CallStatus _status, CommonAPI::Deployable _deploy_error, CommonAPI::Deployable _outInt, CommonAPI::Deployable _outString) { - _callback(_status, _deploy_error.getValue(), _outInt.getValue(), _outString.getValue()); - }, - std::make_tuple(deploy_error, deploy_outInt, deploy_outString)); - } - - - void LeafInterfaceDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const { - ownVersionMajor = 1; - ownVersionMinor = 0; - } - - } // namespace managed - } // namespace tests - } // namespace commonapi - } // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusProxy.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusProxy.hpp deleted file mode 100644 index 8fec7ca..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusProxy.hpp +++ /dev/null @@ -1,62 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_MANAGED_Leaf_Interface_DBUS_PROXY_HPP_ -#define COMMONAPI_TESTS_MANAGED_Leaf_Interface_DBUS_PROXY_HPP_ - -#include - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -class LeafInterfaceDBusProxy - : virtual public LeafInterfaceProxyBase, - virtual public CommonAPI::DBus::DBusProxy { -public: - LeafInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection); - - virtual ~LeafInterfaceDBusProxy() { } - - - - virtual void testLeafMethod(const int32_t &_inInt, const std::string &_inString, CommonAPI::CallStatus &_internalCallStatus, LeafInterface::testLeafMethodError &_error, int32_t &_outInt, std::string &_outString, const CommonAPI::CallInfo *_info); - virtual std::future testLeafMethodAsync(const int32_t &_inInt, const std::string &_inString, TestLeafMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info); - - - virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const; - -private: - - - -}; - -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_MANAGED_Leaf_Interface_DBUS_PROXY_HPP_ - diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusStubAdapter.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusStubAdapter.cpp deleted file mode 100644 index d622168..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusStubAdapter.cpp +++ /dev/null @@ -1,109 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -std::shared_ptr createLeafInterfaceDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) { - return std::make_shared(_address, _connection, _stub); -} - -INITIALIZER(registerLeafInterfaceDBusStubAdapter) { - CommonAPI::DBus::Factory::get()->registerStubAdapterCreateMethod( - LeafInterface::getInterface(), &createLeafInterfaceDBusStubAdapter); -} - -LeafInterfaceDBusStubAdapterInternal::~LeafInterfaceDBusStubAdapterInternal() { - deactivateManagedInstances(); - LeafInterfaceDBusStubAdapterHelper::deinit(); -} - -void LeafInterfaceDBusStubAdapterInternal::deactivateManagedInstances() { - -} - -const char* LeafInterfaceDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData() const { - static const std::string introspectionData = - "\n" - "" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - - ; - return introspectionData.c_str(); -} - -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - LeafInterfaceStub, - CommonAPI::Version - > LeafInterfaceDBusStubAdapterInternal::getLeafInterfaceInterfaceVersionStubDispatcher(&LeafInterfaceStub::getInterfaceVersion, "uu"); - - - - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - LeafInterfaceStub, - std::tuple, - std::tuple, - std::tuple, - std::tuple - - > LeafInterfaceDBusStubAdapterInternal::testLeafMethodStubDispatcher( - &LeafInterfaceStub::testLeafMethod, "iis", - std::make_tuple(static_cast(nullptr), static_cast(nullptr)), - std::make_tuple(static_cast(nullptr), static_cast(nullptr), static_cast(nullptr))); - - - - - -const LeafInterfaceDBusStubAdapterHelper::StubDispatcherTable& LeafInterfaceDBusStubAdapterInternal::getStubDispatcherTable() { - return stubDispatcherTable_; -} - -const CommonAPI::DBus::StubAttributeTable& LeafInterfaceDBusStubAdapterInternal::getStubAttributeTable() { - return stubAttributeTable_; -} - -LeafInterfaceDBusStubAdapterInternal::LeafInterfaceDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter(_address, _connection,false), - LeafInterfaceDBusStubAdapterHelper(_address, _connection, std::dynamic_pointer_cast(_stub), false), - stubDispatcherTable_({ - { { "testLeafMethod", "is" }, &commonapi::tests::managed::LeafInterfaceDBusStubAdapterInternal::testLeafMethodStubDispatcher } - }), - stubAttributeTable_() { - - stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &commonapi::tests::managed::LeafInterfaceDBusStubAdapterInternal::getLeafInterfaceInterfaceVersionStubDispatcher }); -} - -const bool LeafInterfaceDBusStubAdapterInternal::hasFreedesktopProperties() { - return false; -} - -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusStubAdapter.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusStubAdapter.hpp deleted file mode 100644 index 853dbfb..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/LeafInterfaceDBusStubAdapter.hpp +++ /dev/null @@ -1,109 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_MANAGED_Leaf_Interface_DBUS_STUB_ADAPTER_HPP_ -#define COMMONAPI_TESTS_MANAGED_Leaf_Interface_DBUS_STUB_ADAPTER_HPP_ - -#include -#include "v1_0/commonapi/tests/managed/LeafInterfaceDBusDeployment.hpp" - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -typedef CommonAPI::DBus::DBusStubAdapterHelper LeafInterfaceDBusStubAdapterHelper; - -class LeafInterfaceDBusStubAdapterInternal - : public virtual LeafInterfaceStubAdapter, - public LeafInterfaceDBusStubAdapterHelper -{ -public: - LeafInterfaceDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub); - - ~LeafInterfaceDBusStubAdapterInternal(); - - virtual const bool hasFreedesktopProperties(); - - - - - const LeafInterfaceDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable(); - const CommonAPI::DBus::StubAttributeTable& getStubAttributeTable(); - - void deactivateManagedInstances(); - - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - LeafInterfaceStub, - CommonAPI::Version - > getLeafInterfaceInterfaceVersionStubDispatcher; - - - - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - LeafInterfaceStub, - std::tuple, - std::tuple, - std::tuple, - std::tuple - - > testLeafMethodStubDispatcher; - - - - - protected: - virtual const char* getMethodsDBusIntrospectionXmlData() const; - - private: - LeafInterfaceDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; - CommonAPI::DBus::StubAttributeTable stubAttributeTable_; -}; - -class LeafInterfaceDBusStubAdapter - : public LeafInterfaceDBusStubAdapterInternal, - public std::enable_shared_from_this { -public: - LeafInterfaceDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter( - _address, - _connection, - false), - LeafInterfaceDBusStubAdapterInternal( - _address, - _connection, - _stub) { - } -}; - -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_MANAGED_Leaf_Interface_DBUS_STUB_ADAPTER_HPP_ diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusDeployment.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusDeployment.cpp deleted file mode 100644 index c514b7e..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusDeployment.cpp +++ /dev/null @@ -1,30 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include "RootInterfaceDBusDeployment.hpp" - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { -namespace RootInterface_ { - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - -} // namespace RootInterface_ -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusDeployment.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusDeployment.hpp deleted file mode 100644 index 63a1fdf..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusDeployment.hpp +++ /dev/null @@ -1,45 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ - -#ifndef COMMONAPI_DBUS_ROOTINTERFACE_DEPLOYMENT_HPP_ -#define COMMONAPI_DBUS_ROOTINTERFACE_DEPLOYMENT_HPP_ - - - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif -#include -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { -namespace RootInterface_ { - -// Interface-specific deployment types - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - - -} // namespace RootInterface_ -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_DBUS_ROOTINTERFACE_DEPLOYMENT_HPP_ diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusProxy.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusProxy.cpp deleted file mode 100644 index 4ad729e..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusProxy.cpp +++ /dev/null @@ -1,112 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -std::shared_ptr createRootInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) { - return std::make_shared(_address, _connection); -} - -INITIALIZER(registerRootInterfaceDBusProxy) { - CommonAPI::DBus::Factory::get()->registerProxyCreateMethod( - RootInterface::getInterface(), - &createRootInterfaceDBusProxy); -} - -RootInterfaceDBusProxy::RootInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) - : CommonAPI::DBus::DBusProxy(_address, _connection) -, proxyManagerLeafInterface_(*this, "commonapi.tests.managed.LeafInterface"), - proxyManagerBranchInterface_(*this, "commonapi.tests.managed.BranchInterface") -{ -} - - - - void RootInterfaceDBusProxy::testRootMethod(const int32_t &_inInt, const std::string &_inString, CommonAPI::CallStatus &_internalCallStatus, RootInterface::testRootMethodError &_error, int32_t &_outInt, std::string &_outString, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable deploy_error(static_cast(nullptr)); - CommonAPI::Deployable deploy_inInt(_inInt, static_cast(nullptr)); - CommonAPI::Deployable deploy_inString(_inString, static_cast(nullptr)); - CommonAPI::Deployable deploy_outInt(static_cast(nullptr)); - CommonAPI::Deployable deploy_outString(static_cast(nullptr)); - CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable - >, - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable, - CommonAPI::Deployable - > - >::callMethodWithReply( - *this, - "testRootMethod", - "is", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inInt, deploy_inString, - _internalCallStatus, - deploy_error, - deploy_outInt, deploy_outString); - _error = deploy_error.getValue(); - _outInt = deploy_outInt.getValue(); - _outString = deploy_outString.getValue(); - } - std::future RootInterfaceDBusProxy::testRootMethodAsync(const int32_t &_inInt, const std::string &_inString, TestRootMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info) { - CommonAPI::Deployable deploy_error(static_cast(nullptr)); - CommonAPI::Deployable deploy_inInt(_inInt, static_cast(nullptr)); - CommonAPI::Deployable deploy_inString(_inString, static_cast(nullptr)); - CommonAPI::Deployable deploy_outInt(static_cast(nullptr)); - CommonAPI::Deployable deploy_outString(static_cast(nullptr)); - return CommonAPI::DBus::DBusProxyHelper< - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable - >, - CommonAPI::DBus::DBusSerializableArguments< - CommonAPI::Deployable, - CommonAPI::Deployable, - CommonAPI::Deployable - > - >::callMethodAsync( - *this, - "testRootMethod", - "is", - (_info ? _info : &CommonAPI::DBus::defaultCallInfo), - deploy_inInt, deploy_inString, - [_callback] (CommonAPI::CallStatus _status, CommonAPI::Deployable _deploy_error, CommonAPI::Deployable _outInt, CommonAPI::Deployable _outString) { - _callback(_status, _deploy_error.getValue(), _outInt.getValue(), _outString.getValue()); - }, - std::make_tuple(deploy_error, deploy_outInt, deploy_outString)); - } - - CommonAPI::ProxyManager& RootInterfaceDBusProxy::getProxyManagerLeafInterface() { - return proxyManagerLeafInterface_; - } - CommonAPI::ProxyManager& RootInterfaceDBusProxy::getProxyManagerBranchInterface() { - return proxyManagerBranchInterface_; - } - - void RootInterfaceDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const { - ownVersionMajor = 1; - ownVersionMinor = 0; - } - - } // namespace managed - } // namespace tests - } // namespace commonapi - } // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusProxy.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusProxy.hpp deleted file mode 100644 index a0c7443..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusProxy.hpp +++ /dev/null @@ -1,67 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_MANAGED_Root_Interface_DBUS_PROXY_HPP_ -#define COMMONAPI_TESTS_MANAGED_Root_Interface_DBUS_PROXY_HPP_ - -#include - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -class RootInterfaceDBusProxy - : virtual public RootInterfaceProxyBase, - virtual public CommonAPI::DBus::DBusProxy { -public: - RootInterfaceDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection); - - virtual ~RootInterfaceDBusProxy() { } - - - - virtual void testRootMethod(const int32_t &_inInt, const std::string &_inString, CommonAPI::CallStatus &_internalCallStatus, RootInterface::testRootMethodError &_error, int32_t &_outInt, std::string &_outString, const CommonAPI::CallInfo *_info); - virtual std::future testRootMethodAsync(const int32_t &_inInt, const std::string &_inString, TestRootMethodAsyncCallback _callback, const CommonAPI::CallInfo *_info); - - virtual CommonAPI::ProxyManager& getProxyManagerLeafInterface(); - virtual CommonAPI::ProxyManager& getProxyManagerBranchInterface(); - - virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const; - -private: - - - - CommonAPI::DBus::DBusProxyManager proxyManagerLeafInterface_; - CommonAPI::DBus::DBusProxyManager proxyManagerBranchInterface_; -}; - -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_MANAGED_Root_Interface_DBUS_PROXY_HPP_ - diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusStubAdapter.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusStubAdapter.cpp deleted file mode 100644 index c414d4c..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusStubAdapter.cpp +++ /dev/null @@ -1,229 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -std::shared_ptr createRootInterfaceDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) { - return std::make_shared(_address, _connection, _stub); -} - -INITIALIZER(registerRootInterfaceDBusStubAdapter) { - CommonAPI::DBus::Factory::get()->registerStubAdapterCreateMethod( - RootInterface::getInterface(), &createRootInterfaceDBusStubAdapter); -} - -RootInterfaceDBusStubAdapterInternal::~RootInterfaceDBusStubAdapterInternal() { - deactivateManagedInstances(); - RootInterfaceDBusStubAdapterHelper::deinit(); -} - -void RootInterfaceDBusStubAdapterInternal::deactivateManagedInstances() { - std::set::iterator iter; - std::set::iterator iterNext; - - iter = registeredLeafInterfaceInstances.begin(); - while (iter != registeredLeafInterfaceInstances.end()) { - iterNext = std::next(iter); - - if (deregisterManagedStubLeafInterface(*iter)) { - iter = iterNext; - } - else { - iter++; - } - } - iter = registeredBranchInterfaceInstances.begin(); - while (iter != registeredBranchInterfaceInstances.end()) { - iterNext = std::next(iter); - - if (deregisterManagedStubBranchInterface(*iter)) { - iter = iterNext; - } - else { - iter++; - } - } -} - -const char* RootInterfaceDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData() const { - static const std::string introspectionData = - "\n" - "" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - - ; - return introspectionData.c_str(); -} - -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - RootInterfaceStub, - CommonAPI::Version - > RootInterfaceDBusStubAdapterInternal::getRootInterfaceInterfaceVersionStubDispatcher(&RootInterfaceStub::getInterfaceVersion, "uu"); - - - - -CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RootInterfaceStub, - std::tuple, - std::tuple, - std::tuple, - std::tuple - - > RootInterfaceDBusStubAdapterInternal::testRootMethodStubDispatcher( - &RootInterfaceStub::testRootMethod, "iis", - std::make_tuple(static_cast(nullptr), static_cast(nullptr)), - std::make_tuple(static_cast(nullptr), static_cast(nullptr), static_cast(nullptr))); - - - - - -const RootInterfaceDBusStubAdapterHelper::StubDispatcherTable& RootInterfaceDBusStubAdapterInternal::getStubDispatcherTable() { - return stubDispatcherTable_; -} - -const CommonAPI::DBus::StubAttributeTable& RootInterfaceDBusStubAdapterInternal::getStubAttributeTable() { - return stubAttributeTable_; -} -bool RootInterfaceDBusStubAdapterInternal::registerManagedStubLeafInterface(std::shared_ptr _stub, const std::string &_instance) { - if (registeredLeafInterfaceInstances.find(_instance) == registeredLeafInterfaceInstances.end()) { - std::string itsAddress = "local:commonapi.tests.managed.LeafInterface:" + _instance; - CommonAPI::DBus::DBusAddress itsDBusAddress; - CommonAPI::DBus::DBusAddressTranslator::get()->translate(itsAddress, itsDBusAddress); - - std::string objectPath(itsDBusAddress.getObjectPath()); - std::string adapterObjectPath(getDBusAddress().getObjectPath()); - - if (objectPath.compare(0, adapterObjectPath.length(), adapterObjectPath) == 0) { - std::shared_ptr itsFactory = CommonAPI::DBus::Factory::get(); - - auto stubAdapter = itsFactory->createDBusStubAdapter(_stub, "commonapi.tests.managed.LeafInterface", itsDBusAddress, connection_); - bool isRegistered = itsFactory->registerManagedService(stubAdapter); - if (isRegistered) { - bool isExported = connection_->getDBusObjectManager()->exportManagedDBusStubAdapter(adapterObjectPath, stubAdapter); - if (isExported) { - registeredLeafInterfaceInstances.insert(_instance); - return true; - } else { - itsFactory->unregisterManagedService(itsAddress); - } - } - } - } - return false; -} - -bool RootInterfaceDBusStubAdapterInternal::deregisterManagedStubLeafInterface(const std::string &_instance) { - std::string itsAddress = "local:commonapi.tests.managed.LeafInterface:" + _instance; - if (registeredLeafInterfaceInstances.find(_instance) != registeredLeafInterfaceInstances.end()) { - std::shared_ptr itsFactory = CommonAPI::DBus::Factory::get(); - std::shared_ptr stubAdapter - = itsFactory->getRegisteredService(itsAddress); - if (stubAdapter) { - connection_->getDBusObjectManager()->unexportManagedDBusStubAdapter( - getDBusAddress().getObjectPath(), stubAdapter); - itsFactory->unregisterManagedService(itsAddress); - registeredLeafInterfaceInstances.erase(_instance); - return true; - } - } - return false; -} - -std::set& RootInterfaceDBusStubAdapterInternal::getLeafInterfaceInstances() { - return registeredLeafInterfaceInstances; -} -bool RootInterfaceDBusStubAdapterInternal::registerManagedStubBranchInterface(std::shared_ptr _stub, const std::string &_instance) { - if (registeredBranchInterfaceInstances.find(_instance) == registeredBranchInterfaceInstances.end()) { - std::string itsAddress = "local:commonapi.tests.managed.BranchInterface:" + _instance; - CommonAPI::DBus::DBusAddress itsDBusAddress; - CommonAPI::DBus::DBusAddressTranslator::get()->translate(itsAddress, itsDBusAddress); - - std::string objectPath(itsDBusAddress.getObjectPath()); - std::string adapterObjectPath(getDBusAddress().getObjectPath()); - - if (objectPath.compare(0, adapterObjectPath.length(), adapterObjectPath) == 0) { - std::shared_ptr itsFactory = CommonAPI::DBus::Factory::get(); - - auto stubAdapter = itsFactory->createDBusStubAdapter(_stub, "commonapi.tests.managed.BranchInterface", itsDBusAddress, connection_); - bool isRegistered = itsFactory->registerManagedService(stubAdapter); - if (isRegistered) { - bool isExported = connection_->getDBusObjectManager()->exportManagedDBusStubAdapter(adapterObjectPath, stubAdapter); - if (isExported) { - registeredBranchInterfaceInstances.insert(_instance); - return true; - } else { - itsFactory->unregisterManagedService(itsAddress); - } - } - } - } - return false; -} - -bool RootInterfaceDBusStubAdapterInternal::deregisterManagedStubBranchInterface(const std::string &_instance) { - std::string itsAddress = "local:commonapi.tests.managed.BranchInterface:" + _instance; - if (registeredBranchInterfaceInstances.find(_instance) != registeredBranchInterfaceInstances.end()) { - std::shared_ptr itsFactory = CommonAPI::DBus::Factory::get(); - std::shared_ptr stubAdapter - = itsFactory->getRegisteredService(itsAddress); - if (stubAdapter) { - connection_->getDBusObjectManager()->unexportManagedDBusStubAdapter( - getDBusAddress().getObjectPath(), stubAdapter); - itsFactory->unregisterManagedService(itsAddress); - registeredBranchInterfaceInstances.erase(_instance); - return true; - } - } - return false; -} - -std::set& RootInterfaceDBusStubAdapterInternal::getBranchInterfaceInstances() { - return registeredBranchInterfaceInstances; -} - -RootInterfaceDBusStubAdapterInternal::RootInterfaceDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter(_address, _connection,true), - RootInterfaceDBusStubAdapterHelper(_address, _connection, std::dynamic_pointer_cast(_stub), true), - stubDispatcherTable_({ - { { "testRootMethod", "is" }, &commonapi::tests::managed::RootInterfaceDBusStubAdapterInternal::testRootMethodStubDispatcher } - }), - stubAttributeTable_() { - - stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &commonapi::tests::managed::RootInterfaceDBusStubAdapterInternal::getRootInterfaceInterfaceVersionStubDispatcher }); -} - -const bool RootInterfaceDBusStubAdapterInternal::hasFreedesktopProperties() { - return false; -} - -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusStubAdapter.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusStubAdapter.hpp deleted file mode 100644 index d50ebe4..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/RootInterfaceDBusStubAdapter.hpp +++ /dev/null @@ -1,119 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_MANAGED_Root_Interface_DBUS_STUB_ADAPTER_HPP_ -#define COMMONAPI_TESTS_MANAGED_Root_Interface_DBUS_STUB_ADAPTER_HPP_ - -#include -#include "v1_0/commonapi/tests/managed/RootInterfaceDBusDeployment.hpp" - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -typedef CommonAPI::DBus::DBusStubAdapterHelper RootInterfaceDBusStubAdapterHelper; - -class RootInterfaceDBusStubAdapterInternal - : public virtual RootInterfaceStubAdapter, - public RootInterfaceDBusStubAdapterHelper -{ -public: - RootInterfaceDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub); - - ~RootInterfaceDBusStubAdapterInternal(); - - virtual const bool hasFreedesktopProperties(); - - - - bool registerManagedStubLeafInterface(std::shared_ptr, const std::string&); - bool deregisterManagedStubLeafInterface(const std::string&); - std::set& getLeafInterfaceInstances(); - bool registerManagedStubBranchInterface(std::shared_ptr, const std::string&); - bool deregisterManagedStubBranchInterface(const std::string&); - std::set& getBranchInterfaceInstances(); - - const RootInterfaceDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable(); - const CommonAPI::DBus::StubAttributeTable& getStubAttributeTable(); - - void deactivateManagedInstances(); - - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - RootInterfaceStub, - CommonAPI::Version - > getRootInterfaceInterfaceVersionStubDispatcher; - - - - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - RootInterfaceStub, - std::tuple, - std::tuple, - std::tuple, - std::tuple - - > testRootMethodStubDispatcher; - - - - - protected: - virtual const char* getMethodsDBusIntrospectionXmlData() const; - - private: - std::set registeredLeafInterfaceInstances; - std::set registeredBranchInterfaceInstances; - RootInterfaceDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; - CommonAPI::DBus::StubAttributeTable stubAttributeTable_; -}; - -class RootInterfaceDBusStubAdapter - : public RootInterfaceDBusStubAdapterInternal, - public std::enable_shared_from_this { -public: - RootInterfaceDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter( - _address, - _connection, - true), - RootInterfaceDBusStubAdapterInternal( - _address, - _connection, - _stub) { - } -}; - -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_MANAGED_Root_Interface_DBUS_STUB_ADAPTER_HPP_ diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusDeployment.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusDeployment.cpp deleted file mode 100644 index 855d2af..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusDeployment.cpp +++ /dev/null @@ -1,30 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include "SecondRootDBusDeployment.hpp" - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { -namespace SecondRoot_ { - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - -} // namespace SecondRoot_ -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusDeployment.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusDeployment.hpp deleted file mode 100644 index d328176..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusDeployment.hpp +++ /dev/null @@ -1,45 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ - -#ifndef COMMONAPI_DBUS_SECONDROOT_DEPLOYMENT_HPP_ -#define COMMONAPI_DBUS_SECONDROOT_DEPLOYMENT_HPP_ - - - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif -#include -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { -namespace SecondRoot_ { - -// Interface-specific deployment types - -// Type-specific deployments - -// Attribute-specific deployments - -// Argument-specific deployments - -// Broadcast-specific deployments - - -} // namespace SecondRoot_ -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_DBUS_SECONDROOT_DEPLOYMENT_HPP_ diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusProxy.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusProxy.cpp deleted file mode 100644 index 767912b..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusProxy.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -std::shared_ptr createSecondRootDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) { - return std::make_shared(_address, _connection); -} - -INITIALIZER(registerSecondRootDBusProxy) { - CommonAPI::DBus::Factory::get()->registerProxyCreateMethod( - SecondRoot::getInterface(), - &createSecondRootDBusProxy); -} - -SecondRootDBusProxy::SecondRootDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection) - : CommonAPI::DBus::DBusProxy(_address, _connection) -, proxyManagerLeafInterface_(*this, "commonapi.tests.managed.LeafInterface") -{ -} - - - - - CommonAPI::ProxyManager& SecondRootDBusProxy::getProxyManagerLeafInterface() { - return proxyManagerLeafInterface_; - } - - void SecondRootDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const { - ownVersionMajor = 1; - ownVersionMinor = 0; - } - - } // namespace managed - } // namespace tests - } // namespace commonapi - } // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusProxy.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusProxy.hpp deleted file mode 100644 index 82e6e06..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusProxy.hpp +++ /dev/null @@ -1,63 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_MANAGED_Second_Root_DBUS_PROXY_HPP_ -#define COMMONAPI_TESTS_MANAGED_Second_Root_DBUS_PROXY_HPP_ - -#include - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -class SecondRootDBusProxy - : virtual public SecondRootProxyBase, - virtual public CommonAPI::DBus::DBusProxy { -public: - SecondRootDBusProxy( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection); - - virtual ~SecondRootDBusProxy() { } - - - - - virtual CommonAPI::ProxyManager& getProxyManagerLeafInterface(); - - virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const; - -private: - - - - CommonAPI::DBus::DBusProxyManager proxyManagerLeafInterface_; -}; - -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_MANAGED_Second_Root_DBUS_PROXY_HPP_ - diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusStubAdapter.cpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusStubAdapter.cpp deleted file mode 100644 index 36b8c10..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusStubAdapter.cpp +++ /dev/null @@ -1,151 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#include -#include - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -std::shared_ptr createSecondRootDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) { - return std::make_shared(_address, _connection, _stub); -} - -INITIALIZER(registerSecondRootDBusStubAdapter) { - CommonAPI::DBus::Factory::get()->registerStubAdapterCreateMethod( - SecondRoot::getInterface(), &createSecondRootDBusStubAdapter); -} - -SecondRootDBusStubAdapterInternal::~SecondRootDBusStubAdapterInternal() { - deactivateManagedInstances(); - SecondRootDBusStubAdapterHelper::deinit(); -} - -void SecondRootDBusStubAdapterInternal::deactivateManagedInstances() { - std::set::iterator iter; - std::set::iterator iterNext; - - iter = registeredLeafInterfaceInstances.begin(); - while (iter != registeredLeafInterfaceInstances.end()) { - iterNext = std::next(iter); - - if (deregisterManagedStubLeafInterface(*iter)) { - iter = iterNext; - } - else { - iter++; - } - } -} - -const char* SecondRootDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData() const { - static const std::string introspectionData = - "\n" - "" - "\n" - - "" - ; - return introspectionData.c_str(); -} - -CommonAPI::DBus::DBusGetAttributeStubDispatcher< - SecondRootStub, - CommonAPI::Version - > SecondRootDBusStubAdapterInternal::getSecondRootInterfaceVersionStubDispatcher(&SecondRootStub::getInterfaceVersion, "uu"); - - - - - - - - -const SecondRootDBusStubAdapterHelper::StubDispatcherTable& SecondRootDBusStubAdapterInternal::getStubDispatcherTable() { - return stubDispatcherTable_; -} - -const CommonAPI::DBus::StubAttributeTable& SecondRootDBusStubAdapterInternal::getStubAttributeTable() { - return stubAttributeTable_; -} -bool SecondRootDBusStubAdapterInternal::registerManagedStubLeafInterface(std::shared_ptr _stub, const std::string &_instance) { - if (registeredLeafInterfaceInstances.find(_instance) == registeredLeafInterfaceInstances.end()) { - std::string itsAddress = "local:commonapi.tests.managed.LeafInterface:" + _instance; - CommonAPI::DBus::DBusAddress itsDBusAddress; - CommonAPI::DBus::DBusAddressTranslator::get()->translate(itsAddress, itsDBusAddress); - - std::string objectPath(itsDBusAddress.getObjectPath()); - std::string adapterObjectPath(getDBusAddress().getObjectPath()); - - if (objectPath.compare(0, adapterObjectPath.length(), adapterObjectPath) == 0) { - std::shared_ptr itsFactory = CommonAPI::DBus::Factory::get(); - - auto stubAdapter = itsFactory->createDBusStubAdapter(_stub, "commonapi.tests.managed.LeafInterface", itsDBusAddress, connection_); - bool isRegistered = itsFactory->registerManagedService(stubAdapter); - if (isRegistered) { - bool isExported = connection_->getDBusObjectManager()->exportManagedDBusStubAdapter(adapterObjectPath, stubAdapter); - if (isExported) { - registeredLeafInterfaceInstances.insert(_instance); - return true; - } else { - itsFactory->unregisterManagedService(itsAddress); - } - } - } - } - return false; -} - -bool SecondRootDBusStubAdapterInternal::deregisterManagedStubLeafInterface(const std::string &_instance) { - std::string itsAddress = "local:commonapi.tests.managed.LeafInterface:" + _instance; - if (registeredLeafInterfaceInstances.find(_instance) != registeredLeafInterfaceInstances.end()) { - std::shared_ptr itsFactory = CommonAPI::DBus::Factory::get(); - std::shared_ptr stubAdapter - = itsFactory->getRegisteredService(itsAddress); - if (stubAdapter) { - connection_->getDBusObjectManager()->unexportManagedDBusStubAdapter( - getDBusAddress().getObjectPath(), stubAdapter); - itsFactory->unregisterManagedService(itsAddress); - registeredLeafInterfaceInstances.erase(_instance); - return true; - } - } - return false; -} - -std::set& SecondRootDBusStubAdapterInternal::getLeafInterfaceInstances() { - return registeredLeafInterfaceInstances; -} - -SecondRootDBusStubAdapterInternal::SecondRootDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter(_address, _connection,true), - SecondRootDBusStubAdapterHelper(_address, _connection, std::dynamic_pointer_cast(_stub), true), - stubDispatcherTable_({ - }), - stubAttributeTable_() { - - stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &commonapi::tests::managed::SecondRootDBusStubAdapterInternal::getSecondRootInterfaceVersionStubDispatcher }); -} - -const bool SecondRootDBusStubAdapterInternal::hasFreedesktopProperties() { - return false; -} - -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 diff --git a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusStubAdapter.hpp b/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusStubAdapter.hpp deleted file mode 100644 index eaf9944..0000000 --- a/src/test/src-gen/dbus/v1_0/commonapi/tests/managed/SecondRootDBusStubAdapter.hpp +++ /dev/null @@ -1,106 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 3.1.2.v201507021046. -* Used org.franca.core 0.9.1.201412191134. -* -* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -* If a copy of the MPL was not distributed with this file, You can obtain one at -* http://mozilla.org/MPL/2.0/. -*/ -#ifndef COMMONAPI_TESTS_MANAGED_Second_Root_DBUS_STUB_ADAPTER_HPP_ -#define COMMONAPI_TESTS_MANAGED_Second_Root_DBUS_STUB_ADAPTER_HPP_ - -#include -#include "v1_0/commonapi/tests/managed/SecondRootDBusDeployment.hpp" - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace v1_0 { -namespace commonapi { -namespace tests { -namespace managed { - -typedef CommonAPI::DBus::DBusStubAdapterHelper SecondRootDBusStubAdapterHelper; - -class SecondRootDBusStubAdapterInternal - : public virtual SecondRootStubAdapter, - public SecondRootDBusStubAdapterHelper -{ -public: - SecondRootDBusStubAdapterInternal( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub); - - ~SecondRootDBusStubAdapterInternal(); - - virtual const bool hasFreedesktopProperties(); - - - - bool registerManagedStubLeafInterface(std::shared_ptr, const std::string&); - bool deregisterManagedStubLeafInterface(const std::string&); - std::set& getLeafInterfaceInstances(); - - const SecondRootDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable(); - const CommonAPI::DBus::StubAttributeTable& getStubAttributeTable(); - - void deactivateManagedInstances(); - - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - SecondRootStub, - CommonAPI::Version - > getSecondRootInterfaceVersionStubDispatcher; - - - - - - - - protected: - virtual const char* getMethodsDBusIntrospectionXmlData() const; - - private: - std::set registeredLeafInterfaceInstances; - SecondRootDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; - CommonAPI::DBus::StubAttributeTable stubAttributeTable_; -}; - -class SecondRootDBusStubAdapter - : public SecondRootDBusStubAdapterInternal, - public std::enable_shared_from_this { -public: - SecondRootDBusStubAdapter( - const CommonAPI::DBus::DBusAddress &_address, - const std::shared_ptr &_connection, - const std::shared_ptr &_stub) - : CommonAPI::DBus::DBusStubAdapter( - _address, - _connection, - true), - SecondRootDBusStubAdapterInternal( - _address, - _connection, - _stub) { - } -}; - -} // namespace managed -} // namespace tests -} // namespace commonapi -} // namespace v1_0 - -#endif // COMMONAPI_TESTS_MANAGED_Second_Root_DBUS_STUB_ADAPTER_HPP_ -- cgit v1.2.1