Public Member Functions | Protected Member Functions | Private Attributes | List of all members
XFuncSynth Class Referenceabstract
Inheritance diagram for XFuncSynth:
Inheritance graph
[legend]

Public Member Functions

 XFuncSynth (const char *name, bool runtime, Transaction &tr_meas, const shared_ptr< XMeasure > &meas)
 
virtual ~XFuncSynth ()
 usually nothing to do
 
virtual void showForms ()
 Shows all forms belonging to driver.
 
- Public Member Functions inherited from XPrimaryDriver
 XPrimaryDriver (const char *name, bool runtime, Transaction &tr_meas, const shared_ptr< XMeasure > &meas)
 
- Public Member Functions inherited from XDriver
 XDriver (const char *name, bool runtime, Transaction &tr_meas, const shared_ptr< XMeasure > &meas)
 
- Public Member Functions inherited from XNode
 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< XNodegetChild (const XString &var) const
 
shared_ptr< XNodegetParent () const
 
void setUIEnabled (bool v)
 Enables/disables controls over scripting/GUI.
 
void disable ()
 Disables all scripting/GUI operations on this node hereafter.
 
- Public Member Functions inherited from Transactional::Node< XNode >
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)
 
XNodeupperNode (Snapshot< XNode > &shot)
 Finds the parent node in shot.
 
Snapshot< XNodeiterate_commit (Closure)
 
Snapshot< XNodeiterate_commit_if (Closure)
 
void iterate_commit_while (Closure)
 
void print_ () const
 
 Node (const Node &)=delete
 
Nodeoperator= (const Node &)=delete
 

Protected Member Functions

virtual void start ()
 Starts up your threads, connects GUI, and activates signals.
 
virtual void stop ()
 
virtual void analyzeRaw (RawDataReader &reader, Transaction &tr) throw (XRecordError&)
 
virtual void visualize (const Snapshot &shot)
 
const shared_ptr< XBoolNode > & output () const
 driver specific part below
 
const shared_ptr
< XTouchableNode > & 
trig () const
 trigger to burst
 
const shared_ptr< XComboNode > & mode () const
 
const shared_ptr< XComboNode > & function () const
 
const shared_ptr< XDoubleNode > & freq () const
 [Hz]
 
const shared_ptr< XDoubleNode > & amp () const
 [Vp-p]
 
const shared_ptr< XDoubleNode > & phase () const
 [deg.]
 
const shared_ptr< XDoubleNode > & offset () const
 [V]
 
virtual void onOutputChanged (const Snapshot &shot, XValueNodeBase *)=0
 
virtual void onTrigTouched (const Snapshot &shot, XTouchableNode *)=0
 
virtual void onModeChanged (const Snapshot &shot, XValueNodeBase *)=0
 
virtual void onFunctionChanged (const Snapshot &shot, XValueNodeBase *)=0
 
virtual void onFreqChanged (const Snapshot &shot, XValueNodeBase *)=0
 
virtual void onAmpChanged (const Snapshot &shot, XValueNodeBase *)=0
 
virtual void onPhaseChanged (const Snapshot &shot, XValueNodeBase *)=0
 
virtual void onOffsetChanged (const Snapshot &shot, XValueNodeBase *)=0
 
- Protected Member Functions inherited from XPrimaryDriver
virtual void closeInterface ()=0
 
void finishWritingRaw (const shared_ptr< const RawData > &rawdata, const XTime &time_awared, const XTime &time_recorded)
 
- Protected Member Functions inherited from XDriver
void record (Transaction &tr, const XTime &time_awared, const XTime &time_recorded)
 

Private Attributes

const shared_ptr< XBoolNodem_output
 
const shared_ptr< XTouchableNodem_trig
 
const shared_ptr< XComboNodem_mode
 
const shared_ptr< XComboNodem_function
 
const shared_ptr< XDoubleNodem_freq
 
const shared_ptr< XDoubleNodem_amp
 
const shared_ptr< XDoubleNodem_phase
 
const shared_ptr< XDoubleNodem_offset
 
shared_ptr< XListenerm_lsnOutput
 
shared_ptr< XListenerm_lsnMode
 
shared_ptr< XListenerm_lsnFunction
 
shared_ptr< XListenerm_lsnFreq
 
shared_ptr< XListenerm_lsnAmp
 
shared_ptr< XListenerm_lsnPhase
 
shared_ptr< XListenerm_lsnOffset
 
shared_ptr< XListenerm_lsnTrig
 
xqcon_ptr m_conOutput
 
xqcon_ptr m_conTrig
 
xqcon_ptr m_conMode
 
xqcon_ptr m_conFunction
 
xqcon_ptr m_conFreq
 
xqcon_ptr m_conAmp
 
xqcon_ptr m_conPhase
 
xqcon_ptr m_conOffset
 
const qshared_ptr< FrmFuncSynthm_form
 

Additional Inherited Members

- Public Types inherited from Transactional::Node< XNode >
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
 
- Static Public Member Functions inherited from XNode
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)
 

Detailed Description

Definition at line 24 of file funcsynth.h.

Member Function Documentation

void XFuncSynth::analyzeRaw ( RawDataReader reader,
Transaction tr 
) throw (XRecordError&)
protectedvirtual

This function will be called when raw data are written. Implement this function to convert the raw data to the record (Payload).

See Also
analyze()

Implements XPrimaryDriver.

Definition at line 122 of file funcsynth.cpp.

void XFuncSynth::showForms ( )
virtual

Shows all forms belonging to driver.

impliment form->show() here

Implements XPrimaryDriver.

Definition at line 59 of file funcsynth.cpp.

void XFuncSynth::stop ( )
protectedvirtual

Shuts down your threads, unconnects GUI, and deactivates signals This function may be called even if driver has already stopped.

Implements XPrimaryDriver.

Definition at line 99 of file funcsynth.cpp.

References XPrimaryDriver::closeInterface().

void XFuncSynth::visualize ( const Snapshot shot)
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.

Definition at line 125 of file funcsynth.cpp.


The documentation for this class was generated from the following files:

Generated for KAME4 by  doxygen 1.8.3