libccmio

Home Modules Examples

/u/xeona04/people/prewett/src/libccmio/libccmio/ccmioprivate.h

Go to the documentation of this file.
00001 #ifndef CCMIO_PRIVATE_H
00002 #define CCMIO_PRIVATE_H
00003 
00004 /*@@
00005  *  Program: Star File Format Library  - $RCSfile: ccmioprivate.h,v $
00006  *  Author:  Geoff Prewett
00007  *  Date:    July 31, 2003
00008  *
00009  *
00010  *  Star File Format Library - Copyright (C) 2003 by adapco, Ltd.
00011  *
00012  *  This program is the property of adapco, Ltd. and contains
00013  *  confidential and proprietary information.  The unauthorized use,
00014  *  distribution, or duplication of this program is prohibited.
00015  *  All rights reserved.
00016  *
00017  *  $Id: ccmioprivate.h,v 1.7 2006/06/05 21:12:16 geoffp Exp $
00018  */
00019 
00020 #ifndef MAKEDEPEND
00021 #include <stdarg.h>
00022 #endif
00023 
00024 #include "libccmio/ccmio.h"
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00030 #define StoreCStyleArrays       0       /* If set to 1, stores arrays in the
00031                                            ADF file in C order (by reversing
00032                                            the dimensions) */
00033 
00034 #define kCCMIOMaxADFNodeSize    2147479552  /* 2 GB - 4096 (1 ADF block size)*/
00035 /* Test the extended ADF feature with these sizes (keep the node size small!) */
00036 /*#define kCCMIOMaxADFNodeSize  100000000 */
00037 /*#define kCCMIOMaxADFNodeSize  7000000 */
00038 /*#define kCCMIOMaxADFNodeSize  6000000 */
00039 /*#define kCCMIOMaxADFNodeSize  128 */
00040 /*#define kCCMIOMaxADFNodeSize  110 */
00041 /*#define kCCMIOMaxADFNodeSize  36 */
00042 /*#define kCCMIOMaxADFNodeSize  24 */  /* Use this for the ccmtest test also */
00043 /*#define kCCMIOMaxADFNodeSize  100000 */
00044 #define kCCMIOExtendedDataSize  "ExtendedSize"
00045 #define kCCMIOExtendedDataName  "ExtendedData"
00046 #define kCCMIOExtendedDataLabel "extendedData"
00047 
00048 typedef int ADFError;
00049 
00051 void MakeInvalidNode( CCMIONode *node );
00052 
00054 int IsRootNode( CCMIONode node );
00055 
00057 unsigned int CCMIOGetDataTypeSize( CCMIODataType type );
00058 
00060 char const* CCMIOGetDataTypeADFName( CCMIODataType type );
00061 
00063 CCMIODataType CCMIOGetCCMIODataType( char const *dataStr );
00064 
00067 CCMIOError IsSameFormat( CCMIONode node, CCMIODataType type, int dimSize );
00068 
00070 int ParseArgs( va_list args, CCMIOIndex *out );
00071 
00072 #if StoreCStyleArrays
00073 
00075 void FortranToCArray( int size, int *ary );
00076 #endif /* StoreCStyleArrays */
00077 
00082 int CalcOffset( int n, int coord[], int dimWidth[] );
00083 
00086 CCMIOError GetADFNodeDimensions( CCMIOError *err, CCMIONode node,
00087                                  int *nDims, int *dims );
00088 
00091 CCMIOSize GetADFNodeDataSize( CCMIOError *err, CCMIONode node );
00092 
00094 int IsADFError( int adfErr );
00095 
00097 CCMIOError ADFToCCMIOError( int adfErr );
00098 
00099 /* This is defined in ccmioread.c */
00100 CCMIOError CCMIOExtendedADFIO( CCMIOError *err, CCMIONode node, 
00101                                CCMIOIOType ioType, CCMIODataType dataType,
00102                                int nDims, CCMIOIndex const *dims,
00103                                char *data, CCMIOIndex start, CCMIOIndex end );
00104 
00105 
00106 #ifdef __cplusplus
00107 }
00108 #endif
00109 #endif /* CCMIO_PRIVATE_H */
00110 
00111 
00112 /* Automatic setting of emacs local variables. */
00113 /* Local Variables: */
00114 /* mode: C++ */
00115 /* tab-width: 8 */
00116 /* End: */

Generated on Mon Jun 5 17:16:02 2006 for libccmio by doxygen1.2.18