Maps SDK for C++ 1.0.0
Loading...
Searching...
No Matches
gem::sense::DataSourceFactory Class Reference

Data source factory. More...

Static Public Member Functions

static StrongPointer< IDataSourceproduceLive ()
 Create a live sense data source (data coming from sensors).
static StrongPointer< IDataSourceproduceDummyPlayback ()
 Create a dummy playback datasource.
static StrongPointer< IDataSourceproduceLog (const String &path)
 Create a data source based on a log file.
static StrongPointer< IDataSourceproduceSimulation (const Route &route)
 Create a data source based on a route (a route simulation data source).
static StrongPointer< IDataSourceproduceExternal (DataSourcePtr dataSource)
 Create a data source based on an external data source ( EOrigin::External ).
static StrongPointer< IDataSourceproduceExternal (const DataTypeList &availableDataTypes)
 Create a data source based on an external data.

Detailed Description

Data source factory.

Deprecated, use instead produce___DataSource() functions

Member Function Documentation

◆ produceDummyPlayback()

StrongPointer< IDataSource > gem::sense::DataSourceFactory::produceDummyPlayback ( )
inlinestatic

Create a dummy playback datasource.

Next, the source of the data needs to be set by calling the methods setLogPath/setRoute.

Returns
The newly created data source.

◆ produceExternal() [1/2]

StrongPointer< IDataSource > gem::sense::DataSourceFactory::produceExternal ( const DataTypeList & availableDataTypes)
inlinestatic

Create a data source based on an external data.

Parameters
[in]availableDataTypesThe data types that will be pushed into the data source
Returns
The newly created data source.

◆ produceExternal() [2/2]

StrongPointer< IDataSource > gem::sense::DataSourceFactory::produceExternal ( DataSourcePtr dataSource)
inlinestatic

Create a data source based on an external data source ( EOrigin::External ).

The resulting data source will be able to provide improved positions for the navigation service

Parameters
[in]dataSourceThe external data source
Returns
The newly created data source.

◆ produceLive()

StrongPointer< IDataSource > gem::sense::DataSourceFactory::produceLive ( )
inlinestatic

Create a live sense data source (data coming from sensors).

Returns
The newly created data source.

◆ produceLog()

StrongPointer< IDataSource > gem::sense::DataSourceFactory::produceLog ( const String & path)
inlinestatic

Create a data source based on a log file.

Parameters
[in]pathThe path to the log file.
Returns
The newly created data source.

◆ produceSimulation()

StrongPointer< IDataSource > gem::sense::DataSourceFactory::produceSimulation ( const Route & route)
inlinestatic

Create a data source based on a route (a route simulation data source).

Parameters
[in]routeThe route used for generating data source data.
Returns
The newly created data source.