|
Maps SDK for C++ 1.0.0
|
Provides information about a recorded log. More...


Classes | |
| struct | __allow_private_constructor |
Protected Types | |
| using | Base = ApiObject<ILogMetadata, false> |
| The base class. | |
Protected Member Functions | |
| LargeInteger | getStartTimestampInMillis () const |
| Retrieves the timestamp of the first recorded sensor data. | |
| LargeInteger | getEndTimestampInMillis () const |
| Retrieves the timestamp of the last recorded sensor data. | |
| int | getDurationMillis () const |
| Calculates the total duration of the recorded log. | |
| int | getActiveDurationMillis () const |
| The active time represents only the periods when recording was running, not including any paused intervals. | |
| Coordinates | getStartPosition () const |
| Retrieves the first recorded GPS position. | |
| Coordinates | getEndPosition () const |
| Retrieves the last recorded GPS position. | |
| ERecordingTransportMode | getTransportMode () const |
| Retrieves the transport mode used during the recording of the log. | |
| ActivityRecord | getActivityRecord () const |
| Retrieves the recorded activity details. | |
| RecordMetrics | getMetrics () const |
| Retrieves the record metrics. | |
| CoordinatesList | getRoute () const |
| Retrieves a shortened version of the recorded route. | |
| CoordinatesList | getPreciseRoute () const |
| Retrieves a detailed description of the recorded route. | |
| const SoundMarksListRef | getSoundMarks () const |
| Retrieves a list of recorded sound marks. | |
| const TextMarksListRef | getTextMarks () const |
| Retrieves a list of recorded text marks. | |
| const BitmapListRef | getBitmaps () const |
| Retrieves a list of recorded bitmaps. | |
| bool | isDataTypeAvailable (sense::EDataType type) const |
| Verifies if a specific data type has been recorded in the log file. | |
| sense::DataTypeList | getAvailableDataTypes () const |
| Retrieves a list of the data types recorded in the log file. | |
| bool | isUploaded () const |
| Checks if the log file has been uploaded to the server. | |
| bool | isProtected () const |
| This method verifies whether the log file is marked as protected. | |
| LargeUnsignedInteger | getLogSize () const |
| Retrieves the size of the log file. | |
| StrongPointer< DataBuffer > | getUserMetadata (const String &key) const |
| This method returns the metadata that was previously added using the AddUserMetadata method. | |
| bool | addUserMetadata (const String &key, const DataBuffer &dataBuffer) |
| Add or overwrite metadata associated with a specific key. | |
| bool | addUserMetadata (const std::map< String, DataBuffer > &userMetadataMap) |
| Add or overwrite multiple metadata entries at once. | |
| void | addActivityFiles (const std::vector< ActivityFile > &activityFiles) |
| Adds multiple activity files to the log metadata. | |
| const std::vector< ActivityFile > & | getActivityFiles () |
| Retrieves the list of activity files attached to the log. | |
Static Protected Member Functions | |
| static StrongPointer< LogMetadata > | produce (const String &filepath) |
| Creates a LogMetadata object for the specified log file. | |
Provides information about a recorded log.
|
inlineprotected |
Adds multiple activity files to the log metadata.
This method attaches a list of files (such as photos, videos, audio, or route files) to the current log. Each file is described by an ActivityFile structure, which includes its type, content, timestamp, and location.
| [in] | activityFiles | A vector of ActivityFile objects representing the files to be added to the log metadata. |
|
inlineprotected |
Add or overwrite multiple metadata entries at once.
This method takes a map of keys and associated data buffers, and stores each pair as metadata. For any key that already exists, the existing metadata will be overwritten.
| [in] | userMetadataMap | A map containing key–value pairs where the key identifies the metadata entry and the value is the associated data buffer. |
|
inlineprotected |
Add or overwrite metadata associated with a specific key.
This method stores the provided data buffer as metadata associated with the given key. If metadata already exists for the key, it will be overwritten with the new data.
| [in] | key | The key used to identify the metadata entry. |
| [in] | dataBuffer | The buffer containing the metadata to be stored. If the key already exists, the previous metadata will be replaced with this new data. |
|
inlineprotected |
The active time represents only the periods when recording was running, not including any paused intervals.
|
inlineprotected |
Retrieves the list of activity files attached to the log.
This method returns all files (such as photos, videos, audio, or route files) that were added to the current log using AddActivityFiles. Each file is described by an ActivityFile structure, including its type, content, timestamp, and location.
|
inlineprotected |
Retrieves the recorded activity details.
|
inlineprotected |
Retrieves a list of the data types recorded in the log file.
|
inlineprotected |
Retrieves a list of recorded bitmaps.
|
inlineprotected |
Calculates the total duration of the recorded log.
|
inlineprotected |
Retrieves the last recorded GPS position.
If the recorded log contains GPS data, this method returns the last valid sensor position. If no GPS data is recorded, it returns an invalid coordinate (0, 0).
|
inlineprotected |
Retrieves the timestamp of the last recorded sensor data.
|
inlineprotected |
Retrieves the size of the log file.
This method returns the size of the log file in bytes. The size is calculated based on the entire log content, including sensor data, metadata, and any additional recorded information.
|
inlineprotected |
Retrieves the record metrics.
|
inlineprotected |
Retrieves a detailed description of the recorded route.
This method returns the full list of GPS coordinates recorded during the log, including all available positions. It provides a precise and comprehensive representation of the route.
|
inlineprotected |
Retrieves a shortened version of the recorded route.
This method returns a concise list of GPS coordinates sampled from the recorded log. The positions are selected if either:
|
inlineprotected |
Retrieves a list of recorded sound marks.
|
inlineprotected |
Retrieves the first recorded GPS position.
If the recorded log contains GPS data, this method returns the first valid sensor position. If no GPS data is recorded, it returns an invalid coordinate (0, 0).
|
inlineprotected |
Retrieves the timestamp of the first recorded sensor data.
|
inlineprotected |
Retrieves a list of recorded text marks.
|
inlineprotected |
Retrieves the transport mode used during the recording of the log.
|
inlineprotected |
This method returns the metadata that was previously added using the AddUserMetadata method.
| [in] | key | The key associated with the metadata to be retrieved. |
|
inlineprotected |
Verifies if a specific data type has been recorded in the log file.
| [in] | type | The type to verify if it is available in the log file. |
|
inlineprotected |
This method verifies whether the log file is marked as protected.
A protected log file cannot be automatically deleted by the system, even if the maximum disk space usage is reached or the minimum retention time (in seconds) has passed. This ensures that the log file is preserved for further use or investigation.
|
inlineprotected |
Checks if the log file has been uploaded to the server.
This method verifies whether the log file has been successfully uploaded to the server. A log is considered as "uploaded" when it has been successfully transferred and stored on the server for further processing or storage.
|
inlinestaticprotected |
Creates a LogMetadata object for the specified log file.
| [in] | filepath | The file path of the log file for which metadata is to be created. |