VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
c7bHeader.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: c7bHeader.h,v $ $Revision: 1.8 $ $State: Exp $
7 *******************************************************************************/
8 
9 //
10 // File c7bHeader
11 //
12 // Class: DtC7bHeader
13 //
14 // The class is public because should not be used but anyone else than
15 // DtC7b.
16 //
17 
18 #ifndef __DtC7bHeader
19 #define __DtC7bHeader
20 
21 #include "ctdb/ctdbDefines.h"
22 #include <stdio.h>
23 #include "ctdb/c7NetTypes.h"
24 
25 class DtString;
26 
27 static const int CTDB_HEADER_RESERVED = 16;
28 static const int CTDB_NAME_LENGTH = 14;
29 static const int CTDB_FNAME_LENGTH = 256;
30 static const int CTDB_DATE_LENGTH = 28;
31 static const int CTDB_PATCH_CACHES = 16;
32 
34 {
35 public:
36 
37  DtC7bHeader();
38  ~DtC7bHeader();
39 
40  bool isCurved();
41  bool isSwNe();
42  bool isGridded();
43  bool isTinned();
44  bool isShort();
45 
46  bool read(FILE *f);
47 
48  // Puts the header into a string in a printable format
49  void printDataToString(DtString& str);
50 
51 public:
52 
66  DtC7NetInt32 patch_cache_size_map[CTDB_PATCH_CACHES];
73  DtNetU8 name[CTDB_NAME_LENGTH];
75  DtNetU8 date[CTDB_DATE_LENGTH];
84  DtC7NetInt32 aux_hdr_bytes; /* Size of auxiliary header */
92 
93 };
94 
95 #endif

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)