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

Method GetInstance

pluginbase/src/scopyjs.cpp:50–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48ScopyJS::~ScopyJS() {}
49
50ScopyJS *ScopyJS::GetInstance()
51{
52 if(pinstance_ == nullptr) {
53 pinstance_ = new ScopyJS(QApplication::instance()); // singleton has the app as parent
54 pinstance_->init();
55 }
56 return pinstance_;
57}
58
59void ScopyJS::exit() { QApplication::closeAllWindows(); }
60

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected