-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathExternalGpsSource.h
41 lines (33 loc) · 1.19 KB
/
ExternalGpsSource.h
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
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "NamedSignalDataSource.h"
#include <memory>
#include <string>
namespace Aws
{
namespace IoTFleetWise
{
class ExternalGpsSource
{
public:
/**
* @param namedSignalDataSource Named signal data source
* @param latitudeSignalName the signal name of the latitude signal
* @param longitudeSignalName the signal name of the longitude signal
*/
ExternalGpsSource( std::shared_ptr<NamedSignalDataSource> namedSignalDataSource,
std::string latitudeSignalName,
std::string longitudeSignalName );
void setLocation( double latitude, double longitude );
static constexpr const char *LATITUDE_SIGNAL_NAME = "latitudeSignalName";
static constexpr const char *LONGITUDE_SIGNAL_NAME = "longitudeSignalName";
private:
static bool validLatitude( double latitude );
static bool validLongitude( double longitude );
std::shared_ptr<NamedSignalDataSource> mNamedSignalDataSource;
std::string mLatitudeSignalName;
std::string mLongitudeSignalName;
};
} // namespace IoTFleetWise
} // namespace Aws