2 * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
4 * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
6 * Tecplot hereby grants OpenCFD limited authority to distribute without
7 * alteration the source code to the Tecplot Input/Output library, known
8 * as TecIO, as part of its distribution of OpenFOAM and the
9 * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
10 * granted access to the TecIO source code, and may redistribute it for the
11 * purpose of maintaining the converter. However, no authority is granted
12 * to alter the TecIO source code in any form or manner.
14 * This limited grant of distribution does not supersede Tecplot, Inc.'s
15 * copyright in TecIO. Contact Tecplot, Inc. for further information.
18 * 3535 Factoria Blvd, Ste. 550
19 * Bellevue, WA 98006, USA
20 * Phone: +1 425 653 1200
21 * http://www.tecplot.com/
27 ******************************************************************
28 ******************************************************************
30 ****** (C) 1988-2008 Tecplot, Inc. *******
32 ******************************************************************
33 ******************************************************************
41 #if defined DATAIO4MODULE
47 EXTERN
double GetNextValue(FileStream_s
*FileStream
,
48 FieldDataType_e FieldDataType
,
52 EXTERN LgIndex_t
GetNextI(FileStream_s
*FileStream
,
54 EXTERN LgIndex_t
GetIoFileInt(FileStream_s
*FileStream
,
59 EXTERN Boolean_t
ReadInString(FileStream_s
*FileStream
,
63 Boolean_t ProcessData
);
64 EXTERN
void ReadByteBlock(FileStream_s
*FileStream
,
70 EXTERN
void ReadInt16Block(FileStream_s
*FileStream
,
76 EXTERN
void ReadInt16BlockToInt32(FileStream_s
*FileStream
,
82 EXTERN
void ReadInt32Block(FileStream_s
*FileStream
,
88 EXTERN
void ReadPureBlock(FileStream_s
*FileStream
,
91 FieldDataType_e FieldDataType
,
95 EXTERN
void ReadBlock(FileStream_s
*FileStream
,
96 FieldData_pa FieldData
,
98 FieldDataType_e FieldDataTypeInFile
,
102 EXTERN
void ReadClassicOrderedCCBlock(FileStream_s
*DataFileStream
,
103 FieldData_pa FieldData
,
104 FieldDataType_e FieldDataTypeInFile
,
105 LgIndex_t NumIPtsInFile
,
106 LgIndex_t NumJPtsInFile
,
107 LgIndex_t NumKPtsInFile
,
109 EXTERN Boolean_t
ReadInDataFileTypeTitleAndVarNames(FileStream_s
*FileStream
,
112 DataFileType_e
*FileType
,
114 StringList_pa
*VarNames
);
115 EXTERN Boolean_t
ReadInZoneHeader(FileStream_s
*FileStream
,
117 ZoneSpec_s
*ZoneSpec
,
118 Set_pa IsVarCellCentered
,
120 Boolean_t
*IsRawFNAvailable
,
121 LgIndex_t
*FNNumBndryConns
);
122 EXTERN Boolean_t
ReadInCustomLabels(FileStream_s
*FileStream
,
125 StringList_pa
*CustomLabelBase
);
126 EXTERN Boolean_t
ReadInUserRec(FileStream_s
*FileStream
,
128 int MaxCharactersAllowed
,
130 EXTERN Boolean_t
ReadInAuxData(FileStream_s
*FileStream
,
133 EXTERN Boolean_t
ReadInGeometry(FileStream_s
*FileStream
,
137 LgIndex_t MaxDataPts
);
138 EXTERN Boolean_t
ReadInText(FileStream_s
*FileStream
,
142 LgIndex_t MaxTextLen
);
144 * STDCALL since PreplotAsciiDatafile is sent to RegisterDataSetReader
145 * which can also be used by addons.
147 EXTERN Boolean_t STDCALL
PreplotAsciiDatafile(char *CurFName
,
149 char **MessageString
);
150 EXTERN
short GetInputVersion(FileStream_s
*FileStream
);
152 EXTERN Boolean_t
WriteBinaryInt16BlockUnaligned(FileStream_s
*FileStream
,
155 Boolean_t ValuesInNativeOrdering
);
156 EXTERN Boolean_t
WriteBinaryInt32BlockUnaligned(FileStream_s
*FileStream
,
159 Boolean_t ValuesInNativeOrdering
);
160 EXTERN Boolean_t
WriteBinaryByteBlock(FileStream_s
*FileStream
,
161 const Byte_t
*ByteValues
,
162 const HgIndex_t NumValues
);
163 EXTERN Boolean_t
WriteBinaryInt16(FileStream_s
*FileStream
,
165 EXTERN Boolean_t
WriteBinaryInt32(FileStream_s
*FileStream
,
167 EXTERN Boolean_t
WriteBinaryReal(FileStream_s
*FileStream
,
169 FieldDataType_e FieldDataType
);
170 EXTERN Boolean_t
WriteFieldDataType(FileStream_s
*FileStream
,
172 Boolean_t WriteBinary
);
173 EXTERN Boolean_t
WriteBinaryFieldDataBlock(FileStream_s
*FileStream
,
176 LgIndex_t NumValues
);
177 EXTERN Boolean_t
WriteCCFieldDataBlock(FileStream_s
*FileStream
,
178 FieldData_pa FieldData
,
179 Boolean_t IsOrderedData
,
183 Boolean_t WriteBinary
,
184 SmInteger_t AsciiPrecision
);
185 EXTERN Boolean_t
DumpDatafileString(FileStream_s
*FileStream
,
187 Boolean_t WriteBinary
);
188 bool DumpGeometry(FileStream_s
* FileStream
,
190 Boolean_t WriteBinary
,
191 Boolean_t WriteGridDataAsPolar
);
192 bool DumpText(FileStream_s
* FileStream
,
194 Boolean_t WriteBinary
,
195 Boolean_t WriteGridDataAsPolar
);
196 EXTERN Boolean_t
DumpCustomAxisLabels(FileStream_s
*FileStream
,
197 Boolean_t WriteBinary
,
198 StringList_pa LabelBase
);
200 #if defined TECPLOTKERNEL
201 /* CORE SOURCE CODE REMOVED */
204 #if defined TECPLOTKERNEL
205 /* CORE SOURCE CODE REMOVED */
208 EXTERN Boolean_t
WriteBinaryMagic(FileStream_s
*FileStream
);
210 bool writeBinaryVersionNumber(FileStream_s
& fileStream
,