summaryrefslogtreecommitdiff
path: root/enhanced-position-service/franca/src/gen/org/genivi/EnhancedPositionService/PositionFeedbackStubDefault.cpp
blob: f80e0d7120dd78f2c6e3055c50c1149a0e654272 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* This file was generated by the CommonAPI Generators.
* Used org.genivi.commonapi.core 2.1.6.v20140519.
* Used org.franca.core 0.8.11.201401091023.
*
* 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 <org/genivi/EnhancedPositionService/PositionFeedbackStubDefault.h>

namespace org {
namespace genivi {
namespace EnhancedPositionService {

PositionFeedbackStubDefault::PositionFeedbackStubDefault():
        remoteEventHandler_(this),
        interfaceVersion_(PositionFeedback::getInterfaceVersion()) {
}

const CommonAPI::Version& PositionFeedbackStubDefault::getInterfaceVersion(std::shared_ptr<CommonAPI::ClientId> clientId) {
    return interfaceVersion_;
}

PositionFeedbackStubRemoteEvent* PositionFeedbackStubDefault::initStubAdapter(const std::shared_ptr<PositionFeedbackStubAdapter>& stubAdapter) {
    CommonAPI::Stub<PositionFeedbackStubAdapter, PositionFeedbackStubRemoteEvent>::stubAdapter_ = stubAdapter;
    return &remoteEventHandler_;
}


/**
 * GetVersion = This method returns the API version implemented by the server
 *  application
 */
void PositionFeedbackStubDefault::GetVersion(const std::shared_ptr<CommonAPI::ClientId> clientId, EnhancedPositionServiceTypes::Version& version) {
    // Call old style methods in default 
    GetVersion(version);
}
void PositionFeedbackStubDefault::GetVersion(EnhancedPositionServiceTypes::Version& version) {
    // No operation in default
}

/**
 * SetPositionFeedback = This method allows a client application to provide the
 *  EnhancedPositionService with a position feedback
 */
void PositionFeedbackStubDefault::SetPositionFeedback(const std::shared_ptr<CommonAPI::ClientId> clientId, PositionFeedback::PositionFeedbackInfo feedback, uint64_t timestamp, EnhancedPositionServiceTypes::PositionFeedbackType feedbackType) {
    // Call old style methods in default 
    SetPositionFeedback(feedback, timestamp, feedbackType);
}
void PositionFeedbackStubDefault::SetPositionFeedback(PositionFeedback::PositionFeedbackInfo feedback, uint64_t timestamp, EnhancedPositionServiceTypes::PositionFeedbackType feedbackType) {
    // No operation in default
}




PositionFeedbackStubDefault::RemoteEventHandler::RemoteEventHandler(PositionFeedbackStubDefault* defaultStub):
        defaultStub_(defaultStub) {
}

} // namespace EnhancedPositionService
} // namespace genivi
} // namespace org