summaryrefslogtreecommitdiff
path: root/src/test/src-gen/core/commonapi/tests/DerivedTypeCollection.cpp
blob: 9f4fc7e0bdf2840bb3b23194bc54c82eb6af336a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* This file was generated by the CommonAPI Generators.
* Used org.genivi.commonapi.core 3.1.5.v201512091035.
* 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 {



std::shared_ptr<DerivedTypeCollection::TestPolymorphicStruct> DerivedTypeCollection::TestPolymorphicStruct::create(CommonAPI::Serial _serial) {
	switch (_serial) {
	case DerivedTypeCollection::TESTPOLYMORPHICSTRUCT_SERIAL:
		return std::make_shared<DerivedTypeCollection::TestPolymorphicStruct>();
	case TESTEXTENDEDPOLYMORPHICSTRUCT_SERIAL:
		return std::make_shared<DerivedTypeCollection::TestExtendedPolymorphicStruct>();
	default:
		break;
	}
	return std::shared_ptr<DerivedTypeCollection::TestPolymorphicStruct>();
}





} // namespace tests
} // namespace commonapi