| ||
Home | Modules | Examples |
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.2 2004/07/07 20:13:50 prewett Exp $ 00018 */ 00019 00020 #include <stdarg.h> 00021 #include "ccmio.h" 00022 00023 #ifdef __cplusplus 00024 extern "C" { 00025 #endif 00026 00027 #define StoreCStyleArrays 0 /* If set to 1, stores arrays in the 00028 ADF file in C order (by reversing 00029 the dimensions) */ 00030 00031 typedef int ADFError; 00032 00034 void MakeInvalidNode( CCMIONode *node ); 00035 00037 int IsRootNode( CCMIONode node ); 00038 00040 unsigned int CCMIOGetDataTypeSize( CCMIODataType type ); 00041 00043 const char* CCMIOGetDataTypeADFName( CCMIODataType type ); 00044 00046 CCMIODataType CCMIOGetCCMIODataType( const char *dataStr ); 00047 00050 CCMIOError IsSameFormat( CCMIONode node, CCMIODataType type, int dimSize ); 00051 00053 int ParseArgs( va_list args, int *out ); 00054 00055 #if StoreCStyleArrays 00056 00058 void FortranToCArray( int size, int *ary ); 00059 #endif /* StoreCStyleArrays */ 00060 00065 int CalcOffset( int n, int coord[], int dimWidth[] ); 00066 00068 int IsADFError( int adfErr ); 00069 00071 CCMIOError ADFToCCMIOError( int adfErr ); 00072 00073 00074 #ifdef __cplusplus 00075 } 00076 #endif 00077 #endif /* CCMIO_PRIVATE_H */