|
| | InputGeoFile (const std::string &filename) |
| | InputGeoFile constructor.
|
| |
| const std::string & | next_chunk () |
| | Advances to the next chunk.
|
| |
| void | read_attribute (void *addr) |
| | Reads the latest attribute.
|
| |
| void | skip_attribute_set () |
| | Indicates that all the attributes attached to the latest attribute set should be skipped.
|
| |
| const AttributeSetInfo & | current_attribute_set () const |
| | Gets the current attribute set.
|
| |
| const AttributeInfo & | current_attribute () const |
| | Gets the current attribute.
|
| |
| const std::string & | current_comment () const |
| |
| void | read_command_line (std::vector< std::string > &args) |
| | Reads the command line from the file.
|
| |
| | GeoFile (const std::string &filename) |
| | GeoFile constructor.
|
| |
|
| ~GeoFile () |
| | GeoFile destructor.
|
| |
| bool | is_ascii () const |
| | Tests whether this GeoFile is ascii.
|
| |
| const std::string & | current_chunk_class () const |
| | Gets the current chunk class.
|
| |
| long | current_chunk_size () const |
| | Gets the size of the current chunk.
|
| |
| AttributeSetInfo * | find_attribute_set (const std::string &name) |
| | Finds an attribute set by name.
|
| |
| const AttributeSetInfo * | find_attribute_set (const std::string &name) const |
| | Finds an attribute set by name.
|
| |
| index_t | read_int () |
| | Reads an integer from the file.
|
| |
| void | write_int (index_t x, const char *comment=nullptr) |
| | Writes an integer into the file.
|
| |
| std::string | read_string () |
| | Reads a string from the file.
|
| |
| void | write_string (const std::string &s, const char *comment=nullptr) |
| | Writes a string into the file.
|
| |
| size_t | read_size () |
| | Reads an unsigned 64 bits integer from the file.
|
| |
| void | write_size (size_t x) |
| | Writes an unsigned 64 bits integer into the file.
|
| |
| std::string | read_chunk_class () |
| | Reads a chunk class from the file.
|
| |
| void | write_chunk_class (const std::string &chunk_class) |
| | Writes a chunk class into the file.
|
| |
| void | write_string_array (const std::vector< std::string > &strings) |
| | Writes a string array into the file.
|
| |
| void | read_string_array (std::vector< std::string > &strings) |
| | Reads a string array from the file.
|
| |
| size_t | string_size (const std::string &s) const |
| | Gets the size in bytes used by a given string in the file.
|
| |
| size_t | string_array_size (const std::vector< std::string > &strings) const |
| | Gets the size in bytes used by a given string array in the file.
|
| |
|
void | read_chunk_header () |
| | Reads a chunk header from the file.
|
| |
| void | write_chunk_header (const std::string &chunk_class, size_t size) |
| | Writes a chunk header into the file.
|
| |
|
void | check_chunk_size () |
| | Checks that the actual chunk size corresponds to the specified chunk size.
|
| |
|
void | check_zlib_version () |
| | Compares the zlib version declared in the header file with the zlib version obtained from the runtime, and outputs an error message if they differ.
|
| |
| void | clear_attribute_maps () |
| | Clears all memorized information about attributes and attribute sets.
|
| |
Used to read a structured binary file.
Definition at line 667 of file geofile.h.