diff options
Diffstat (limited to 'src/test/commonapi/tests/TestInterfaceProxy.h')
-rw-r--r-- | src/test/commonapi/tests/TestInterfaceProxy.h | 80 |
1 files changed, 58 insertions, 22 deletions
diff --git a/src/test/commonapi/tests/TestInterfaceProxy.h b/src/test/commonapi/tests/TestInterfaceProxy.h index e206944..3aede95 100644 --- a/src/test/commonapi/tests/TestInterfaceProxy.h +++ b/src/test/commonapi/tests/TestInterfaceProxy.h @@ -1,9 +1,11 @@ /* -* This file was generated by the CommonAPI Generators. +* This file was generated by the CommonAPI Generators. +* Used org.genivi.commonapi.core 2.1.0.qualifier. +* Used org.franca.core 0.8.9.201308271211. * -* 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/. +* 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_PROXY_H_ #define COMMONAPI_TESTS_Test_Interface_PROXY_H_ @@ -28,28 +30,40 @@ class TestInterfaceProxy: virtual public TestInterface, virtual public TestInter TestInterfaceProxy(std::shared_ptr<CommonAPI::Proxy> delegate); ~TestInterfaceProxy(); - /// Returns the wrapper class that provides access to the attribute TestPredefinedTypeAttribute. + /** + * Returns the wrapper class that provides access to the attribute TestPredefinedTypeAttribute. + */ virtual TestPredefinedTypeAttributeAttribute& getTestPredefinedTypeAttributeAttribute() { return delegate_->getTestPredefinedTypeAttributeAttribute(); } - /// Returns the wrapper class that provides access to the attribute TestDerivedStructAttribute. + /** + * Returns the wrapper class that provides access to the attribute TestDerivedStructAttribute. + */ virtual TestDerivedStructAttributeAttribute& getTestDerivedStructAttributeAttribute() { return delegate_->getTestDerivedStructAttributeAttribute(); } - /// Returns the wrapper class that provides access to the attribute TestDerivedArrayAttribute. + /** + * Returns the wrapper class that provides access to the attribute TestDerivedArrayAttribute. + */ virtual TestDerivedArrayAttributeAttribute& getTestDerivedArrayAttributeAttribute() { return delegate_->getTestDerivedArrayAttributeAttribute(); } - // Returns the wrapper class that provides access to the broadcast TestPredefinedTypeBroadcast. + /** + * Returns the wrapper class that provides access to the broadcast TestPredefinedTypeBroadcast. + */ virtual TestPredefinedTypeBroadcastEvent& getTestPredefinedTypeBroadcastEvent() { return delegate_->getTestPredefinedTypeBroadcastEvent(); } - // Returns the wrapper class that provides access to the broadcast TestSelectiveBroadcast. + /** + * Returns the wrapper class that provides access to the broadcast TestSelectiveBroadcast. + */ virtual TestSelectiveBroadcastSelectiveEvent& getTestSelectiveBroadcastSelectiveEvent() { return delegate_->getTestSelectiveBroadcastSelectiveEvent(); } - // Returns the wrapper class that provides access to the broadcast TestBroadcastWithOutArgs. + /** + * Returns the wrapper class that provides access to the broadcast TestBroadcastWithOutArgs. + */ virtual TestBroadcastWithOutArgsSelectiveEvent& getTestBroadcastWithOutArgsSelectiveEvent() { return delegate_->getTestBroadcastWithOutArgsSelectiveEvent(); } @@ -76,7 +90,7 @@ class TestInterfaceProxy: virtual public TestInterface, virtual public TestInter /** * Calls testVoidPredefinedTypeMethod with synchronous semantics. * - * All const parameters are input parameters to this method. + * All const parameters are input parameters to this method. * The CallStatus will be filled when the method returns and indicate either * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus * will be set. @@ -96,8 +110,8 @@ class TestInterfaceProxy: virtual public TestInterface, virtual public TestInter /** * Calls testPredefinedTypeMethod with synchronous semantics. * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. + * All const parameters are input parameters to this method. + * All non-const parameters will be filled with the returned values. * The CallStatus will be filled when the method returns and indicate either * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus * will be set. @@ -117,7 +131,7 @@ class TestInterfaceProxy: virtual public TestInterface, virtual public TestInter /** * Calls testVoidDerivedTypeMethod with synchronous semantics. * - * All const parameters are input parameters to this method. + * All const parameters are input parameters to this method. * The CallStatus will be filled when the method returns and indicate either * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus * will be set. @@ -137,8 +151,8 @@ class TestInterfaceProxy: virtual public TestInterface, virtual public TestInter /** * Calls testDerivedTypeMethod with synchronous semantics. * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. + * All const parameters are input parameters to this method. + * All non-const parameters will be filled with the returned values. * The CallStatus will be filled when the method returns and indicate either * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus * will be set. @@ -155,23 +169,39 @@ class TestInterfaceProxy: virtual public TestInterface, virtual public TestInter * It will provide the same value for CallStatus as will be handed to the callback. */ virtual std::future<CommonAPI::CallStatus> testDerivedTypeMethodAsync(const DerivedTypeCollection::TestEnumExtended2& testEnumExtended2InValue, const DerivedTypeCollection::TestMap& testMapInValue, TestDerivedTypeMethodAsyncCallback callback); + - /// Returns the CommonAPI address of the remote partner this proxy communicates with. + /** + * Returns the CommonAPI address of the remote partner this proxy communicates with. + */ virtual std::string getAddress() const; - /// Returns the domain of the remote partner this proxy communicates with. + /** + * Returns the domain of the remote partner this proxy communicates with. + */ virtual const std::string& getDomain() const; - /// Returns the service ID of the remote partner this proxy communicates with. + /** + * Returns the service ID of the remote partner this proxy communicates with. + */ virtual const std::string& getServiceId() const; - /// Returns the instance ID of the remote partner this proxy communicates with. + /** + * Returns the instance ID of the remote partner this proxy communicates with. + */ virtual const std::string& getInstanceId() const; - /// Returns true if the remote partner for this proxy is available. + /** + * 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. */ @@ -332,6 +362,11 @@ bool TestInterfaceProxy<_AttributeExtensions...>::isAvailable() const { } template <typename ... _AttributeExtensions> +bool TestInterfaceProxy<_AttributeExtensions...>::isAvailableBlocking() const { + return delegate_->isAvailableBlocking(); +} + +template <typename ... _AttributeExtensions> CommonAPI::ProxyStatusEvent& TestInterfaceProxy<_AttributeExtensions...>::getProxyStatusEvent() { return delegate_->getProxyStatusEvent(); } @@ -341,6 +376,8 @@ CommonAPI::InterfaceVersionAttribute& TestInterfaceProxy<_AttributeExtensions... return delegate_->getInterfaceVersionAttribute(); } + + } // namespace tests } // namespace commonapi @@ -356,5 +393,4 @@ struct DefaultAttributeProxyFactoryHelper<commonapi::tests::TestInterfaceProxy, }; } - #endif // COMMONAPI_TESTS_Test_Interface_PROXY_H_ |