/* * 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