16 vector<string>& chLabels,
26 fprintf(stderr,
" cdInit must be called before cdGetLineList.\n");
31 const char* chFilename = ( strlen(chFile) == 0 ) ?
"LineList_BLR.dat" : chFile;
43 ASSERT( chLabels.size() == 0 && wl.size() == 0 );
51 if( chLine[0] ==
'\n' )
55 if( chLine[0] ==
'#' )
59 LineID line = p.getLineID();
60 chLabels.push_back(line.
chLabel);
61 wl.push_back(line.
wave);
67 return chLabels.size();
FILE * open_data(const char *fname, const char *mode, access_scheme scheme)
const int FILENAME_PATH_LENGTH_2
void setline(const char *const card)
long int cdGetLineList(const char chFile[], vector< string > &chLabels, vector< realnum > &wl)
#define DEBUG_ENTRY(funcname)
int fprintf(const Output &stream, const char *format,...)
char * read_whole_line(char *chLine, int nChar, FILE *ioIN)