|
Maps SDK for C++ 1.0.0
|
Through this interface data can be obtained from sensors, log files or any other means. More...


Public Member Functions | |
| virtual | ~IDataSource ()=default |
| Default destructor. | |
| virtual int | stop ()=0 |
| Stop the source. | |
| virtual int | start ()=0 |
| Start the source. | |
| virtual bool | isStopped () const =0 |
| Check if source is paused. | |
| virtual EDataSourceType | getDataSourceType () const =0 |
| virtual bool | isDataTypeAvailable (EDataType type) const =0 |
| Test if a data type is provided by the data source. | |
| virtual String | getDataTypeDescription (EDataType type) const =0 |
| virtual DataTypeList | getAvailableDataTypes () const =0 |
| virtual DataPtr | getLatestData (EDataType dataType) const =0 |
| virtual int | setConfiguration (EDataType type, DataTypeConfigPtr config) |
| Update the configuration for the specified type. | |
| virtual DataTypeConfigPtr | getConfiguration (EDataType type) const |
| Provide access to the current configuration specified to that data type. | |
| virtual int | setPreferences (EDataType type, const ParameterList &preferences)=0 |
| Update the configuration for the specified type. | |
| virtual SearchableParameterList | getPreferences (EDataType type) const =0 |
| Provide access to the current configuration specified to that data type. | |
| virtual int | addListener (DataSourceListener listener, EDataType dataType, const ParameterList &preferences=ParameterList(), bool critical=false)=0 |
| Add a listener to a specific 'dataType'. | |
| virtual int | removeListener (DataSourceListener listener, EDataType dataType)=0 |
| Remove the listener. | |
| virtual void | removeListener (DataSourceListener listener)=0 |
| Remove the listener for all available data types. | |
| virtual EOrigin | getOrigin () const |
| virtual PlaybackPtr | getPlayback ()=0 |
| Get the playback interface. | |
| virtual int | setMockData (EDataType type, DataPtr data) |
| Set mock data. | |
| virtual bool | isMockData (EDataType type) const |
| Check if mock data is enabled for the given type. | |
| virtual bool | isSDKInstance () const |
| Test if this is an SDK instance. | |
| virtual bool | pushData (DataPtr data) |
| Push new data. | |
Through this interface data can be obtained from sensors, log files or any other means.
|
pure virtual |
Add a listener to a specific 'dataType'.
| listener | The listener. |
| dataType | Type of the data. |
| preferences | Preferences for specified data type. |
| critical | Notification critical property. |
If critical is true, the notification will be sent immediately from sensor thread
If critical is false, the notification will be sent when API timer ticks
|
pure virtual |
|
inlinevirtual |
Provide access to the current configuration specified to that data type.
| type | The data type for which the configuration will be returned. |
|
pure virtual |
| type | The data type. |
|
pure virtual |
| dataType | Type of the data. |
|
inlinevirtual |
|
pure virtual |
Get the playback interface.
If data source has no playback capabilities the interface return 0
|
pure virtual |
Provide access to the current configuration specified to that data type.
| type | The data type for which the preferences will be returned. |
|
pure virtual |
Test if a data type is provided by the data source.
| type | The data type. |
|
inlinevirtual |
Check if mock data is enabled for the given type.
| [in] | type | Type of the data. |
|
inlinevirtual |
Test if this is an SDK instance.
|
pure virtual |
Check if source is paused.
|
inlinevirtual |
Push new data.
| [in] | data | to be pushed. |
|
pure virtual |
Remove the listener for all available data types.
| listener | The listener. |
|
pure virtual |
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
|
pure virtual |