MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / set_file

Method set_file

DSView/pv/sigsession.cpp:297–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295 }
296
297 bool SigSession::set_file(QString name)
298 {
299 assert(!_is_saving);
300 assert(!_is_working);
301
302 std::string file_name = pv::path::ToUnicodePath(name);
303 dsv_info("Load file: \"%s\"", file_name.c_str());
304
305 std::string file_str = name.toUtf8().toStdString();
306
307 if (ds_device_from_file(file_str.c_str()) != SR_OK)
308 {
309 dsv_err("Load file error!");
310 return false;
311 }
312
313 return set_default_device();
314 }
315
316 void SigSession::close_file(ds_device_handle dev_handle)
317 {

Callers 1

on_load_fileMethod · 0.80

Calls 2

ToUnicodePathFunction · 0.85
ds_device_from_fileFunction · 0.85

Tested by

no test coverage detected