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

Last change on this file since 18 was 3, checked in by sgosseli, 12 years ago
  • Add the existing Pacpus files from pacpusdev and pacpuscore.
  • Provide a clean build system based on multiple CMake files.
File size: 1.3 KB
Line 
1// Copyright Marek Kurdej 2010 - 2012.
2// Distributed under the UTC Heudiasyc Pacpus License, Version 1.0.
3// See accompanying file LICENSE_1_0.txt or copy at
4// http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt
5
6#ifndef HDFILE_HEADER_T_H
7#define HDFILE_HEADER_T_H
8
9#include "kernel/cstdint.h"
10#include "kernel/road_time.h"
11
12#define HEADER_SIGNATURE_LENGTH 4
13#define VERSION_NUMBER 2
14
15#pragma pack(push,4)
16struct hdfile_header_t
17{
18 typedef int8_t SignatureT;
19 typedef int32_t DataTypeT;
20 typedef int32_t VersionT;
21 typedef int32_t DataSizeT;
22 typedef int32_t DataOffsetT;
23 // FIXME: file size should be 64-bit long to support large (>2GB) files
24 typedef int32_t FileSizeT;
25 typedef int32_t RecordCountT;
26
27 static const DataSizeT kVariableRecordSize = -1;
28
29 SignatureT Signature[HEADER_SIGNATURE_LENGTH];
30 DataTypeT Type; /* IMAGE, CAN, UNKNOWN, etc. */
31 VersionT VersionNumber;
32 DataOffsetT DataOffset; /* starting of the data */
33 DataSizeT DataSize; /* number of byte for data */
34 FileSizeT FileSize; /* current size of the file */
35 road_time_t TimeMin, TimeMax;
36 RecordCountT NbRecords; /* number of records */
37};
38#pragma pack(pop)
39
40#endif // HDFILE_HEADER_T_H
Note: See TracBrowser for help on using the repository browser.