|
Sen API
Sen Libraries
|
Allows you to access an existing recording in the file system. More...
#include <input.h>
Public Member Functions | |
| Input (std::filesystem::path path, CustomTypeRegistry &nativeTypes) | |
| ~Input () | |
| const std::filesystem::path & | getPath () const noexcept |
| The folder where this archive is stored. | |
| const Summary & | getSummary () const noexcept |
| Summary data of this archive. | |
| const CustomTypeRegistry & | getTypes () const noexcept |
| Types available in this archive. | |
| DataCursor | begin () |
| Creates a cursor to the start of the runtime data. | |
| AnnotationCursor | annotationsBegin () |
| Creates a cursor to the start of the annotations. | |
| DataCursor | at (const KeyframeIndex &index) |
| Creates a cursor located at a given keyframe. | |
| DataCursor | makeCursor (const ObjectIndexDef &indexDef) |
| Creates a cursor that only iterates over the data related to an object. | |
| void | addAnnotation (TimeStamp time, const Type *type, std::vector< uint8_t > &&value) |
| Adds an annotation. Does not change the file summary. | |
| Span< const ObjectIndexDef > | getObjectIndexDefinitions () |
| The objects that have been indexed. | |
| Span< const KeyframeIndex > | getAllKeyframeIndexes () |
| The keyframes that were indexed (if any). | |
| std::optional< KeyframeIndex > | getKeyframeIndex (TimeStamp time) |
| The closest keyframe to a given time. | |
Allows you to access an existing recording in the file system.
| sen::db::Input::Input | ( | std::filesystem::path | path, |
| CustomTypeRegistry & | nativeTypes ) |
| sen::db::Input::~Input | ( | ) |
|
nodiscardnoexcept |
The folder where this archive is stored.
|
nodiscardnoexcept |
Summary data of this archive.
|
nodiscardnoexcept |
Types available in this archive.
|
nodiscard |
Creates a cursor to the start of the runtime data.
|
nodiscard |
Creates a cursor to the start of the annotations.
|
nodiscard |
Creates a cursor located at a given keyframe.
|
nodiscard |
Creates a cursor that only iterates over the data related to an object.
| void sen::db::Input::addAnnotation | ( | TimeStamp | time, |
| const Type * | type, | ||
| std::vector< uint8_t > && | value ) |
Adds an annotation. Does not change the file summary.
|
nodiscard |
The objects that have been indexed.
|
nodiscard |
The keyframes that were indexed (if any).
|
nodiscard |
The closest keyframe to a given time.