summaryrefslogtreecommitdiff
path: root/enhanced-position-service/franca/src/PositionFeedbackStubImpl.cpp
blob: 629268fc9dd244a8f2a64c9a868b162b1f87d62a (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
/**************************************************************************
* @licence app begin@
*
* SPDX-License-Identifier: MPL-2.0
*
* \ingroup EnhancedPositionService
* \author Marco Residori <marco.residori@xse.de>
*
* \copyright Copyright (C) 2014, XS Embedded GmbH
* 
* \license
* 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/.
*
* @licence end@
**************************************************************************/

#include "PositionFeedbackStubImpl.h"
#include "log.h"

//PositionFeedback-interface version
#define VER_MAJOR 3
#define VER_MINOR 0
#define VER_MICRO 0
#define VER_DATE "05-08-2014"

DLT_IMPORT_CONTEXT(gCtx);

PositionFeedbackStubImpl::PositionFeedbackStubImpl() {
}

PositionFeedbackStubImpl::~PositionFeedbackStubImpl() {
}

void PositionFeedbackStubImpl::GetVersion(EnhancedPositionServiceTypes::Version& version) {
    LOG_INFO_MSG(gCtx,"GetVersion");

    version.maj = VER_MAJOR;
    version.min = VER_MINOR;
    version.mic = VER_MICRO;
    version.date = std::string(VER_DATE);
}

void PositionFeedbackStubImpl::SetPositionFeedback(std::vector<PositionFeedback::PositionFeedbackInfo> feedback, uint64_t timestamp, EnhancedPositionServiceTypes::PositionFeedbackType feedbackType) {
    LOG_WARNING_MSG(gCtx,"Method not supported yet");
}

void PositionFeedbackStubImpl::run()
{
    LOG_INFO_MSG(gCtx,"Starting PositionFeedback dispatcher...");
}

void PositionFeedbackStubImpl::shutdown()
{
    LOG_INFO_MSG(gCtx,"Shutting down PositionFeedback dispatcher...");
}