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 );
52 for(
size_t i=0; ; ++i )
54 if( chLine[i] ==
'\n' || chLine[i] ==
'\r' )
56 if( chLine[i] ==
'\0' )
68 LineID line = p.getLineID();
69 if( !p.lgReachedEnd() )
71 fprintf(
ioQQQ,
"cdGetLineList: found junk at end of input line in file %s:\n", chFile );
75 chLabels.push_back(line.
chLabel);
76 wl.push_back(line.
wave);
82 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)