40 #ifndef GEOGRAM_BASIC_LINE_STREAM
41 #define GEOGRAM_BASIC_LINE_STREAM
112 return feof(F_) ? true :
false;
182 if(!String::from_string(field(i), result)) {
183 conversion_error(i,
"integer");
201 if(!String::from_string(field(i), result)) {
202 conversion_error(i,
"unsigned integer");
220 if(!String::from_string(field(i), result)) {
221 conversion_error(i,
"floating point");
238 return strcmp(field(i), s) == 0;
272 GEO_NORETURN_DECL
void conversion_error(
273 index_t index,
const char* type
274 )
const GEO_NORETURN ;
279 static const index_t MAX_LINE_LEN = 65535;
282 std::string file_name_;
284 char line_[MAX_LINE_LEN];
285 std::vector<char*> field_;
Assertion checking mechanism.
#define geo_assert(x)
Verifies that a condition is met.
Common include file, providing basic definitions. Should be included before anything else by all head...
Global Vorpaline namespace.
geo_signed_index_t signed_index_t
The type for storing and manipulating indices differences.
geo_index_t index_t
The type for storing and manipulating indices.
Types and functions for numbers manipulation.
Functions for string manipulation.