30#define MAX_CUTOFF 1000
46 tprintf(
"Error during read of shapetable pffmtable!\n");
52 const int kMaxLineSize = 100;
53 char line[kMaxLineSize];
54 while (fp->
FGets(line, kMaxLineSize) !=
nullptr) {
57 std::istringstream stream(line);
58 stream >> Class >> Cutoff;
62 if (Class.compare(
"NULL") == 0) {
68 Cutoffs[ClassId] = Cutoff;
DLLSYM void tprintf(const char *format,...)
bool DeSerialize(bool swap, FILE *fp)
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)