source: pacpusframework/trunk/include/Pacpus/kernel/hdfile_header_t.h@ 66

Last change on this file since 66 was 66, checked in by Marek Kurdej, 11 years ago

Documentation: file info.

  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1// This file is part of the PACPUS framework distributed under the
2// CECILL-C License, Version 1.0.
3//
4/// @file
5/// @author Firstname Surname <firstname.surname@utc.fr>
6/// @date Month, Year
7/// @version $Id: hdfile_header_t.h 66 2013-01-09 16:54:11Z kurdejma $
8/// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
9/// @brief Brief description.
10///
11/// Detailed description.
12
13#ifndef DEF_HDFILE_HEADER_T_H
14#define DEF_HDFILE_HEADER_T_H
15
16#include <Pacpus/kernel/cstdint.h>
17#include <Pacpus/kernel/road_time.h>
18
19#define HEADER_SIGNATURE_LENGTH 4
20#define VERSION_NUMBER 2
21
22#pragma pack(push,4)
23/// @todo Documentation
24struct hdfile_header_t
25{
26 /// @todo Documentation
27 typedef int8_t SignatureT;
28 /// @todo Documentation
29 typedef int32_t DataTypeT;
30 /// @todo Documentation
31 typedef int32_t VersionT;
32 /// @todo Documentation
33 typedef int32_t DataSizeT;
34 /// @todo Documentation
35 typedef int32_t DataOffsetT;
36 /// @todo Documentation
37 /// @todo FIXME: file size should be 64-bit long to support large (>2GB) files
38 typedef int32_t FileSizeT;
39 /// @todo Documentation
40 typedef int32_t RecordCountT;
41
42 /// @todo Documentation
43 static const DataSizeT kVariableRecordSize = -1;
44
45 /// @todo Documentation
46 SignatureT Signature[HEADER_SIGNATURE_LENGTH];
47 /// Record data type
48 /// Should default to @link FILE_DBT_UNKNOWN
49 /// @see DbiteFileTypes.h for more
50 DataTypeT Type;
51 /// File format version
52 VersionT VersionNumber;
53 /// Offset indicating the start of the data [bytes]
54 DataOffsetT DataOffset;
55 /// Current size of the data, without header [bytes]
56 DataSizeT DataSize;
57 /// Current size of the file [bytes]
58 FileSizeT FileSize;
59 /// @todo Documentation
60 road_time_t TimeMin;
61 /// @todo Documentation
62 road_time_t TimeMax;
63 /// Number of records already in the file
64 RecordCountT NbRecords;
65};
66#pragma pack(pop)
67
68#endif // DEF_HDFILE_HEADER_T_H
Note: See TracBrowser for help on using the repository browser.