foam to Tecplot360 converter
[OpenFOAM-1.6.x.git] / applications / utilities / postProcessing / dataConversion / foamToTecplot360 / tecio / tecsrc / FILESTREAM.h
blobedb10ce253204c3b8b8390df395b058ff5300246
1 /*
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.
17 * Tecplot, Inc.
18 * 3535 Factoria Blvd, Ste. 550
19 * Bellevue, WA 98006, USA
20 * Phone: +1 425 653 1200
21 * http://www.tecplot.com/
25 *****************************************************************
26 *****************************************************************
27 ******* ********
28 ****** Copyright (C) 1988-2008 Tecplot, Inc. *******
29 ******* ********
30 *****************************************************************
31 *****************************************************************
33 #if !defined FILESTREAM_h
34 #define FILESTREAM_h
36 #if defined EXTERN
37 # undef EXTERN
38 #endif
39 #if defined FILESTREAMMODULE
40 # define EXTERN
41 #else
42 # define EXTERN extern
43 #endif
45 typedef struct
47 FILE *File;
48 Boolean_t IsByteOrderNative;
49 } FileStream_s;
51 /**
52 * Creates a structure for associating an open file stream with its byte
53 * order. The byte order can changed at any time.
55 * @param File
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.
60 * @return
61 * An allocated structure associating an open file to its byte order.
63 EXTERN FileStream_s *FileStreamAlloc(FILE *File,
64 Boolean_t IsByteOrderNative);
66 /**
67 * Deallocates the structure associating the file stream with the byte order.
68 * This function does NOT close the file.
70 * @param FileStream
71 * Pointer to an open file stream or a pointer to NULL.
73 EXTERN void FileStreamDealloc(FileStream_s **FileStream);
75 #endif