MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / getScriptContent

Method getScriptContent

core/src/scopymainwindow_api.cpp:296–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296const QString ScopyMainWindow_API::getScriptContent(QFile *file)
297{
298 QTextStream stream(file);
299 QString firstLine = stream.readLine();
300 if(!firstLine.startsWith("#!"))
301 stream.seek(0);
302
303 QString content = stream.readAll();
304 file->close();
305 return content;
306}
307
308bool ScopyMainWindow_API::sortByUUID(const QString &k1, const QString &k2)
309{

Callers

nothing calls this directly

Calls 3

readLineMethod · 0.80
readAllMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected