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/
25 *****************************************************************
26 *****************************************************************
28 ****** Copyright (C) 1988-2008 Tecplot, Inc. *******
30 *****************************************************************
31 *****************************************************************
33 #if !defined FILESTREAM_h
39 #if defined FILESTREAMMODULE
42 # define EXTERN extern
48 Boolean_t IsByteOrderNative
;
52 * Creates a structure for associating an open file stream with its byte
53 * order. The byte order can changed at any time.
56 * Handle to a file which can be NULL.
57 * @param IsByteOrderNative
58 * TRUE if the file's byte order is native, FALSE if foreign.
61 * An allocated structure associating an open file to its byte order.
63 EXTERN FileStream_s
*FileStreamAlloc(FILE *File
,
64 Boolean_t IsByteOrderNative
);
67 * Deallocates the structure associating the file stream with the byte order.
68 * This function does NOT close the file.
71 * Pointer to an open file stream or a pointer to NULL.
73 EXTERN
void FileStreamDealloc(FileStream_s
**FileStream
);