00001 /* This file is part of Cloudy and is copyright (C)1978-2011 by Gary J. Ferland and 00002 * others. For conditions of distribution and use see copyright notice in license.txt */ 00003 00004 #ifndef INPUT_H_ 00005 #define INPUT_H_ 00006 00007 /* input.h */ 00008 00010 #define NKRD 4000 00011 00018 bool lgInputComment( 00019 const char *chLine ); 00020 00022 void input_readvector(const char* chFile, 00023 double vector[], 00024 long n, 00025 bool* lgEOF); 00027 struct t_input { 00028 00032 char chCardSav[NKRD][INPUT_LINE_LENGTH], 00033 00037 chTitle[INPUT_LINE_LENGTH]; 00038 00042 char chDelimiter[3]; 00043 00044 long int 00046 nSave, 00047 00049 nRead, 00050 00052 nSaveIni, 00053 00056 iReadWay, 00057 00059 nReadSv; 00060 00063 bool lgUnderscoreFound; 00064 00067 bool lgBracketFound; 00068 00070 bool lgSetNoBuffering; 00071 00078 // friend CodeSmell 00079 private: 00080 friend class Parser; 00081 void readarray( 00082 char *chCard, 00083 bool *lgEOF); 00084 00085 public: 00086 void echo( FILE *ipOUT); 00087 00090 void init(void); 00091 00092 00093 }; 00094 extern t_input input; 00095 00096 00097 00098 #endif /* INPUT_H_ */