15 vector<char*>& chLabels,
25 fprintf(stderr,
" cdInit must be called before cdGetLineList.\n");
30 const char* chFilename = ( strlen(chFile) == 0 ) ?
"LineList_BLR.dat" : chFile;
42 ASSERT( chLabels.size() == 0 && wl.size() == 0 );
50 if( chLine[0] ==
'\n' )
54 if( chLine[0] ==
'#' )
58 char* label =
new char[5];
61 chLabels.push_back(label);
68 return chLabels.size();
const int FILENAME_PATH_LENGTH_2
char * read_whole_line(char *chLine, int nChar, FILE *ioIN)
#define DEBUG_ENTRY(funcname)
long int cdGetLineList(const char chFile[], vector< char * > &chLabels, vector< realnum > &wl)
void setline(const char *const card)
void getLineID(char *LabelBuf, realnum *wave)
FILE * open_data(const char *fname, const char *mode, access_scheme scheme)