41 #include "EST_Option.h"
42 #include "EST_io_aux.h"
43 #include "EST_Token.h"
60 sprintf(ctmp,
"%f", rval);
70 sprintf(ctmp,
"%d", rval);
83 cerr <<
"EST_Option: No value set for " << rkey << endl;
90 if (tval != Empty_String)
94 cerr <<
"EST_Option: No value set for " << rkey << endl;
101 if (tval != Empty_String)
105 cerr <<
"EST_Option: No value set for " << rkey << endl;
112 if (tval != Empty_String)
116 cerr <<
"EST_Option: No value set for " << rkey << endl;
123 sprintf(tmp,
"%d", rval);
127 int EST_Option::add_fitem(
const EST_String &rkey,
const float &rval)
130 sprintf(tmp,
"%f", rval);
144 if (((filename ==
"-") ? ts.
open(cin) : ts.
open(filename)) != 0)
146 cerr <<
"can't open EST_Option input file " << filename << endl;
147 return misc_read_error;
153 k = ts.
get().string();
156 v = v.
after(RXwhite);
160 cout <<
"Include directive\n";
174 for (ptr =
list.head(); ptr; ptr = ptr->next())
187 for (ptr = kv.
list.head(); ptr; ptr = ptr->next())