17 #ifndef INDEXEDFILE_V100_CLASS_HEADER
18 #define INDEXEDFILE_V100_CLASS_HEADER
Definition: indexedfile_v100.h:49
IndexBlockItem * _index_blocks
Pointer to index blocks.
Definition: indexedfile_v100.h:153
void setHeaderExtension(void *data, int data_size)
std::string getDescription() const
@ tf_chunk_time
time format used for lookup time
Definition: indexedfile_v100.h:58
FileHeader * _file_header
File header.
Definition: indexedfile_v100.h:156
void * _header_extension
Header extension.
Definition: indexedfile_v100.h:158
void allocBuffer(int size)
void setDescription(const std::string &description)
struct ifhd::v100::IndexedFileV100::TagIndexBlockItem IndexBlockItem
struct ifhd::v100::IndexedFileV100::TagChunkHeader ChunkHeader
utils5ext::File * _file
File pointer.
Definition: indexedfile_v100.h:145
static int _index_table_cluster_size
Size of index table clusters.
Definition: indexedfile_v100.h:141
int64_t _file_pos
Current file position.
Definition: indexedfile_v100.h:148
void getHeaderExtension(void **data, int *data_size)
IndexBlockItem * _active_index_block
Pointer to current index block.
Definition: indexedfile_v100.h:154
void * _cache
Pointer to cache.
Definition: indexedfile_v100.h:160
int _sector_size
Sector size.
Definition: indexedfile_v100.h:143
int _cache_size
Cache size.
Definition: indexedfile_v100.h:161
void internalFree(void *memory)
void freeHeaderExtension()
void allocCache(int size)
static int _default_cache_size
Default cache size.
Definition: indexedfile_v100.h:140
int64_t _index
Current index.
Definition: indexedfile_v100.h:147
void allocIndexTable(int size)
bool _attached
File attached?
Definition: indexedfile_v100.h:137
int getSectorSize(const std::string &filename) const
void appendIndex(uint64_t pos, timestamp_t time_stamp)
void allocIndexBlock(int count=-1)
void allocHeaderExtension(int size)
void setDateTime(const DateTime &date_time)
static int _default_block_size
Default block size.
Definition: indexedfile_v100.h:139
struct ifhd::v100::IndexedFileV100::TagFileHeader FileHeader
struct ifhd::v100::IndexedFileV100::TagDateTime DateTime
uint8_t * _buffer
Internal buffer.
Definition: indexedfile_v100.h:150
void * internalMalloc(int size)
bool _write_mode
Write mode enabled?
Definition: indexedfile_v100.h:163
int _buffer_size
Buffer size.
Definition: indexedfile_v100.h:151
const uint32_t version_id
IFHD Version ID V1.0.
Definition: indexedfile_v100.h:31
namespace for IFHD File library
Definition: indexedfile_types.h:30
utils5ext::FilePos FilePos
file pos type
Definition: indexedfile_types.h:54
FilePos FileSize
Type for the file size.
Definition: file.h:41
Definition: indexedfile_v100.h:72
uint32_t microseconds
The Microseconds after the second - [0,999999].
Definition: indexedfile_v100.h:86
uint16_t day
The Day of the month - [1,31].
Definition: indexedfile_v100.h:78
uint16_t minute
The Minutes after the hour - [0,59].
Definition: indexedfile_v100.h:82
uint16_t month
The Month - [1,12].
Definition: indexedfile_v100.h:76
uint16_t second
The Seconds after the minute - [0,59].
Definition: indexedfile_v100.h:84
uint16_t hour
The Hours past midnight - [0,23].
Definition: indexedfile_v100.h:80
uint16_t year
The Year - [1900,)
Definition: indexedfile_v100.h:74
Definition: indexedfile_v100.h:130
int data_size
Size of data.
Definition: indexedfile_v100.h:132
int item_count
Number of items.
Definition: indexedfile_v100.h:133
struct TagIndexBlockItem * next
Pointer to next IndexBlockItem.
Definition: indexedfile_v100.h:134
ChunkHeader * data
Data.
Definition: indexedfile_v100.h:131