diff options
author | Dirk Huss <dirk_huss@mentor.com> | 2015-11-25 14:59:52 +0100 |
---|---|---|
committer | Dirk Huss <dirk_huss@mentor.com> | 2015-11-25 14:59:52 +0100 |
commit | faea5f299525500093843da72215d279c3eb483d (patch) | |
tree | 559a22a4f9844a4f8d04d8e39f37d04da797d1a0 /src/test/src-gen/core/v1/commonapi/tests/TestInterfaceManagerProxy.hpp | |
parent | db96446ece67ba1f495811e29838e8c7bc7984ff (diff) | |
download | genivi-common-api-dbus-runtime-faea5f299525500093843da72215d279c3eb483d.tar.gz |
CommonAPI-D-Bus 3.1.43.1.4
Diffstat (limited to 'src/test/src-gen/core/v1/commonapi/tests/TestInterfaceManagerProxy.hpp')
-rw-r--r-- | src/test/src-gen/core/v1/commonapi/tests/TestInterfaceManagerProxy.hpp | 131 |
1 files changed, 131 insertions, 0 deletions
diff --git a/src/test/src-gen/core/v1/commonapi/tests/TestInterfaceManagerProxy.hpp b/src/test/src-gen/core/v1/commonapi/tests/TestInterfaceManagerProxy.hpp new file mode 100644 index 0000000..d302418 --- /dev/null +++ b/src/test/src-gen/core/v1/commonapi/tests/TestInterfaceManagerProxy.hpp @@ -0,0 +1,131 @@ +/* +* This file was generated by the CommonAPI Generators. +* Used org.genivi.commonapi.core 3.1.4.v201511201311. +* 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_Manager_PROXY_HPP_ +#define COMMONAPI_TESTS_Test_Interface_Manager_PROXY_HPP_ + +#include <v1/commonapi/tests/TestInterfaceManagerProxyBase.hpp> + + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#define COMMONAPI_INTERNAL_COMPILATION +#endif + + +#undef COMMONAPI_INTERNAL_COMPILATION + +namespace v1 { +namespace commonapi { +namespace tests { + +template <typename ... _AttributeExtensions> +class TestInterfaceManagerProxy + : virtual public TestInterfaceManager, + virtual public TestInterfaceManagerProxyBase, + virtual public _AttributeExtensions... { +public: + TestInterfaceManagerProxy(std::shared_ptr<CommonAPI::Proxy> delegate); + ~TestInterfaceManagerProxy(); + + typedef TestInterfaceManager InterfaceType; + + + + + + virtual CommonAPI::ProxyManager& getProxyManagerTestInterface(); + + /** + * Returns the CommonAPI address of the remote partner this proxy communicates with. + */ + virtual const CommonAPI::Address &getAddress() const; + + /** + * Returns true if the remote partner for this proxy is currently known to be available. + */ + virtual bool isAvailable() const; + + /** + * Returns true if the remote partner for this proxy is available. + */ + virtual bool isAvailableBlocking() const; + + /** + * Returns the wrapper class that is used to (de-)register for notifications about + * the availability of the remote partner of this proxy. + */ + virtual CommonAPI::ProxyStatusEvent& getProxyStatusEvent(); + + /** + * Returns the wrapper class that is used to access version information of the remote + * partner of this proxy. + */ + virtual CommonAPI::InterfaceVersionAttribute& getInterfaceVersionAttribute(); + + private: + std::shared_ptr<TestInterfaceManagerProxyBase> delegate_; +}; + +typedef TestInterfaceManagerProxy<> TestInterfaceManagerProxyDefault; + + +// +// TestInterfaceManagerProxy Implementation +// +template <typename ... _AttributeExtensions> +TestInterfaceManagerProxy<_AttributeExtensions...>::TestInterfaceManagerProxy(std::shared_ptr<CommonAPI::Proxy> delegate): + _AttributeExtensions(*(std::dynamic_pointer_cast<TestInterfaceManagerProxyBase>(delegate)))..., + delegate_(std::dynamic_pointer_cast<TestInterfaceManagerProxyBase>(delegate)) { +} + +template <typename ... _AttributeExtensions> +TestInterfaceManagerProxy<_AttributeExtensions...>::~TestInterfaceManagerProxy() { +} + + +template <typename ... _AttributeExtensions> +const CommonAPI::Address &TestInterfaceManagerProxy<_AttributeExtensions...>::getAddress() const { + return delegate_->getAddress(); +} + +template <typename ... _AttributeExtensions> +bool TestInterfaceManagerProxy<_AttributeExtensions...>::isAvailable() const { + return delegate_->isAvailable(); +} + +template <typename ... _AttributeExtensions> +bool TestInterfaceManagerProxy<_AttributeExtensions...>::isAvailableBlocking() const { + return delegate_->isAvailableBlocking(); +} + +template <typename ... _AttributeExtensions> +CommonAPI::ProxyStatusEvent& TestInterfaceManagerProxy<_AttributeExtensions...>::getProxyStatusEvent() { + return delegate_->getProxyStatusEvent(); +} + +template <typename ... _AttributeExtensions> +CommonAPI::InterfaceVersionAttribute& TestInterfaceManagerProxy<_AttributeExtensions...>::getInterfaceVersionAttribute() { + return delegate_->getInterfaceVersionAttribute(); +} + +template <typename ... _AttributeExtensions> +CommonAPI::ProxyManager& TestInterfaceManagerProxy<_AttributeExtensions...>::getProxyManagerTestInterface() { + return delegate_->getProxyManagerTestInterface(); +} + +} // namespace tests +} // namespace commonapi +} // namespace v1 + + + +// Compatibility +namespace v1_0 = v1; + +#endif // COMMONAPI_TESTS_Test_Interface_Manager_PROXY_HPP_ |