17 #ifndef INDEXEDFILE_V201_V301_CLASS_HEADER
18 #define INDEXEDFILE_V201_V301_CLASS_HEADER
227 uint32_t file_version_id =0,
228 uint16_t stream_id=0,
Definition: indexedfile_v201_v301.h:86
std::string getDescription() const
void appendExtension(const char *identifier, const void *data, size_t data_size, uint32_t type_id=0, uint32_t file_version_id=0, uint16_t stream_id=0, uint32_t user_id=0)
std::list< FileExtensionStruct * > FileExtensionList
own type definition for a better work with file extension lists
Definition: indexedfile_v201_v301.h:121
void allocBuffer(uint64_t size)
void setDateTime(const a_util::datetime::DateTime &date_time)
virtual std::set< uint32_t > getSupportedVersions() const
Get a set of all supported versions.
void allocExtensionPage(utils5ext::FileSize size, void **data) const
std::string getGUID() const
void appendExtension(const void *data, const FileExtension *extension_info)
uint8_t * _buffer
internal Buffer
Definition: indexedfile_v201_v301.h:102
FileExtensionList _extensions
list with all extensions
Definition: indexedfile_v201_v301.h:124
utils5ext::File _file
the open file
Definition: indexedfile_v201_v301.h:97
FileHeader * _file_header
current file header
Definition: indexedfile_v201_v301.h:106
void * getCacheAddr() const
uint64_t _cache_size
size of cache
Definition: indexedfile_v201_v301.h:129
bool _write_mode
For internal use only (will be moved to a private implementation).
Definition: indexedfile_v201_v301.h:132
void setDescription(const std::string &description)
bool _write_guid
protection for writing GUID
Definition: indexedfile_v201_v301.h:109
int64_t _buffer_size
internal Buffer size
Definition: indexedfile_v201_v301.h:104
void getHeaderRef(FileHeader **file_header) const
FilePos _file_pos
current filepos
Definition: indexedfile_v201_v301.h:99
static const uint8_t byte_order
current value of platform ByteOrder (
Definition: indexedfile_v201_v301.h:90
void generateNewGUID(std::string &generated_guid)
void internalFree(void *memory) const
bool findExtension(const char *identifier, FileExtension **extension_info, void **data) const
void getExtension(size_t index, FileExtension **extension_info, void **data) const
a_util::datetime::DateTime getDateTime() const
void * internalMalloc(size_t size) const
size_t getExtensionCount() const
void * _cache
cache data area
Definition: indexedfile_v201_v301.h:127
void allocCache(int64_t size)
static int64_t default_block_size
Default block size in bytes.
Definition: indexedfile_v201_v301.h:92
uint8_t getByteOrder() const
virtual void initialize()
static int64_t default_cache_size
Default cache size in bytes.
Definition: indexedfile_v201_v301.h:94
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
Header for a file extensions.
Definition: indexedfile_types_v201_v301.h:161
Definition: indexedfile_v201_v301.h:115
void * extension_page
pointer to extension page
Definition: indexedfile_v201_v301.h:117
FileExtension file_extension
file extension intormation
Definition: indexedfile_v201_v301.h:116