Lines Matching refs:ifile

111   InFile ifile (in);  in display_file()  local
113 sm_printf ("%s type = %s\n", spaces (indent).c_str(), ifile.file_type().c_str()); in display_file()
114 sm_printf ("%s version = %d\n", spaces (indent).c_str(), ifile.file_version()); in display_file()
116 while (ifile.event() != InFile::END_OF_FILE) in display_file()
118 if (ifile.event() == InFile::BEGIN_SECTION) in display_file()
121 sm_printf ("section %s {\n", ifile.event_name().c_str()); in display_file()
124 else if (ifile.event() == InFile::END_SECTION) in display_file()
130 else if (ifile.event() == InFile::STRING) in display_file()
133 … sm_printf ("string %s = \"%s\"\n", ifile.event_name().c_str(), ifile.event_data().c_str()); in display_file()
135 else if (ifile.event() == InFile::FLOAT) in display_file()
138 sm_printf ("float %s = %.7g\n", ifile.event_name().c_str(), ifile.event_float()); in display_file()
140 else if (ifile.event() == InFile::FLOAT_BLOCK) in display_file()
145 const vector<float>& fb = ifile.event_float_block(); in display_file()
146 sm_printf ("float_block %s[%zd] = {\n", ifile.event_name().c_str(), fb.size()); in display_file()
155 …sm_printf ("float_block %s[%zd] = {...}\n", ifile.event_name().c_str(), ifile.event_float_block().… in display_file()
158 else if (ifile.event() == InFile::UINT16_BLOCK) in display_file()
163 const vector<uint16_t>& ib = ifile.event_uint16_block(); in display_file()
164 sm_printf ("uint16_block %s[%zd] = {\n", ifile.event_name().c_str(), ib.size()); in display_file()
173 …sm_printf ("uint16_block %s[%zd] = {...}\n", ifile.event_name().c_str(), ifile.event_uint16_block(… in display_file()
176 else if (ifile.event() == InFile::INT) in display_file()
179 sm_printf ("int %s = %d\n", ifile.event_name().c_str(), ifile.event_int()); in display_file()
181 else if (ifile.event() == InFile::BOOL) in display_file()
184 … sm_printf ("bool %s = %s\n", ifile.event_name().c_str(), ifile.event_bool() ? "true" : "false"); in display_file()
186 else if (ifile.event() == InFile::BLOB) in display_file()
189 sm_printf ("blob %s {\n", ifile.event_name().c_str()); in display_file()
191 GenericIn *blob_in = ifile.open_blob(); in display_file()
202 else if (ifile.event() == InFile::BLOB_REF) in display_file()
205 sm_printf ("blob_ref %s {\n", ifile.event_name().c_str()); in display_file()
206 GenericIn *blob_in = ifile.open_blob(); in display_file()
215 else if (ifile.event() == InFile::READ_ERROR) in display_file()
222 sm_printf ("unhandled event %d\n", ifile.event()); in display_file()
224 ifile.next_event(); in display_file()