VR-Forces 4.1.1 Class Documentation
serializ.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: serializ.h,v $ $Revision: 1.3 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef serializ_H_
9 #define serializ_H_
10 
11 //
12 // \file serializ.h Contains the declaration of an abstract serializability interface.
13 //
14 
15 #include "tdbutil/tdbUtilDefines.h"
16 #include <stdio.h>
17 #include <vlutil/vlMachineTypes.h>
18 #include <vlutil/vlString.h>
19 #include <matrix/utmCoord.h>
20 #include <vl/utmView.h>
21 
22 // Typedef to maintain backwards compatibility
24 // \deprecated VRF 3.9 Will be removed in a future version.
26 
27 //
28 // File I/O functions.
29 //
31 {
32  public:
33  virtual bool readFrom(FILE* fp) = 0;
34  virtual bool writeTo(FILE* fp) = 0;
35 
36  static DtU8 ReadDtU8(FILE* fp);
37  static DtU16 ReadDtU16(FILE* fp);
38  static DtU32 ReadDtU32(FILE* fp);
39  static DtInt16 ReadDtInt16(FILE* fp);
40  static DtInt32 ReadDtInt32(FILE* fp);
41  static DtFloat64 ReadDtFloat64(FILE* fp);
42  static DtDegMinSec ReadDtDegMinSec(FILE* fp);
43  static DtString ReadDtString(FILE* fp);
44  static DtMapDatum ReadDtMapDatum(FILE* fp);
45 
46  static bool WriteDtU8(FILE* fp, DtU8 b);
47  static bool WriteDtU16(FILE* fp, DtU16 l);
48  static bool WriteDtU32(FILE* fp, DtU32 l);
49  static bool WriteDtInt16(FILE* fp, DtInt16 val);
50  static bool WriteDtInt32(FILE* fp, DtInt32 val);
51  static bool WriteDtFloat64(FILE* fp, DtFloat64 val);
52  static bool WriteDtDegMinSec(FILE* fp, const DtDegMinSec& val);
53  static bool WriteDtString(FILE* fp, const DtString& val);
54  static bool WriteDtMapDatum(FILE* fp, const DtMapDatum& md);
55 };
56 
57 
58 #endif

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)