Fennel: FlatFileColumnParseResult Class Reference (original) (raw)

Sets the fields of a column parse result, based on the result type and the size of the column.

Definition at line 30 of file FlatFileParser.cpp.

References FIELD_DELIM, MAX_LENGTH, next, NO_DELIM, and ROW_DELIM.

Referenced by FlatFileParser::scanColumn(), and FlatFileParser::scanFixedColumn().

00032 { 00033 this->type = type; 00034 this->size = size; 00035 00036 next = buffer + size; 00037 switch (type) { 00038 case NO_DELIM: 00039 case MAX_LENGTH: 00040 break; 00041 case FlatFileColumnParseResult::FIELD_DELIM: 00042 case FlatFileColumnParseResult::ROW_DELIM: 00043 next++; 00044 break; 00045 default: 00046 permAssert(false); 00047 } 00048 }