Base class for digital storage oscilloscope. More...
#include <networkanalyzer.h>
Classes | |
struct | Payload |
Public Member Functions | |
XNetworkAnalyzer (const char *name, bool runtime, Transaction &tr_meas, const shared_ptr< XMeasure > &meas) | |
virtual | ~XNetworkAnalyzer () |
usually nothing to do. | |
virtual void | showForms () |
Shows all forms belonging to driver. | |
![]() | |
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) | |
![]() | |
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 | analyzeRaw (RawDataReader &reader, Transaction &tr) throw (XRecordError&) |
virtual void | visualize (const Snapshot &shot) |
const shared_ptr< XScalarEntry > & | marker1X () const |
driver specific part below | |
const shared_ptr< XScalarEntry > & | marker1Y () const |
const shared_ptr< XScalarEntry > & | marker2X () const |
const shared_ptr< XScalarEntry > & | marker2Y () const |
const shared_ptr< XDoubleNode > & | startFreq () const |
const shared_ptr< XDoubleNode > & | stopFreq () const |
const shared_ptr< XComboNode > & | points () const |
const shared_ptr< XUIntNode > & | average () const |
const shared_ptr < XTouchableNode > & | calOpen () const |
const shared_ptr < XTouchableNode > & | calShort () const |
const shared_ptr < XTouchableNode > & | calTerm () const |
const shared_ptr < XTouchableNode > & | calThru () const |
virtual void | onStartFreqChanged (const Snapshot &shot, XValueNodeBase *)=0 |
virtual void | onStopFreqChanged (const Snapshot &shot, XValueNodeBase *)=0 |
virtual void | onAverageChanged (const Snapshot &shot, XValueNodeBase *)=0 |
virtual void | onPointsChanged (const Snapshot &shot, XValueNodeBase *)=0 |
virtual void | onCalOpenTouched (const Snapshot &shot, XTouchableNode *)=0 |
virtual void | onCalShortTouched (const Snapshot &shot, XTouchableNode *)=0 |
virtual void | onCalTermTouched (const Snapshot &shot, XTouchableNode *)=0 |
virtual void | onCalThruTouched (const Snapshot &shot, XTouchableNode *)=0 |
virtual void | getMarkerPos (unsigned int num, double &x, double &y)=0 |
virtual void | oneSweep ()=0 |
virtual void | startContSweep ()=0 |
virtual void | acquireTrace (shared_ptr< RawData > &, unsigned int ch)=0 |
virtual void | convertRaw (RawDataReader &reader, Transaction &tr)=0 throw (XRecordError&) |
Converts raw to dispaly-able. | |
![]() | |
virtual void | start () |
virtual void | closeInterface ()=0 |
This function should not cause an exception. | |
![]() | |
void | finishWritingRaw (const shared_ptr< const RawData > &rawdata, const XTime &time_awared, const XTime &time_recorded) |
![]() | |
void | record (Transaction &tr, const XTime &time_awared, const XTime &time_recorded) |
Private Member Functions | |
const shared_ptr< XWaveNGraph > & | waveForm () const |
void * | execute (const atomic< bool > &) |
Private Attributes | |
const shared_ptr< XScalarEntry > | m_marker1X |
const shared_ptr< XScalarEntry > | m_marker1Y |
const shared_ptr< XScalarEntry > | m_marker2X |
const shared_ptr< XScalarEntry > | m_marker2Y |
const shared_ptr< XDoubleNode > | m_startFreq |
const shared_ptr< XDoubleNode > | m_stopFreq |
const shared_ptr< XComboNode > | m_points |
const shared_ptr< XUIntNode > | m_average |
const shared_ptr< XTouchableNode > | m_calOpen |
const shared_ptr< XTouchableNode > | m_calShort |
const shared_ptr< XTouchableNode > | m_calTerm |
const shared_ptr< XTouchableNode > | m_calThru |
const qshared_ptr < FrmNetworkAnalyzer > | m_form |
const shared_ptr< XWaveNGraph > | m_waveForm |
shared_ptr< XListener > | m_lsnOnStartFreqChanged |
shared_ptr< XListener > | m_lsnOnStopFreqChanged |
shared_ptr< XListener > | m_lsnOnPointsChanged |
shared_ptr< XListener > | m_lsnOnAverageChanged |
shared_ptr< XListener > | m_lsnCalOpen |
shared_ptr< XListener > | m_lsnCalShort |
shared_ptr< XListener > | m_lsnCalTerm |
shared_ptr< XListener > | m_lsnCalThru |
std::deque< xqcon_ptr > | m_conUIs |
shared_ptr< XGraph > | m_graph |
shared_ptr< XXYPlot > | m_markerPlot |
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) |
Base class for digital storage oscilloscope.
Definition at line 33 of file networkanalyzer.h.
|
protectedvirtual |
This function will be called when raw data are written. Implement this function to convert the raw data to the record (Payload).
Implements XPrimaryDriver.
Definition at line 128 of file networkanalyzer.cpp.
|
protectedvirtual |
This function is called after committing XPrimaryDriver::analyzeRaw() or XSecondaryDriver::analyze(). This might be called even if the record is invalid (time() == false).
Implements XDriver.
Reimplemented in XNMRBuiltInNetworkAnalyzer, and XSecondaryDriverInterface< XNetworkAnalyzer >.
Definition at line 150 of file networkanalyzer.cpp.
Referenced by XNMRBuiltInNetworkAnalyzer::visualize().