|
Sen API
Sen Libraries
|
Namespaces | |
| namespace | python |
| namespace | test |
Classes | |
| class | Annotation |
| Represents an annotation which can be added to a recording. More... | |
| class | Creation |
| Represents the creation of an object. More... | |
| class | Cursor |
| A cursor that can be used to iterate over the contents of a recording. The cursor holds a payload which can have one of the values given as type arguments. More... | |
| class | Deletion |
| Represents the deletion of an object. More... | |
| class | End |
| Represents the end of the recording. Used in cursors. More... | |
| class | Event |
| Represents the emission of an event by some object. More... | |
| class | Input |
| Allows you to access an existing recording in the file system. More... | |
| class | Keyframe |
| Represents the state of the system at a given time. The state of the system is made of the snapshots of all the objects present at the time of the snapshot. More... | |
| struct | KeyframeIndex |
| The location of a keyframe in an archive. More... | |
| struct | ObjectIndexDef |
| Describes an object that has been indexed. More... | |
| struct | ObjectInfo |
| Basic information about an object tracked for recording. More... | |
| class | Output |
| Allows the creation of recordings. More... | |
| class | PropertyChange |
| Represents the change of a property value. More... | |
| class | Snapshot |
| Represents the full state of an object at a point in time. More... | |
Typedefs | |
| using | DataCursor = Cursor<End, PropertyChange, Event, Keyframe, Creation, Deletion> |
| A cursor that can iterate over data entries. | |
| using | AnnotationCursor = Cursor<End, Annotation> |
| A cursor that can iterate over annotation entries. | |
| using | ErrorHandler = std::function<void()> |
| A function to be called in case of error. | |
| using | ObjectInfoList = std::vector<ObjectInfo> |
| A list of information elements about tracked objects. | |
Functions | |
| std::shared_ptr< spdlog::logger > | getLogger () |
| uint32_t | getFileHeaderSize () |
| template<typename T, typename B> | |
| void | writeToBuffer (const T &data, B &buffer) |
| template<typename T> | |
| void | write (T &&data, FILE *file) |
| template<typename T> | |
| std::shared_ptr< ResizableHeapBlock > | writeSizeAndDataToBuffer (const T &data) |
| void | writeToCompressedBuffer (const std::vector< uint8_t > &memBuf, kernel::Buffer &lz4Buf) |
| void | uncompressBuffer (const std::vector< uint8_t > &lz4Buf, std::vector< uint8_t > &memBuf, std::size_t decompressedSize) |
| FILE * | openFile (const std::filesystem::path &path) |
| const ::sen::ClassType * | searchOwner (const ::sen::ClassType *classType, const ::sen::Property *property) noexcept |
| Returns the class in the hierarchy of classes that owns the property. Returns nullptr if not found. | |
| const ::sen::ClassType * | searchOwner (const ::sen::ClassType *classType, const ::sen::Event *event) noexcept |
| Returns the class in the hierarchy of classes to which the event is mapped. Returns nullptr if not found. | |
| MemberHash | computePlatformDependentPropertyId (const ::sen::ClassType *classType, const ::sen::Property *property) |
| Computes the old version (platform-dependent) of the property id. Used for retro-compatibility. | |
| MemberHash | computePlatformDependentEventId (const ::sen::ClassType *classType, const ::sen::Event *event) |
| Computes the old version (platform-dependent) of the event id. Used for retro-compatibility. | |
| void | doWrite (const Span< const uint8_t > &span, FILE *file) |
Variables | |
| constexpr uint32_t | keyframeIndexId = 0U |
| constexpr uint32_t | beginMagic = 0xcafebabeU |
| constexpr std::string_view | runtimeFileName = "runtime" |
| constexpr std::string_view | typesFileName = "types" |
| constexpr std::string_view | indexesFileName = "indexes" |
| constexpr std::string_view | annotationsFileName = "annotations" |
| constexpr std::string_view | summaryFileName = "summary" |
| std::shared_ptr< spdlog::logger > sen::db::getLogger | ( | ) |
|
inlinenodiscard |
|
inline |
|
inline |
|
inlinenodiscard |
| void sen::db::writeToCompressedBuffer | ( | const std::vector< uint8_t > & | memBuf, |
| kernel::Buffer & | lz4Buf ) |
| void sen::db::uncompressBuffer | ( | const std::vector< uint8_t > & | lz4Buf, |
| std::vector< uint8_t > & | memBuf, | ||
| std::size_t | decompressedSize ) |
|
nodiscard |
|
nodiscardnoexcept |
Returns the class in the hierarchy of classes that owns the property. Returns nullptr if not found.
|
nodiscardnoexcept |
Returns the class in the hierarchy of classes to which the event is mapped. Returns nullptr if not found.
|
nodiscard |
Computes the old version (platform-dependent) of the property id. Used for retro-compatibility.
|
nodiscard |
Computes the old version (platform-dependent) of the event id. Used for retro-compatibility.
| void sen::db::doWrite | ( | const Span< const uint8_t > & | span, |
| FILE * | file ) |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |