30#define MAX_CUTOFF 1000
46 tprintf(
"Error during read of shapetable pffmtable!\n");
53 const int kMaxLineSize = 100;
54 char line[kMaxLineSize];
55 while (fp->
FGets(line, kMaxLineSize) !=
nullptr) {
58 std::istringstream stream(line);
59 stream.imbue(std::locale::classic());
60 stream >> Class >> Cutoff;
64 if (Class.compare(
"NULL") == 0) {
70 Cutoffs[ClassId] = Cutoff;
void tprintf(const char *format,...)
bool DeSerialize(std::string &data)
char * FGets(char *buffer, int buffer_size)
UNICHAR_ID unichar_to_id(const char *const unichar_repr) const
ShapeTable * shape_table_
void ReadNewCutoffs(TFile *fp, uint16_t *Cutoffs)