Public Types | |
enum | Event { NONE, END_OF_FILE, READ_ERROR, BEGIN_SECTION, END_SECTION, INT, STRING, FLOAT, FLOAT_BLOCK, BLOB, BLOB_REF } |
Public Member Functions | |
InFile (const std::string &filename) | |
InFile (GenericIn *file) | |
bool | open_ok () |
Event | event () |
std::string | event_name () |
float | event_float () |
int | event_int () |
std::string | event_data () |
const std::vector< float > & | event_float_block () |
std::string | event_blob_sum () |
void | next_event () |
void | add_skip_event (const std::string &event) |
std::string | file_type () |
int | file_version () |
GenericIn * | open_blob () |
Protected Member Functions | |
bool | read_raw_string (std::string &str) |
bool | read_raw_int (int &i) |
bool | read_raw_float (float &f) |
bool | read_raw_float_block (std::vector< float > &fb) |
bool | skip_raw_float_block () |
void | read_file_type_and_version () |
Protected Attributes | |
GenericIn * | file |
Event | current_event |
std::string | current_event_str |
int | current_event_int |
std::string | current_event_data |
float | current_event_float |
std::vector< float > | current_event_float_block |
size_t | current_event_blob_pos |
size_t | current_event_blob_size |
std::string | current_event_blob_sum |
std::string | m_file_type |
int | m_file_version |
std::set< std::string > | skip_events |