1 /* Copyright (C) 2013 BMW Group
2 * Author: Manfred Bathelt (manfred.bathelt@bmw.de)
3 * Author: Juergen Gehring (juergen.gehring@bmw.de)
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef DEMO_POSITIONING_H_
8 #define DEMO_POSITIONING_H_
11 #include <common-api-dbus/dbus-serializable-struct.h>
20 struct TestStruct: public common::api::dbus::SerializableStruct {
21 TestStruct() = default;
22 TestStruct(const uint32_t& fromIntValue, const double& fromDoubleValue);
24 virtual common::api::dbus::DBusInputMessageStream& readFromDBusInputMessageStream(
25 common::api::dbus::DBusInputMessageStream& inputMessageStream);
27 virtual common::api::dbus::DBusOutputMessageStream& writeToDBusOutputMessageStream(
28 common::api::dbus::DBusOutputMessageStream& outputMessageStream) const;
35 struct TestStructExtended: public TestStruct {
36 TestStructExtended() = default;
38 TestStructExtended(const uint32_t& fromIntValue, const double& fromDoubleValue, const std::string& fromStringValue);
40 virtual common::api::dbus::DBusInputMessageStream& readFromDBusInputMessageStream(
41 common::api::dbus::DBusInputMessageStream& inputMessageStream);
43 virtual common::api::dbus::DBusOutputMessageStream& writeToDBusOutputMessageStream(
44 common::api::dbus::DBusOutputMessageStream& outputMessageStream) const;
46 std::string stringValue;
50 typedef std::vector<TestStruct> TestStructArray;
51 typedef std::vector<TestStructExtended> TestStructExtendedArray;
59 struct Alignment<common::api::test::TestStruct>: SizeConstant<8> { };
62 struct Alignment<common::api::test::TestStructExtended>: SizeConstant<8> { };
68 #endif /* DEMO_POSITIONING_H_ */