|
ADTF File Library
|
namespace for indexed file definitions in version 5.0 More...
Classes | |
| class | IndexedFile |
| class | IndexedFileReader |
| class | IndexedFileWriter |
Functions | |
| a_util::datetime::DateTime | getDateTime (const a_util::filesystem::Path &filename) |
Retrieve the date time from the filename , if it is an indexed file. | |
| void | getHeader (const std::string &filename, FileHeader &file_header) |
| void | updateHeader (const std::string &filename, const FileHeader &file_header, uint32_t mask) |
| void | queryFileInfo (const std::string &filename, std::string &file_info) |
| void | getExtension (const std::string &filename, const std::string &extension, FileExtension *extension_info, void **data) |
| void | writeExtension (const std::string &filename, const FileExtension &extension_info, const void *data) |
| void | isIfhdFile (const std::string &filename) |
| void | stream2FileHeader (FileHeader &file_header) |
| void | stream2FileHeaderExtension (const FileHeader &file_header, FileExtension *header_ext, size_t num_extensions) |
| void | stream2ChunkHeader (const FileHeader &file_header, ChunkHeader &chunk) |
| void | stream2ChunkRef (const FileHeader &file_header, ChunkRef &chunk_ref) |
| void | stream2StreamRef (const FileHeader &file_header, StreamRef &stream_ref) |
| void | stream2StreamInfoHeader (const FileHeader &file_header, StreamInfoHeader &stream_info) |
| void | stream2AdditionalStreamIndexInfo (const FileHeader &file_header, AdditionalIndexInfo &additional_index_info) |
| void | verifyIntegrity (const std::string &file_name) |
namespace for indexed file definitions in version 5.0
Additional index table information.
Header of the "checksums" extension.
Type of the checksum function used for calculating the checksum in the "checksums" extension.
header for chunks Each Chunk header 16 Byte aligned within the file.
| using ifhd::v500::ChunkRef = v400::ChunkRef |
header for a chunk reference
| using ifhd::v500::ChunkType = v400::ChunkType |
The chunk types.
| using ifhd::v500::FieldMask = v400::FieldMask |
Header for a file extensions.
The File header for dat-files.
A checksum over a range within the file itself.
Class for storing an index table of an indexed file.
Class for storing an index table of an indexed file.
| using ifhd::v500::OpenMode = v400::OpenMode |
File open modes.
| using ifhd::v500::ReadFlags = v400::ReadFlags |
Read options.
| using ifhd::v500::SeekFlags = v400::SeekFlags |
Seek flags.
| using ifhd::v500::StreamRef = v400::StreamRef |
Time format (for seek etc.)
| a_util::datetime::DateTime ifhd::v201_v301::getDateTime | ( | const a_util::filesystem::Path & | filename | ) |
Retrieve the date time from the filename , if it is an indexed file.
| filename | the filepath to open and to retrieve the date time from |
| exceptions::ErrorFileAccess | |
| std::runtime_error | if file is not a valid IFHD file |
| void ifhd::v201_v301::getExtension | ( | const std::string & | filename, |
| const std::string & | extension, | ||
| FileExtension * | extension_info, | ||
| void ** | data ) |
Return the requested file extension. You have to release the memory for the return value data with delete [] data;
| filename | The input file name. |
| extension | The requested file extension. |
| extension_info | This will be filled with the file extension information. |
| data | This will be filled with the file extension data. |
| exceptions::ErrorFileAccess | |
| std::runtime_error | if file is not a valid IFHD file |
| void ifhd::v201_v301::getHeader | ( | const std::string & | filename, |
| FileHeader & | file_header ) |
Returns the header of a file.
| filename | The filename |
| file_header | This will be filled with the information. |
| exceptions::ErrorFileAccess | |
| std::runtime_error | if file is not a valid IFHD file |
| void ifhd::v201_v301::isIfhdFile | ( | const std::string & | filename | ) |
Check if a particular file is a DAT file.
| filename | Name of the file to check. |
| exceptions::ErrorFileAccess | |
| std::runtime_error | if file is not a valid IFHD file |
| void ifhd::v201_v301::queryFileInfo | ( | const std::string & | filename, |
| std::string & | file_info ) |
Returns the date and the description of a file in a string.
| filename | [in] The filename. |
| file_info | [out] The info string. |
| exceptions::ErrorFileAlreadyExists | |
| exceptions::ErrorFileAccess | |
| std::runtime_error | if file is not a valid IFHD file |
| void ifhd::v201_v301::stream2AdditionalStreamIndexInfo | ( | const FileHeader & | file_header, |
| AdditionalIndexInfo & | additional_index_info ) |
Convert a additional stream info structure to native byte order.
| [in] | file_header | The header |
| [in] | additional_index_info | The additional index info. |
| void ifhd::v201_v301::stream2ChunkHeader | ( | const FileHeader & | file_header, |
| ChunkHeader & | chunk ) |
Convert a chunk header structure to native byte order.
| [in] | file_header | The header |
| [in] | chunk | The chunk header. |
| void ifhd::v201_v301::stream2ChunkRef | ( | const FileHeader & | file_header, |
| ChunkRef & | chunk_ref ) |
Convert a chunk reference structure to native byte order.
| [in] | file_header | The header |
| [in] | chunk_ref | The chunk reference |
| void ifhd::v201_v301::stream2FileHeader | ( | FileHeader & | file_header | ) |
Convert a file header structure to native byte order.
| [in] | file_header | The header |
| std::runtime_error | if file version in file_header is not supported |
| void ifhd::v201_v301::stream2FileHeaderExtension | ( | const FileHeader & | file_header, |
| FileExtension * | header_ext, | ||
| size_t | num_extensions ) |
Convert a file header extension structure to native byte order.
| [in] | file_header | The header |
| [in] | header_ext | The header extension. |
| [in] | num_extensions | The number of Extensions. |
| void ifhd::v201_v301::stream2StreamInfoHeader | ( | const FileHeader & | file_header, |
| StreamInfoHeader & | stream_info ) |
Convert a stream info header structure to native byte order.
| [in] | file_header | The header |
| [in] | stream_info | The stream info. |
| void ifhd::v201_v301::stream2StreamRef | ( | const FileHeader & | file_header, |
| StreamRef & | stream_ref ) |
Convert a stream reference structure to native byte order.
| [in] | file_header | The header |
| [in] | stream_ref | The stream reference |
| void ifhd::v201_v301::updateHeader | ( | const std::string & | filename, |
| const FileHeader & | file_header, | ||
| uint32_t | mask ) |
Update header info.
| filename | The filename. |
| file_header | The new header info. |
| mask | Which fields to update, see FieldMask |
| exceptions::ErrorFileAlreadyExists | |
| exceptions::ErrorFileAccess | |
| std::runtime_error | if file is not a valid IFHD file |
| void ifhd::v201_v301::verifyIntegrity | ( | const std::string & | file_name | ) |
Verify the integrity of the given file by checking the contained hashes
| std::runtime_error | in case of an error |
| void ifhd::v201_v301::writeExtension | ( | const std::string & | filename, |
| const FileExtension & | extension_info, | ||
| const void * | data ) |
Write an extension If the extension already exists, it will be overwritten
| filename | The input file name. |
| extension_info | This will be filled with the file extension information. |
| data | This will be filled with the file extension data. |
| exceptions::ErrorFileAccess | |
| std::runtime_error | if file is not a valid IFHD file |