/*
* This file was generated by the CommonAPI Generators.
*
-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/.
-
-Test workspace
+* 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 "DerivedTypeCollection.h"
-/* 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_DERIVED_TYPE_COLLECTION_H_
-#define COMMONAPI_TESTS_DERIVED_TYPE_COLLECTION_H_
+/*
+* This file was generated by the CommonAPI Generators.
+*
+* 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_Derived_Type_Collection_H_
+#define COMMONAPI_TESTS_Derived_Type_Collection_H_
#include <CommonAPI/InputStream.h>
#include <CommonAPI/OutputStream.h>
typedef std::unordered_map<uint32_t, TestArrayTestStruct> TestMap;
enum class TestEnum: int32_t {
- E_UNKNOWN = 0,
- E_OK = 1,
- E_OUT_OF_RANGE = 2,
- E_NOT_USED = 3
+ E_UNKNOWN = 0x0,
+ E_OK = 0x1,
+ E_OUT_OF_RANGE = 0x2,
+ E_NOT_USED = 0x3
};
// XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
E_OUT_OF_RANGE = TestEnum::E_OUT_OF_RANGE,
E_NOT_USED = TestEnum::E_NOT_USED
,
- E_NEW = 4
+ E_NEW = 0x4
};
// XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
E_NEW = TestEnumExtended::E_NEW
,
- E_NEW2 = 5
+ E_NEW2 = 0x5
};
// XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
typedef std::unordered_map<TestEnum, std::string> TestEnumMap;
enum class TestEnumMissingValue: int32_t {
- E1 = 10,
+ E1 = 0xa,
E2,
E3 = 2
};
};
-inline bool operator==(const TestEnumExtended2& lhs, const TestEnum& rhs) {
+inline bool operator==(const TestEnumExtended2& lhs, const DerivedTypeCollection::TestEnum& rhs) {
return static_cast<int32_t>(lhs) == static_cast<int32_t>(rhs);
}
-inline bool operator==(const TestEnum& lhs, const TestEnumExtended2& rhs) {
+inline bool operator==(const DerivedTypeCollection::TestEnum& lhs, const TestEnumExtended2& rhs) {
return static_cast<int32_t>(lhs) == static_cast<int32_t>(rhs);
-}
-inline bool operator!=(const TestEnumExtended2& lhs, const TestEnum& rhs) {
+}
+inline bool operator!=(const TestEnumExtended2& lhs, const DerivedTypeCollection::TestEnum& rhs) {
return static_cast<int32_t>(lhs) != static_cast<int32_t>(rhs);
}
-inline bool operator!=(const TestEnum& lhs, const TestEnumExtended2& rhs) {
+inline bool operator!=(const DerivedTypeCollection::TestEnum& lhs, const TestEnumExtended2& rhs) {
return static_cast<int32_t>(lhs) != static_cast<int32_t>(rhs);
-}
+}
-inline bool operator==(const TestEnumExtended2& lhs, const TestEnumExtended& rhs) {
+inline bool operator==(const TestEnumExtended2& lhs, const DerivedTypeCollection::TestEnumExtended& rhs) {
return static_cast<int32_t>(lhs) == static_cast<int32_t>(rhs);
}
-inline bool operator==(const TestEnumExtended& lhs, const TestEnumExtended2& rhs) {
+inline bool operator==(const DerivedTypeCollection::TestEnumExtended& lhs, const TestEnumExtended2& rhs) {
return static_cast<int32_t>(lhs) == static_cast<int32_t>(rhs);
-}
-inline bool operator!=(const TestEnumExtended2& lhs, const TestEnumExtended& rhs) {
+}
+inline bool operator!=(const TestEnumExtended2& lhs, const DerivedTypeCollection::TestEnumExtended& rhs) {
return static_cast<int32_t>(lhs) != static_cast<int32_t>(rhs);
}
-inline bool operator!=(const TestEnumExtended& lhs, const TestEnumExtended2& rhs) {
+inline bool operator!=(const DerivedTypeCollection::TestEnumExtended& lhs, const TestEnumExtended2& rhs) {
return static_cast<int32_t>(lhs) != static_cast<int32_t>(rhs);
-}
+}
inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, TestEnumMissingValue& enumValue) {
return inputStream.readEnumValue<int32_t>(enumValue);
}
};
-inline bool operator==(const TestEnumExtended& lhs, const TestEnum& rhs) {
+inline bool operator==(const TestEnumExtended& lhs, const DerivedTypeCollection::TestEnum& rhs) {
return static_cast<int32_t>(lhs) == static_cast<int32_t>(rhs);
}
-inline bool operator==(const TestEnum& lhs, const TestEnumExtended& rhs) {
+inline bool operator==(const DerivedTypeCollection::TestEnum& lhs, const TestEnumExtended& rhs) {
return static_cast<int32_t>(lhs) == static_cast<int32_t>(rhs);
-}
-inline bool operator!=(const TestEnumExtended& lhs, const TestEnum& rhs) {
+}
+inline bool operator!=(const TestEnumExtended& lhs, const DerivedTypeCollection::TestEnum& rhs) {
return static_cast<int32_t>(lhs) != static_cast<int32_t>(rhs);
}
-inline bool operator!=(const TestEnum& lhs, const TestEnumExtended& rhs) {
+inline bool operator!=(const DerivedTypeCollection::TestEnum& lhs, const TestEnumExtended& rhs) {
return static_cast<int32_t>(lhs) != static_cast<int32_t>(rhs);
-}
+}
bool operator==(const TestStruct& lhs, const TestStruct& rhs);
inline bool operator!=(const TestStruct& lhs, const TestStruct& rhs) {
return !(lhs == rhs);
namespace std {
+ //Hash for TestEnum
template<>
struct hash<commonapi::tests::DerivedTypeCollection::TestEnum> {
inline size_t operator()(const commonapi::tests::DerivedTypeCollection::TestEnum& testEnum) const {
return static_cast<int32_t>(testEnum);
}
};
+ //Hash for TestEnumExtended2
template<>
struct hash<commonapi::tests::DerivedTypeCollection::TestEnumExtended2> {
inline size_t operator()(const commonapi::tests::DerivedTypeCollection::TestEnumExtended2& testEnumExtended2) const {
return static_cast<int32_t>(testEnumExtended2);
}
};
+ //Hash for TestEnumMissingValue
template<>
struct hash<commonapi::tests::DerivedTypeCollection::TestEnumMissingValue> {
inline size_t operator()(const commonapi::tests::DerivedTypeCollection::TestEnumMissingValue& testEnumMissingValue) const {
return static_cast<int32_t>(testEnumMissingValue);
}
};
+ //Hash for TestEnumExtended
template<>
struct hash<commonapi::tests::DerivedTypeCollection::TestEnumExtended> {
inline size_t operator()(const commonapi::tests::DerivedTypeCollection::TestEnumExtended& testEnumExtended) const {
};
}
-#endif // COMMONAPI_TESTS_DERIVED_TYPE_COLLECTION_H_
+#endif // COMMONAPI_TESTS_Derived_Type_Collection_H_
/*
* This file was generated by the CommonAPI Generators.
*
-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/.
-
-Test workspace
+* 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_Predefined_Type_Collection_H_
#define COMMONAPI_TESTS_Predefined_Type_Collection_H_
/*
* This file was generated by the CommonAPI Generators.
*
-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/.
-
-Test workspace
+* 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_H_
#define COMMONAPI_TESTS_Test_Interface_H_
-/* 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 file was generated by the CommonAPI Generators.
+*
+* 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 "TestInterfaceDBusProxy.h"
#include <CommonAPI/types.h>
/*
* This file was generated by the CommonAPI Generators.
*
-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/.
-
-Test workspace
+* 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_H_
#define COMMONAPI_TESTS_Test_Interface_DBUS_PROXY_H_
-/* 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 file was generated by the CommonAPI Generators.
+*
+* 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 "TestInterfaceDBusStubAdapter.h"
#include <commonapi/tests/TestInterface.h>
#include <CommonAPI/types.h>
}
INITIALIZER(registerTestInterfaceDBusStubAdapter) {
- CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(TestInterface::getInterfaceId(), &createTestInterfaceDBusStubAdapter);
+ CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(TestInterface::getInterfaceId(),
+ &createTestInterfaceDBusStubAdapter);
}
TestInterfaceDBusStubAdapter::TestInterfaceDBusStubAdapter(
std::tuple<DerivedTypeCollection::TestEnumExtended2, DerivedTypeCollection::TestMap>
> testDerivedTypeMethodStubDispatcher(&TestInterfaceStub::testDerivedTypeMethod, "ia{ua(sq)}");
+
void TestInterfaceDBusStubAdapter::fireTestPredefinedTypeAttributeAttributeChanged(const uint32_t& value) {
CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<uint32_t>>
::sendSignal(
template<>
const commonapi::tests::TestInterfaceDBusStubAdapterHelper::StubDispatcherTable commonapi::tests::TestInterfaceDBusStubAdapterHelper::stubDispatcherTable_ = {
- { { "getTestPredefinedTypeAttributeAttribute", "" }, &commonapi::tests::getTestPredefinedTypeAttributeAttributeStubDispatcher }
- , { { "setTestPredefinedTypeAttributeAttribute", "u" }, &commonapi::tests::setTestPredefinedTypeAttributeAttributeStubDispatcher },
- { { "getTestDerivedStructAttributeAttribute", "" }, &commonapi::tests::getTestDerivedStructAttributeAttributeStubDispatcher }
- , { { "setTestDerivedStructAttributeAttribute", "(sqi)" }, &commonapi::tests::setTestDerivedStructAttributeAttributeStubDispatcher },
- { { "getTestDerivedArrayAttributeAttribute", "" }, &commonapi::tests::getTestDerivedArrayAttributeAttributeStubDispatcher }
- , { { "setTestDerivedArrayAttributeAttribute", "at" }, &commonapi::tests::setTestDerivedArrayAttributeAttributeStubDispatcher }
- ,
- { { "testEmptyMethod", "" }, &commonapi::tests::testEmptyMethodStubDispatcher },
- { { "testVoidPredefinedTypeMethod", "us" }, &commonapi::tests::testVoidPredefinedTypeMethodStubDispatcher },
- { { "testPredefinedTypeMethod", "us" }, &commonapi::tests::testPredefinedTypeMethodStubDispatcher },
- { { "testVoidDerivedTypeMethod", "ia{ua(sq)}" }, &commonapi::tests::testVoidDerivedTypeMethodStubDispatcher },
- { { "testDerivedTypeMethod", "ia{ua(sq)}" }, &commonapi::tests::testDerivedTypeMethodStubDispatcher }
+ { { "getTestPredefinedTypeAttributeAttribute", "" }, &commonapi::tests::getTestPredefinedTypeAttributeAttributeStubDispatcher }
+ , { { "setTestPredefinedTypeAttributeAttribute", "u" }, &commonapi::tests::setTestPredefinedTypeAttributeAttributeStubDispatcher },
+ { { "getTestDerivedStructAttributeAttribute", "" }, &commonapi::tests::getTestDerivedStructAttributeAttributeStubDispatcher }
+ , { { "setTestDerivedStructAttributeAttribute", "(sqi)" }, &commonapi::tests::setTestDerivedStructAttributeAttributeStubDispatcher },
+ { { "getTestDerivedArrayAttributeAttribute", "" }, &commonapi::tests::getTestDerivedArrayAttributeAttributeStubDispatcher }
+ , { { "setTestDerivedArrayAttributeAttribute", "at" }, &commonapi::tests::setTestDerivedArrayAttributeAttributeStubDispatcher }
+ ,
+ { { "testEmptyMethod", "" }, &commonapi::tests::testEmptyMethodStubDispatcher },
+ { { "testVoidPredefinedTypeMethod", "us" }, &commonapi::tests::testVoidPredefinedTypeMethodStubDispatcher },
+ { { "testPredefinedTypeMethod", "us" }, &commonapi::tests::testPredefinedTypeMethodStubDispatcher },
+ { { "testVoidDerivedTypeMethod", "ia{ua(sq)}" }, &commonapi::tests::testVoidDerivedTypeMethodStubDispatcher },
+ { { "testDerivedTypeMethod", "ia{ua(sq)}" }, &commonapi::tests::testDerivedTypeMethodStubDispatcher }
};
/*
* This file was generated by the CommonAPI Generators.
*
-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/.
-
-Test workspace
+* 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_H_
#define COMMONAPI_TESTS_Test_Interface_DBUS_STUB_ADAPTER_H_
-/* 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_
+/*
+* This file was generated by the CommonAPI Generators.
+*
+* 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_
#include "TestInterfaceProxyBase.h"
#include <CommonAPI/AttributeExtension.h>
static_assert(std::is_base_of<typename CommonAPI::AttributeExtension<TestInterfaceProxyBase::TestPredefinedTypeAttributeAttribute>, extension_type>::value,
"Not CommonAPI Attribute Extension!");
-
-#ifdef WIN32
+ #ifdef WIN32
TestPredefinedTypeAttributeAttributeExtension() {};
-#endif
- TestPredefinedTypeAttributeAttributeExtension(TestInterfaceProxyBase& proxy): attributeExtension_(proxy.getTestPredefinedTypeAttributeAttribute()) {
+ #endif
+ TestPredefinedTypeAttributeAttributeExtension(TestInterfaceProxyBase& proxy): attributeExtension_(proxy.getTestPredefinedTypeAttributeAttribute()) {
}
inline extension_type& getTestPredefinedTypeAttributeAttributeExtension() {
static_assert(std::is_base_of<typename CommonAPI::AttributeExtension<TestInterfaceProxyBase::TestDerivedStructAttributeAttribute>, extension_type>::value,
"Not CommonAPI Attribute Extension!");
-#ifdef WIN32
- TestDerivedStructAttributeAttributeExtension() {};
-#endif
- TestDerivedStructAttributeAttributeExtension(TestInterfaceProxyBase& proxy): attributeExtension_(proxy.getTestDerivedStructAttributeAttribute()) {
+ #ifdef WIN32
+ TestDerivedStructAttributeAttributeExtension() {};
+ #endif
+ TestDerivedStructAttributeAttributeExtension(TestInterfaceProxyBase& proxy): attributeExtension_(proxy.getTestDerivedStructAttributeAttribute()) {
}
inline extension_type& getTestDerivedStructAttributeAttributeExtension() {
static_assert(std::is_base_of<typename CommonAPI::AttributeExtension<TestInterfaceProxyBase::TestDerivedArrayAttributeAttribute>, extension_type>::value,
"Not CommonAPI Attribute Extension!");
-#ifdef WIN32
- TestDerivedArrayAttributeAttributeExtension() {};
-#endif
- TestDerivedArrayAttributeAttributeExtension(TestInterfaceProxyBase& proxy): attributeExtension_(proxy.getTestDerivedArrayAttributeAttribute()) {
+ #ifdef WIN32
+ TestDerivedArrayAttributeAttributeExtension() {};
+ #endif
+ TestDerivedArrayAttributeAttributeExtension(TestInterfaceProxyBase& proxy): attributeExtension_(proxy.getTestDerivedArrayAttributeAttribute()) {
}
inline extension_type& getTestDerivedArrayAttributeAttributeExtension() {
#ifndef WIN32
, _AttributeExtensions(*(std::dynamic_pointer_cast<TestInterfaceProxyBase>(delegate)))...
#endif
-{}
+{ }
template <typename ... _AttributeExtensions>
TestInterfaceProxy<_AttributeExtensions...>::~TestInterfaceProxy() {
}
-#endif // COMMONAPI_TESTS_TEST_INTERFACE_PROXY_H_
+#endif // COMMONAPI_TESTS_Test_Interface_PROXY_H_
-/* 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_BASE_H_
-#define COMMONAPI_TESTS_TEST_INTERFACE_PROXY_BASE_H_
+/*
+* This file was generated by the CommonAPI Generators.
+*
+* 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_BASE_H_
+#define COMMONAPI_TESTS_Test_Interface_PROXY_BASE_H_
#include "TestInterface.h"
#include <unordered_map>
virtual std::future<CommonAPI::CallStatus> testDerivedTypeMethodAsync(const DerivedTypeCollection::TestEnumExtended2& testEnumExtended2InValue, const DerivedTypeCollection::TestMap& testMapInValue, TestDerivedTypeMethodAsyncCallback callback) = 0;
};
-
} // namespace tests
} // namespace commonapi
-#endif // COMMONAPI_TESTS_TEST_INTERFACE_PROXY_BASE_H_
+#endif // COMMONAPI_TESTS_Test_Interface_PROXY_BASE_H_
-/* 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_STUB_H_
-#define COMMONAPI_TESTS_TEST_INTERFACE_STUB_H_
+/*
+* This file was generated by the CommonAPI Generators.
+*
+* 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_STUB_H_
+#define COMMONAPI_TESTS_Test_Interface_STUB_H_
#include <unordered_map>
#include <cstdint>
} // namespace tests
} // namespace commonapi
-#endif // COMMONAPI_TESTS_TEST_INTERFACE_STUB_H_
+#endif // COMMONAPI_TESTS_Test_Interface_STUB_H_
/*
* This file was generated by the CommonAPI Generators.
*
-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/.
-
-Test workspace
+* 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 <commonapi/tests/TestInterfaceStubDefault.h>
/*
* This file was generated by the CommonAPI Generators.
*
-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/.
-
-Test workspace
+* 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_STUB_DEFAULT_H_
#define COMMONAPI_TESTS_Test_Interface_STUB_DEFAULT_H_