… | |
… | |
452 | // skip the current key-value (usually fetch next line, for |
452 | // skip the current key-value (usually fetch next line, for |
453 | // multiline-fields, skips till the corresponding end-kw |
453 | // multiline-fields, skips till the corresponding end-kw |
454 | MTH void skip (); |
454 | MTH void skip (); |
455 | MTH void skip_block (); // skips till and over KW_end |
455 | MTH void skip_block (); // skips till and over KW_end |
456 | |
456 | |
457 | char *get_str () { return value; } // may be 0 |
457 | bool has_value () { return value; } |
|
|
458 | const char *get_str () { return value_nn; } // empty string when missing |
458 | void get_ml (keyword kend, shstr &sh); |
459 | void get_ml (keyword kend, shstr &sh); |
459 | |
460 | |
460 | void get_ornull (shstr &sh) const { sh = value; } |
461 | void get_ornull (shstr &sh) const { sh = value; } |
461 | void get (shstr &sh) const { sh = value; } // might want to check for non-null here |
462 | void get (shstr &sh) const { sh = value; } // might want to check for non-null here |
462 | |
463 | |