diff options
author | Jürgen Gehring <juergen.gehring@bmw.de> | 2015-06-17 05:12:07 -0700 |
---|---|---|
committer | Jürgen Gehring <juergen.gehring@bmw.de> | 2015-06-17 05:12:07 -0700 |
commit | 49d0b428ca19852d49965f35328a314f22d88807 (patch) | |
tree | 4b8d945f29cac4b4b599f79a872cc5029288f5c5 /src/test/src-gen/core/commonapi/tests/DerivedTypeCollection.cpp | |
parent | 54982071a99484488207ad3bd5e9391a15bffe02 (diff) | |
download | genivi-common-api-dbus-runtime-49d0b428ca19852d49965f35328a314f22d88807.tar.gz |
CommonAPI 3.1.23.1.2
Diffstat (limited to 'src/test/src-gen/core/commonapi/tests/DerivedTypeCollection.cpp')
-rw-r--r-- | src/test/src-gen/core/commonapi/tests/DerivedTypeCollection.cpp | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/test/src-gen/core/commonapi/tests/DerivedTypeCollection.cpp b/src/test/src-gen/core/commonapi/tests/DerivedTypeCollection.cpp new file mode 100644 index 0000000..f1e1b69 --- /dev/null +++ b/src/test/src-gen/core/commonapi/tests/DerivedTypeCollection.cpp @@ -0,0 +1,59 @@ +/* +* This file was generated by the CommonAPI Generators. +* Used org.genivi.commonapi.core 3.1.2.v201506150834. +* 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 "DerivedTypeCollection.hpp" + + +namespace commonapi { +namespace tests { + + +bool DerivedTypeCollection::TestStructExtended::operator==(const DerivedTypeCollection::TestStructExtended& _other) const { + return (getTestString() == _other.getTestString() && getUintValue() == _other.getUintValue() && getTestEnumExtended2() == _other.getTestEnumExtended2()); +} + + +bool DerivedTypeCollection::TestStruct::operator==(const DerivedTypeCollection::TestStruct& _other) const { + return (getTestString() == _other.getTestString() && getUintValue() == _other.getUintValue()); +} + +std::shared_ptr<DerivedTypeCollection::TestPolymorphicStruct> DerivedTypeCollection::TestPolymorphicStruct::create(CommonAPI::Serial _serial) { + switch (_serial) { + case DerivedTypeCollection::TESTPOLYMORPHICSTRUCT_SERIAL: + return std::make_shared<DerivedTypeCollection::TestPolymorphicStruct>(); + case DerivedTypeCollection::TESTEXTENDEDPOLYMORPHICSTRUCT_SERIAL: + return std::make_shared<DerivedTypeCollection::TestExtendedPolymorphicStruct>(); + default: + break; + } + return std::shared_ptr<DerivedTypeCollection::TestPolymorphicStruct>(); +} + +bool DerivedTypeCollection::TestPolymorphicStruct::operator==(const DerivedTypeCollection::TestPolymorphicStruct& _other) const { + return (getTestString() == _other.getTestString() && getUintValue() == _other.getUintValue()); +} + + +bool DerivedTypeCollection::TestExtendedPolymorphicStruct::operator==(const DerivedTypeCollection::TestExtendedPolymorphicStruct& _other) const { + return (getTestString() == _other.getTestString() && getUintValue() == _other.getUintValue() && getAdditionalValue() == _other.getAdditionalValue()); +} + + +bool DerivedTypeCollection::StructWithPolymorphicMember::operator==(const DerivedTypeCollection::StructWithPolymorphicMember& _other) const { + return (getNumberValue() == _other.getNumberValue() && getPolymorphicMember() == _other.getPolymorphicMember()); +} + + +bool DerivedTypeCollection::StructWithEnumKeyMap::operator==(const DerivedTypeCollection::StructWithEnumKeyMap& _other) const { + return (getTestMap() == _other.getTestMap()); +} + + +} // namespace tests +} // namespace commonapi |