3 #ifndef SPECTMORPH_INFILE_HH
4 #define SPECTMORPH_INFILE_HH
12 #include "smstdioin.hh"
13 #include "smmmapin.hh"
49 std::string current_event_str;
50 bool current_event_bool;
51 int current_event_int;
52 std::string current_event_data;
53 float current_event_float;
54 std::vector<float> current_event_float_block;
55 std::vector<uint16_t> current_event_uint16_block;
56 size_t current_event_blob_pos;
57 size_t current_event_blob_size;
58 std::string current_event_blob_sum;
59 std::string m_file_type;
62 std::set<std::string> skip_events;
64 bool read_raw_bool (
bool& b);
65 bool read_raw_string (std::string& str);
66 bool read_raw_int (
int &i);
67 bool read_raw_float (
float &f);
68 bool read_raw_float_block (std::vector<float>& fb);
69 bool skip_raw_float_block();
70 bool read_raw_uint16_block (std::vector<uint16_t>& ib);
71 bool skip_raw_uint16_block();
73 void read_file_type_and_version();
76 InFile (
const std::string& filename);
Generic Input Stream.
Definition: smgenericin.hh:18
Class to read SpectMorph binary data.
Definition: sminfile.hh:27
std::string file_type()
Definition: sminfile.cc:472
Event event()
Definition: sminfile.cc:69
float event_float()
Definition: sminfile.cc:380
int event_int()
Definition: sminfile.cc:391
const std::vector< float > & event_float_block()
Definition: sminfile.cc:424
void next_event()
Definition: sminfile.cc:112
std::string event_name()
Definition: sminfile.cc:369
int file_version()
Definition: sminfile.cc:483
std::string event_blob_sum()
Definition: sminfile.cc:449
bool event_bool()
Definition: sminfile.cc:402
bool open_ok()
Definition: sminfile.hh:86
void add_skip_event(const std::string &event)
Definition: sminfile.cc:461
std::string event_data()
Definition: sminfile.cc:413
InFile(const std::string &filename)
Definition: sminfile.cc:17
const std::vector< uint16_t > & event_uint16_block()
Definition: sminfile.cc:435
GenericIn * open_blob()
Definition: sminfile.cc:358