Public Member Functions | |
XPrimaryDriverWithThread (const char *name, bool runtime, Transaction &tr_meas, const shared_ptr< XMeasure > &meas) | |
virtual void | stop () |
![]() | |
XPrimaryDriver (const char *name, bool runtime, Transaction &tr_meas, const shared_ptr< XMeasure > &meas) | |
virtual void | showForms ()=0 |
Shows all forms belonging to driver. | |
![]() | |
XDriver (const char *name, bool runtime, Transaction &tr_meas, const shared_ptr< XMeasure > &meas) | |
![]() | |
XNode (const char *name, bool runtime=false) | |
template<class T > | |
shared_ptr< T > | create (const char *name) |
template<class T , typename... Args> | |
shared_ptr< T > | create (const char *name, bool runtime, Args &&...args) |
template<class T > | |
shared_ptr< T > | create (Transaction &tr, const char *name) |
template<class T , typename... Args> | |
shared_ptr< T > | create (Transaction &tr, const char *name, bool runtime, Args &&...args) |
XString | getName () const |
virtual XString | getLabel () const |
XString | getTypename () const |
shared_ptr< XNode > | getChild (const XString &var) const |
shared_ptr< XNode > | getParent () const |
void | setUIEnabled (bool v) |
Enables/disables controls over scripting/GUI. | |
void | disable () |
Disables all scripting/GUI operations on this node hereafter. | |
![]() | |
bool | insert (Transaction< XNode > &tr, const shared_ptr< XNode > &var, bool online_after_insertion=false) |
void | insert (const shared_ptr< XNode > &var) |
bool | release (Transaction< XNode > &tr, const shared_ptr< XNode > &var) |
void | release (const shared_ptr< XNode > &var) |
void | releaseAll () |
bool | swap (Transaction< XNode > &tr, const shared_ptr< XNode > &x, const shared_ptr< XNode > &y) |
void | swap (const shared_ptr< XNode > &x, const shared_ptr< XNode > &y) |
XNode * | upperNode (Snapshot< XNode > &shot) |
Finds the parent node in shot. | |
Snapshot< XNode > | iterate_commit (Closure) |
Snapshot< XNode > | iterate_commit_if (Closure) |
void | iterate_commit_while (Closure) |
void | print_ () const |
Node (const Node &)=delete | |
Node & | operator= (const Node &)=delete |
Protected Member Functions | |
virtual void | start () |
virtual void | closeInterface ()=0 |
This function should not cause an exception. | |
virtual void * | execute (const atomic< bool > &terminated)=0 |
![]() | |
virtual void | analyzeRaw (RawDataReader &reader, Transaction &tr)=0 throw (XRecordError&) |
void | finishWritingRaw (const shared_ptr< const RawData > &rawdata, const XTime &time_awared, const XTime &time_recorded) |
![]() | |
virtual void | visualize (const Snapshot &shot)=0 |
void | record (Transaction &tr, const XTime &time_awared, const XTime &time_recorded) |
Private Member Functions | |
void * | execute_internal (const atomic< bool > &terminated) |
Private Attributes | |
shared_ptr< XThread < XPrimaryDriverWithThread > > | m_thread |
Additional Inherited Members | |
![]() | |
using | NodeNotFoundError = std::domain_error |
using | NodeList = fast_vector< shared_ptr< XNode >, 2 > |
using | iterator = typename NodeList::iterator |
using | const_iterator = typename NodeList::const_iterator |
![]() | |
template<class T__ > | |
static shared_ptr< T__ > | createOrphan (const char *name) |
template<class T__ , typename... Args_> | |
static shared_ptr< T__ > | createOrphan (const char *name, bool runtime, Args_ &&...args) |
Definition at line 19 of file primarydriverwiththread.h.
|
inlineprotectedvirtual |
Starts up your threads, connects GUI, and activates signals. This function should not cause an exception.
Implements XPrimaryDriver.
Reimplemented in XSecondaryDriverInterface< XNetworkAnalyzer >.
Definition at line 54 of file primarydriverwiththread.h.
Referenced by XAgilentNetworkAnalyzer::convertRaw(), XVNWA3ENetworkAnalyzer::convertRaw(), XNIDAQmxDSO::open(), XSR830::open(), XOmronE5_CModbus::open(), XITC503::open(), XAgilentNetworkAnalyzer::open(), XThamwayT300ImpedanceAnalyzer::open(), XLI5640::open(), XTDS::open(), XLecroyDSO::open(), XIPS120::open(), XAH2500A::open(), XAVS47IB::open(), XCryogenicSMS::open(), XVNWA3ENetworkAnalyzer::open(), XCryocon::open(), XLinearResearch700::open(), XNeoceraLTC21::open(), XLakeShore340::open(), XLakeShore370::open(), and XKE2700w7700::open().
|
inlinevirtual |
Shuts down your threads, unconnects GUI, and deactivates signals.
This function may be called even if driver has already stopped. This should not cause an exception.
Implements XPrimaryDriver.
Reimplemented in XSecondaryDriverInterface< XNetworkAnalyzer >.
Definition at line 63 of file primarydriverwiththread.h.
References closeInterface().