Sen API
Sen Libraries
Loading...
Searching...
No Matches
db/src/constants.h
Go to the documentation of this file.
1// === constants.h =====================================================================================================
2// Sen Infrastructure
3// Released under the Apache License v2.0 (SPDX-License-Identifier Apache-2.0).
4// See the LICENSE.txt file for more information.
5// © Airbus SAS, Airbus Helicopters, and Airbus Defence and Space SAU/GmbH/SAS.
6// =====================================================================================================================
7
8#ifndef SEN_LIBS_DB_SRC_CONSTANTS_H
9#define SEN_LIBS_DB_SRC_CONSTANTS_H
10
11// std
12#include <cstdint>
13#include <string_view>
14
15namespace sen::db
16{
17
18constexpr uint32_t keyframeIndexId = 0U;
19constexpr uint32_t beginMagic = 0xcafebabeU;
20
21// The archive layout this build reads and writes, stored in every file's v1::FileHeader. A new layout
22// adds a value and a reader for it rather than raising this one, so older archives stay readable.
23constexpr uint32_t supportedFileVersion = 1U;
24
25constexpr std::string_view runtimeFileName = "runtime";
26constexpr std::string_view typesFileName = "types";
27constexpr std::string_view indexesFileName = "indexes";
28constexpr std::string_view annotationsFileName = "annotations";
29constexpr std::string_view summaryFileName = "summary";
30
31} // namespace sen::db
32
33#endif // SEN_LIBS_DB_SRC_CONSTANTS_H
Definition type_specs.h:19
constexpr std::string_view summaryFileName
Definition db/src/constants.h:29
constexpr std::string_view indexesFileName
Definition db/src/constants.h:27
constexpr uint32_t keyframeIndexId
Definition db/src/constants.h:18
constexpr uint32_t supportedFileVersion
Definition db/src/constants.h:23
constexpr std::string_view typesFileName
Definition db/src/constants.h:26
constexpr std::string_view annotationsFileName
Definition db/src/constants.h:28
constexpr uint32_t beginMagic
Definition db/src/constants.h:19
constexpr std::string_view runtimeFileName
Definition db/src/constants.h:25