~thomas-voss/location-service/enable-gnd-messages

« back to all changes in this revision

Viewing changes to src/location/providers/dummy/provider.h

Merge lp:~thomas-voss/location-service/forward-command-line-parameters-to-providers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#define LOCATION_PROVIDERS_DUMMY_PROVIDER_H_
20
20
 
21
21
#include <location/provider.h>
22
 
#include <location/provider_factory.h>
 
22
#include <location/provider_registry.h>
23
23
 
24
24
#include <thread>
25
25
 
37
37
    {
38
38
        static constexpr const char* update_period
39
39
        {
40
 
            "UpdatePeriodInMs"
 
40
            "dummy.provider.update_period"
41
41
        };
42
42
        static constexpr const char* reference_position_lat
43
43
        {
44
 
            "ReferenceLocationLat"
 
44
            "dummy.provider.ref.lat"
45
45
        };
46
46
        static constexpr const char* reference_position_lon
47
47
        {
48
 
            "ReferenceLocationLon"
 
48
            "dummy.provider.ref.lon"
49
49
        };
50
50
        static constexpr const char* reference_position_alt
51
51
        {
52
 
            "ReferenceLocationAlt"
 
52
            "dummy.provider.ref.alt"
53
53
        };
54
54
        static constexpr const char* reference_horizontal_accuracy
55
55
        {
56
 
            "ReferenceHorizontalAccuracy"
 
56
            "dummy.provider.acc.hor"
57
57
        };
58
58
        static constexpr const char* reference_vertical_accuracy
59
59
        {
60
 
            "ReferenceVerticalAccuracy"
 
60
            "dummy.provider.acc.ver"
61
61
        };
62
62
        static constexpr const char* reference_velocity
63
63
        {
64
 
            "ReferenceVelocity"
 
64
            "dummy.provider.ref.sog"
65
65
        };
66
66
        static constexpr const char* reference_heading
67
67
        {
68
 
            "ReferenceHeading"
 
68
            "dummy.provider.ref.cog"
69
69
        };
70
70
    };
71
71
 
92
92
{
93
93
  public:
94
94
    // For integration with the Provider factory.
95
 
    static std::string class_name();
 
95
    static void add_to_registry();
96
96
    // Instantiates a new provider instance, populating the configuration object
97
97
    // from the provided property bundle. Please see dummy::Configuration::Keys
98
98
    // for the list of known options.
99
 
    static Provider::Ptr create_instance(const ProviderFactory::Configuration&);
 
99
    static Provider::Ptr create_instance(const ProviderRegistry::Configuration&);
100
100
 
101
101
    // Creates a new provider instance from the given configuration.
102
102
    Provider(const Configuration& config = Configuration{});