17 #ifndef INDEXEDFILE_V201_V301_TYPE_HEADER
18 #define INDEXEDFILE_V201_V301_TYPE_HEADER
34 static inline uint32_t getFileId()
36 static uint32_t file_id = *((uint32_t*)
"IFHD");
41 static constexpr uint32_t version_id_beta = 0x0200;
44 static constexpr uint32_t version_id = 0x00000201;
47 static constexpr uint32_t version_id_with_history = 0x00000300;
50 static const uint32_t version_id_with_history_end_offset = 0x00000301;
75 fm_description = 0x01,
85 rf_use_external_buffer = 0x1,
ChunkType
Definition: indexedfile_types_v201_v301.h:303
@ ct_marker
marks the chunk as marker data
Definition: indexedfile_types_v201_v301.h:311
@ ct_keydata
marks the chunk as KEY data (results to an index table entry)
Definition: indexedfile_types_v201_v301.h:307
@ ct_info
marks the chunk as info data
Definition: indexedfile_types_v201_v301.h:309
@ ct_trigger
marks the chunk as trigger data
Definition: indexedfile_types_v201_v301.h:315
@ ct_data
marks the chunk as data
Definition: indexedfile_types_v201_v301.h:305
@ ct_type
marks the chunk as type data
Definition: indexedfile_types_v201_v301.h:313
FieldMask
Definition: indexedfile_types_v201_v301.h:73
OpenMode
Definition: indexedfile_types_v201_v301.h:322
@ om_query_info
Definition: indexedfile_types_v201_v301.h:331
@ om_none
Definition: indexedfile_types_v201_v301.h:326
@ om_file_change_mode
Definition: indexedfile_types_v201_v301.h:341
@ om_validate_chunk_header
Definition: indexedfile_types_v201_v301.h:337
@ om_no_overwrite
Definition: indexedfile_types_v201_v301.h:347
SeekFlags
Definition: indexedfile_types_v201_v301.h:290
@ sf_default
The default seek flag.
Definition: indexedfile_types_v201_v301.h:292
@ sf_before
Seek to the last chunk before the seek time.
Definition: indexedfile_types_v201_v301.h:296
@ sf_keydata
Just seek in index table.
Definition: indexedfile_types_v201_v301.h:294
TimeFormat
Definition: indexedfile_types_v201_v301.h:57
@ tf_chunk_index
Definition: indexedfile_types_v201_v301.h:60
@ tf_chunk_time
Definition: indexedfile_types_v201_v301.h:63
@ tf_stream_index
Definition: indexedfile_types_v201_v301.h:66
ReadFlags
Definition: indexedfile_types_v201_v301.h:83
namespace for IFHD File library
Definition: indexedfile_types.h:30
Additional index table information.
Definition: indexedfile_types_v201_v301.h:270
uint8_t reserved[20]
for later use
Definition: indexedfile_types_v201_v301.h:278
uint64_t stream_index_offset
Definition: indexedfile_types_v201_v301.h:273
uint32_t stream_table_index_offset
Definition: indexedfile_types_v201_v301.h:276
header for a chunk reference
Definition: indexedfile_types_v201_v301.h:214
uint64_t stream_index
number of chunk within the stream it belongs to
Definition: indexedfile_types_v201_v301.h:231
uint32_t ref_stream_table_index
Definition: indexedfile_types_v201_v301.h:235
uint64_t time_stamp
timestamp of the chunk in microseconds or nanoseconds resolution (depending on file version)
Definition: indexedfile_types_v201_v301.h:216
uint64_t chunk_offset
file offset position of the chunk it refers to (in byte)
Definition: indexedfile_types_v201_v301.h:227
uint16_t stream_id
stream identifier of the chunk it refers to
Definition: indexedfile_types_v201_v301.h:222
uint32_t size
Definition: indexedfile_types_v201_v301.h:220
uint64_t chunk_index
number of chunk
Definition: indexedfile_types_v201_v301.h:229
uint16_t flags
Definition: indexedfile_types_v201_v301.h:225
Header for a file extensions.
Definition: indexedfile_types_v201_v301.h:161
uint32_t version_id
optional version id
Definition: indexedfile_types_v201_v301.h:173
uint8_t reserved[96]
reserved. currently not in use
Definition: indexedfile_types_v201_v301.h:180
uint8_t reserved1[2]
reserved. currently not in use
Definition: indexedfile_types_v201_v301.h:167
int8_t identifier[max_file_extension_identifier_length]
Identifier.
Definition: indexedfile_types_v201_v301.h:163
uint64_t data_pos
Definition: indexedfile_types_v201_v301.h:176
uint32_t user_id
optional user id
Definition: indexedfile_types_v201_v301.h:169
uint64_t data_size
size of the extension-data in bytes
Definition: indexedfile_types_v201_v301.h:178
uint16_t stream_id
related Stream identifier. 0 for every stream 1> id >= Max streams)
Definition: indexedfile_types_v201_v301.h:165
uint32_t type_id
optional type id
Definition: indexedfile_types_v201_v301.h:171
Definition: indexedfile_types_v201_v301.h:243
uint32_t ref_master_table_index
Definition: indexedfile_types_v201_v301.h:247