Relacs Core Library  0.9.8
Public Types | Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Friends | List of all members
RELACSWidget Class Reference

#include <relacswidget.h>

Inheritance diagram for RELACSWidget:
Inheritance graph
[legend]
Collaboration diagram for RELACSWidget:
Collaboration graph
[legend]

Public Types

enum  ModeTypes {
  IdleMode = 0, AcquisitionMode = 1, SimulationMode = 2, BrowseMode = 3,
  AnalysisMode = 4
}
 
- Public Types inherited from ConfigClass
enum  Action
 
enum  SaveFlags
 
typedef deque< Parameter >
::iterator 
iterator
 
typedef deque< Parameter >
::const_iterator 
const_iterator
 
typedef deque< Options * >
::iterator 
section_iterator
 
typedef deque< Options * >
::const_iterator 
const_section_iterator
 

Public Slots

void startRePro (RePro *repro, int macroaction, bool saving)
 
void stopRePro (void)
 
void updateRePro (void)
 
void editInputTraces (void)
 
void editOutputTraces (void)
 
void editDevices ()
 
void editFilters ()
 
void editMacros ()
 
void saveConfig (void)
 
void stopThreads (void)
 
void stopActivity (void)
 
void doStopActivity (bool sessiondialog)
 
void clearActivity (void)
 
void startFirstAcquisition (bool simulation)
 
void startAcquisition (void)
 
void startSimulation (void)
 
void startIdle (void)
 
void restartAcquisition (void)
 
void quit (void)
 
void shutdown (void)
 
void displayData (void)
 
void showFilters (void)
 
void showTraces (void)
 
void showControls (void)
 
void showRePros (void)
 
void showData (void)
 
void showDataOnly (void)
 
void fullScreen (void)
 
void maximizeScreen (void)
 
void muteAudioMonitor (void)
 
void about (void)
 
void help (void)
 

Public Member Functions

 RELACSWidget (const string &pluginrelative, const string &pluginhome, const string &pluginhelp, const string &coreconfigfiles, const string &pluginconfigfiles, const string &docpath, const string &cfgexamplespath, const string &iconpath, bool doxydoc, ModeTypes mode, QWidget *parent=0)
 
 ~RELACSWidget (void)
 
void init (void)
 
void printlog (const string &message) const
 
int getData (InList &data, EventList &events, double &signaltime, double mintracetime=0.0, double prevsignal=-1000.0)
 
int updateData (void)
 
void wakeAll (void)
 
int write (OutData &signal, bool setsignaltime=true, bool blocking=true)
 
int write (OutList &signal, bool setsignaltime=true, bool blocking=true)
 
int directWrite (OutData &signal, bool setsignaltime=true)
 
int directWrite (OutList &signal, bool setsignaltime=true)
 
int stopWrite (void)
 
void notifyStimulusData (void)
 
void notifyMetaData (void)
 
void startSession (bool startmacro=true)
 
void preStopSession (void)
 
void resumeSession (void)
 
void stopSession (bool saved, bool stopmacro=true)
 
Sessionsession (void)
 
void startedMacro (const string &ident, const string &param)
 
FilterDetectorsfilterDetectors (void)
 
ModeTypes mode (void) const
 
string modeStr (void) const
 
bool acquisition (void) const
 
bool simulation (void) const
 
bool browsing (void) const
 
bool analysis (void) const
 
bool idle (void) const
 
void setMode (ModeTypes mode)
 
int activateGains (void)
 
- Public Member Functions inherited from ConfigClass
 ConfigClass (const string &ident, int group=0, int mode=0xffff, int selectmask=0)
 
 ConfigClass (const ConfigClass &C)
 
virtual ~ConfigClass (void)
 
const string & configIdent (void) const
 
void setConfigIdent (const string &ident)
 
int configGroup (void) const
 
void setConfigGroup (int group)
 
int configMode (void) const
 
void setConfigMode (int mode)
 
void addConfigMode (int mode)
 
void delConfigMode (int mode)
 
int configSelectMask (void) const
 
void setConfigSelectMask (int mask)
 
void addConfig (void)
 
void readConfig (void)
 
virtual void readConfig (StrQueue &sq)
 
virtual void saveConfig (ofstream &str)
 
virtual int configSize (void) const
 
virtual void config (void)
 
virtual void preConfig (void)
 
 Options (void)
 
 Options (const Options &o)
 
 Options (const Options &o, int flags)
 
 Options (const string &name, const string &type, int flags, int style)
 
 Options (const Str &opttxt, const string &assignment=":=", const string &separator=",;")
 
 Options (const StrQueue &sq, const string &assignment=":=")
 
 Options (istream &str, const string &assignment=":=", const string &comment="#", const string &stop="", string *line=0)
 
virtual ~Options (void)
 
Optionsoperator= (const Options &o)
 
Optionsassign (const Options &o)
 
Optionsappend (const Options &o)
 
Optionsadd (const Options &o)
 
Optionsinsert (const Options &o, const string &atname="")
 
Optionsassign (const Options &o, int flags)
 
Optionscopy (Options &o, int flags)
 
Optionsappend (const Options &o, int flags)
 
Optionsadd (const Options &o, int flags)
 
Optionsinsert (const Options &o, int flags, const string &atname="")
 
Parameterassign (const string &name, const string &value)
 
OptionsparentSection (void)
 
const OptionsparentSection (void) const
 
void setParentSection (Options *parentsection)
 
void resetParents (void)
 
OptionsrootSection (void)
 
const OptionsrootSection (void) const
 
string name (void) const
 
virtual void setName (const string &name)
 
virtual void setName (const string &name, const string &type)
 
string type (void) const
 
void setType (const string &type)
 
string include (void) const
 
void setInclude (const string &include)
 
void setInclude (const string &url, const string &name)
 
int flag (void) const
 
bool flag (int selectflag) const
 
OptionssetFlag (int flag)
 
OptionsaddFlag (int flag)
 
OptionsdelFlag (int flag)
 
OptionsclearFlag (void)
 
int style (void) const
 
OptionssetStyle (int style)
 
OptionsaddStyle (int style)
 
OptionsdelStyle (int style)
 
OptionsclearStyle (void)
 
bool checkType (int mask) const
 
Str warning (void) const
 
iterator begin (void)
 
iterator end (void)
 
const_iterator begin (void) const
 
const_iterator end (void) const
 
section_iterator sectionsBegin (void)
 
section_iterator sectionsEnd (void)
 
const_section_iterator sectionsBegin (void) const
 
const_section_iterator sectionsEnd (void) const
 
const_iterator find (const string &pattern, int level=-1) const
 
iterator find (const string &pattern, int level=-1)
 
const_iterator rfind (const string &pattern, int level=-1) const
 
iterator rfind (const string &pattern, int level=-1)
 
const_section_iterator findSection (const string &pattern, int level=-1) const
 
section_iterator findSection (const string &pattern, int level=-1)
 
const_section_iterator rfindSection (const string &pattern, int level=-1) const
 
section_iterator rfindSection (const string &pattern, int level=-1)
 
const Parameteroperator[] (int i) const
 
Parameteroperator[] (int i)
 
const Parameteroperator[] (const string &name) const
 
Parameteroperator[] (const string &name)
 
const Optionssection (int i) const
 
Optionssection (int i)
 
const Optionssection (const string &name) const
 
Optionssection (const string &name)
 
Str request (const string &name) const
 
ParametersetRequest (const string &name, const string &request)
 
Parameter::ValueType valueType (const string &name) const
 
ParametersetValueType (const string &name, Parameter::ValueType type)
 
int flags (const string &name) const
 
bool flags (const string &name, int flag) const
 
ParametersetFlags (const string &name, int flags)
 
ParameteraddFlags (const string &name, int flags)
 
ParameterdelFlags (const string &name, int flags)
 
ParameterclearFlags (const string &name)
 
bool changed (const string &name)
 
int style (const string &name) const
 
ParametersetStyle (const string &name, int style)
 
ParameteraddStyle (const string &name, int style)
 
ParameterdelStyle (const string &name, int style)
 
Str format (const string &name) const
 
ParametersetFormat (const string &name, int width=0, int prec=-1, char fmt='g')
 
ParametersetFormat (const string &name, const string &format)
 
int formatWidth (const string &name) const
 
int size (const string &name) const
 
Parameteradd (const Parameter &np)
 
Parameterinsert (const Parameter &np, const string &atname="")
 
ParameteraddText (const string &name, const string &request, const string &dflt, int flags=0, int style=0)
 
ParameteraddText (const string &name, const string &dflt="", int flags=0, int style=0)
 
ParameterinsertText (const string &name, const string &atname, const string &request, const string &dflt, int flags=0, int style=0)
 
ParameterinsertText (const string &name, const string &atname="", const string &dflt="", int flags=0, int style=0)
 
Str text (const string &name, int index, const string &dflt="", const string &format="", const string &unit="") const
 
Str text (const string &name, const string &dflt="", const string &format="", const string &unit="") const
 
void texts (const string &name, vector< string > &s, const string &format="", const string &unit="") const
 
Str allText (const string &name, const string &dflt="", const string &format="", const string &unit="", const string &separator=", ") const
 
ParametersetText (const string &name, const string &strg)
 
ParametersetText (const string &name, const Parameter &p)
 
ParameterpushText (const string &name, const string &strg)
 
Str defaultText (const string &name, const string &format="", const string &unit="") const
 
ParametersetDefaultText (const string &name, const string &dflt)
 
ParameteraddSelection (const string &name, const string &request, const string &selection, int flags=0, int style=0)
 
ParameteraddSelection (const string &name, const string &selection="", int flags=0, int style=0)
 
ParameterinsertSelection (const string &name, const string &atname, const string &request, const string &selection, int flags=0, int style=0)
 
ParameterinsertSelection (const string &name, const string &atname="", const string &selection="", int flags=0, int style=0)
 
ParameterselectText (const string &name, const string &strg, int add=0)
 
ParameterselectText (const string &name, int index)
 
int index (const string &name) const
 
int index (const string &name, const string &strg) const
 
ParameteraddNumber (const string &name, const string &request, double dflt, double minimum, double maximum=MAXDOUBLE, double step=1.0, const string &unit="", const string &outputunit="", const string &format="", int flags=0, int style=0)
 
ParameteraddNumber (const string &name, const string &request, double dflt, const string &unit="", const string &format="", int flags=0, int style=0)
 
ParameteraddNumber (const string &name, double dflt, const string &unit="", const string &format="", int flags=0, int style=0)
 
ParameteraddNumber (const string &name, double dflt, const string &unit, int flags, int style=0)
 
ParameteraddNumber (const string &name, double dflt, double error, const string &unit="", const string &format="", int flags=0, int style=0)
 
ParameteraddNumber (const string &name, const string &unit="", const string &format="", int flags=0, int style=0)
 
ParameterinsertNumber (const string &name, const string &atname, const string &request, double dflt, double minimum, double maximum=MAXDOUBLE, double step=1.0, const string &unit="", const string &outputunit="", const string &format="", int flags=0, int style=0)
 
ParameterinsertNumber (const string &name, const string &atname, const string &request, double dflt, const string &unit="", const string &format="", int flags=0, int style=0)
 
ParameterinsertNumber (const string &name, const string &atname, double dflt, const string &unit="", const string &format="", int flags=0, int style=0)
 
ParameterinsertNumber (const string &name, const string &atname, const string &unit="", const string &format="", int flags=0, int style=0)
 
double number (const string &name, double dflt=0.0, const string &unit="", int index=0) const
 
double number (const string &name, const string &unit, double dflt=0.0, int index=0) const
 
double number (const string &name, int index, double dflt=0.0, const string &unit="") const
 
double number (const string &name, int index, const string &unit, double dflt=0.0) const
 
void numbers (const string &name, vector< double > &n, const string &unit="") const
 
double error (const string &name, const string &unit="", int index=0) const
 
double error (const string &name, int index, const string &unit="") const
 
void errors (const string &name, vector< double > &n, const string &unit="") const
 
ParametersetNumber (const string &name, double number, double error, const string &unit="")
 
ParametersetNumber (const string &name, double number, const string &unit="")
 
ParameterpushNumber (const string &name, double number, double error=-1.0, const string &unit="")
 
ParameterpushNumber (const string &name, double number, const string &unit)
 
ParametersetNumber (const string &name, const Parameter &p)
 
double defaultNumber (const string &name, const string &unit="") const
 
ParametersetDefaultNumber (const string &name, double dflt, const string &unit="")
 
double minimum (const string &name, const string &unit="") const
 
double maximum (const string &name, const string &unit="") const
 
double step (const string &name, const string &unit="") const
 
ParametersetStep (const string &name, double step, const string &unit="")
 
ParametersetMinMax (const string &name, double minimum=-MAXDOUBLE, double maximum=MAXDOUBLE, double step=1.0, const string &unit="")
 
Str unit (const string &name) const
 
Str outUnit (const string &name) const
 
ParametersetUnit (const string &name, const string &internunit, const string &outunit="")
 
ParametersetOutUnit (const string &name, const string &outputunit)
 
ParameterchangeUnit (const string &name, const string &internunit)
 
ParameteraddInteger (const string &name, const string &request, long dflt, long minimum=LONG_MIN, long maximum=LONG_MAX, long step=1, const string &unit="", const string &outputunit="", int width=0, int flags=0, int style=0)
 
ParameteraddInteger (const string &name, long dflt, const string &unit="", int width=0, int flags=0, int style=0)
 
ParameteraddInteger (const string &name, const string &unit="")
 
ParameterinsertInteger (const string &name, const string &atname, const string &request, long dflt, long minimum=LONG_MIN, long maximum=LONG_MAX, long step=1, const string &unit="", const string &outputunit="", int width=0, int flags=0, int style=0)
 
ParameterinsertInteger (const string &name, const string &atname, long dflt, const string &unit="", int width=0, int flags=0, int style=0)
 
ParameterinsertInteger (const string &name, const string &atname, const string &unit="", int width=0, int flags=0, int style=0)
 
long integer (const string &name, const string &unit="", long dflt=0, int index=0) const
 
long integer (const string &name, int index, long dflt=0, const string &unit="") const
 
long integer (const string &name, int index, const string &unit, long dflt=0) const
 
void integers (const string &name, vector< long > &n, const string &unit="") const
 
void integers (const string &name, vector< int > &n, const string &unit="") const
 
ParametersetInteger (const string &name, long number, long error, const string &unit="")
 
ParametersetInteger (const string &name, long number, const string &unit="")
 
ParameterpushInteger (const string &name, long number, long error, const string &unit="")
 
ParameterpushInteger (const string &name, long number, const string &unit="")
 
ParametersetInteger (const string &name, const Parameter &p)
 
long defaultInteger (const string &name, const string &unit="") const
 
ParametersetDefaultInteger (const string &name, long dflt, const string &unit="")
 
ParametersetMinMax (const string &name, long minimum=LONG_MIN, long maximum=LONG_MAX, long step=1, const string &unit="")
 
ParametersetMinMax (const string &name, int minimum, int maximum, int step=1, const string &unit="")
 
ParameteraddBoolean (const string &name, const string &request, bool dflt, int flags=0, int style=0)
 
ParameteraddBoolean (const char *name, const char *request, bool dflt, int flags=0, int style=0)
 
ParameteraddBoolean (const string &name, bool dflt, int flags=0, int style=0)
 
ParameteraddBoolean (const char *name, bool dflt, int flags=0, int style=0)
 
ParameterinsertBoolean (const string &name, const string &atname="", const string &request="", bool dflt=false, int flags=0, int style=0)
 
ParameterinsertBoolean (const string &name, const string &atname, int flags=0, int style=0)
 
bool boolean (const string &name, bool dflt=false, int index=0) const
 
bool boolean (const string &name, int index, bool dflt=false) const
 
void booleans (const string &name, vector< bool > &n) const
 
ParametersetBoolean (const string &name, bool b)
 
ParametersetBoolean (const string &name, const Parameter &p)
 
bool defaultBoolean (const string &name) const
 
ParametersetDefaultBoolean (const string &name, bool dflt)
 
ParameteraddDate (const string &name, const string &request, int year=0, int month=0, int day=0, int flags=0, int style=0)
 
ParameteraddDate (const string &name, int year, int month, int day, int flags=0, int style=0)
 
ParameteraddDate (const string &name, int flags=0, int style=0)
 
ParameterinsertDate (const string &name, const string &atname="", const string &request="", int year=0, int month=0, int day=0, int flags=0, int style=0)
 
ParameterinsertDate (const string &name, const string &atname, int year=0, int month=0, int day=0, int flags=0, int style=0)
 
ParameterinsertDate (const string &name, const string &atname, int flags=0, int style=0)
 
const Parameterdate (const string &name, int index, int &year, int &month, int &day) const
 
ParametersetDate (const string &name, int year, int month, int day)
 
ParametersetDate (const string &name, const string &date)
 
ParametersetDate (const string &name, const struct tm &date)
 
ParametersetDate (const string &name, const time_t &time)
 
ParametersetCurrentDate (const string &name)
 
ParametersetDate (const string &name, const Parameter &p)
 
const ParameterdefaultDate (const string &name, int index, int &year, int &month, int &day) const
 
ParametersetDefaultDate (const string &name, int year, int month, int day)
 
ParameteraddTime (const string &name, const string &request, int hour=0, int minutes=0, int seconds=0, int milliseconds=0, int flags=0, int style=0)
 
ParameteraddTime (const string &name, int hour, int minutes, int seconds, int milliseconds=0, int flags=0, int style=0)
 
ParameteraddTime (const string &name, int flags=0, int style=0)
 
ParameterinsertTime (const string &name, const string &atname="", const string &request="", int hour=0, int minutes=0, int seconds=0, int milliseconds=0, int flags=0, int style=0)
 
ParameterinsertTime (const string &name, const string &atname, int hour=0, int minutes=0, int seconds=0, int milliseconds=0, int flags=0, int style=0)
 
ParameterinsertTime (const string &name, const string &atname, int flags=0, int style=0)
 
const Parametertime (const string &name, int index, int &hour, int &minutes, int &seconds, int &milliseconds) const
 
ParametersetTime (const string &name, int hour, int minutes, int seconds, int milliseconds=0)
 
ParametersetTime (const string &name, const string &time)
 
ParametersetTime (const string &name, const struct tm &time)
 
ParametersetTime (const string &name, const time_t &time)
 
ParametersetCurrentTime (const string &name)
 
ParametersetTime (const string &name, const Parameter &p)
 
const ParameterdefaultTime (const string &name, int index, int &hour, int &minutes, int &seconds, int &milliseconds) const
 
ParametersetDefaultTime (const string &name, int hour, int minutes, int seconds, int milliseconds=0)
 
OptionsnewSection (int level, const string &name, const string &type="", int flag=0, int style=0)
 
OptionsnewSection (int level, const string &name, int flag, int style=0)
 
OptionsnewSection (const string &name, const string &type="", int flag=0, int style=0)
 
OptionsnewSection (const string &name, int flag, int style=0)
 
OptionsnewSubSection (const string &name, const string &type="", int flag=0, int style=0)
 
OptionsnewSubSection (const string &name, int flag, int style=0)
 
OptionsnewSubSubSection (const string &name, const string &type="", int flag=0, int style=0)
 
OptionsnewSubSubSection (const string &name, int flag, int style=0)
 
OptionsaddSection (const string &name, const string &type="", int flag=0, int style=0)
 
OptionsaddSection (const string &name, int flag, int style=0)
 
OptionsinsertSection (const string &name, const string &atpattern, const string &type="", int flag=0, int style=0)
 
OptionsinsertSection (const string &name, const string &atpattern, int flag, int style=0)
 
OptionsnewSection (int level, const Options &opt, int selectmask, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSection (int level, const Options &opt, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSection (int level, const Options &opt, const string &name, int flag, int style=0)
 
OptionsnewSection (const Options &opt, int selectmask, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSection (const Options &opt, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSection (const Options &opt, const string &name, int flag, int style=0)
 
OptionsnewSubSection (const Options &opt, int selectmask, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSubSection (const Options &opt, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSubSection (const Options &opt, const string &name, int flag, int style=0)
 
OptionsnewSubSubSection (const Options &opt, int selectmask, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSubSubSection (const Options &opt, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSubSubSection (const Options &opt, const string &name, int flag, int style=0)
 
OptionsaddSection (const Options &opt, int selectmask, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsaddSection (const Options &opt, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsaddSection (const Options &opt, const string &name, int flag, int style=0)
 
OptionsinsertSection (const Options &opt, int selectmask, const string &name, const string &atpattern, const string &type="", int flag=0, int style=0)
 
OptionsinsertSection (const Options &opt, const string &name, const string &atpattern, const string &type="", int flag=0, int style=0)
 
OptionsinsertSection (const Options &opt, const string &name, const string &atpattern, int flag, int style=0)
 
OptionsnewSection (Options *opt, bool newparent=false)
 
OptionsaddSection (Options *opt, bool newparent=false)
 
OptionsinsertSection (Options *opt, const string &atpattern, bool newparent=false)
 
OptionsnewSections (Options *opt, bool newparent=false)
 
void endSection (void)
 
void clearSections (void)
 
void setSection (Options &opt)
 
void lastSection (void)
 
int up (void)
 
int down (void)
 
ParametersetDefault (const string &name)
 
OptionssetDefaults (int flags=0)
 
ParametersetToDefault (const string &name)
 
OptionssetToDefaults (int flags=0)
 
Optionserase (iterator p)
 
Optionserase (section_iterator p)
 
Optionserase (Options *s)
 
Optionserase (const string &pattern)
 
Optionserase (int selectflag)
 
Optionspop (void)
 
OptionspopSection (void)
 
Optionsflatten (Options *root=0)
 
Optionsclear (bool revert=true)
 
int size (void) const
 
int size (int selectflag) const
 
bool empty (void) const
 
int parameterSize (void) const
 
int parameterSize (int flags) const
 
int sectionsSize (void) const
 
int sectionsSize (int flags) const
 
bool exist (const string &pattern) const
 
bool existSection (const string &pattern) const
 
OptionssetFlags (int flags, int selectflag=0)
 
OptionsaddFlags (int flags, int selectflag=0)
 
OptionsdelFlags (int flags, int selectflag=0)
 
OptionssetValueTypeFlags (int flags, int typemask)
 
OptionsaddValueTypeFlags (int flags, int typemask)
 
OptionsdelValueTypeFlags (int flags, int typemask)
 
OptionssetStyles (int style, int selectflag=0)
 
OptionsaddStyles (int style, int selectflag=0)
 
OptionsdelStyles (int style, int selectflag=0)
 
int styleSize (int style) const
 
OptionssetValueTypeStyles (int style, int typemask)
 
OptionsaddValueTypeStyles (int style, int typemask)
 
OptionsdelValueTypeStyles (int style, int typemask)
 
int nameWidth (int selectmask=0, bool detailed=false, bool escape=false) const
 
string save (int selectmask=0, int flags=0) const
 
ostream & save (ostream &str, const string &start="", int selectmask=0, int flags=0, int width=-1) const
 
ostream & save (ostream &str, const string &textformat, const string &numberformat, const string &boolformat="%i=%b", const string &dateformat="%i=%04Y-%02m-%02d", const string &timeformat="%i=%02H:%02M:%02S", const string &sectionformat="%i", int selectmask=0, const string &start="") const
 
ostream & saveXML (ostream &str, int selectmask=0, int flags=0, int level=0, int indent=4) const
 
Optionsread (const string &opttxt, int flag, const string &assignment=":=", const string &separator=",;", int *indent=0)
 
Optionsread (const string &opttxt, const string &assignment=":=", const string &separator=",;")
 
istream & read (istream &str, int flag, const string &assignment=":=", const string &comment="#", const string &stop="", Str *line=0)
 
istream & read (istream &str, const string &assignment=":=", const string &comment="#", const string &stop="", Str *line=0)
 
Optionsread (const StrQueue &sq, int flag=0, const string &assignment=":=")
 
bool read (const Parameter &p, int flag=0)
 
Optionsread (const Options &o, int flags=0, int flag=0)
 
bool readAppend (const Parameter &p)
 
OptionsreadAppend (const Options &o, int flags=0)
 
Optionsload (const Str &opttxt, const string &assignment=":=", const string &separator=",;", int *indent=0, int *indentspacing=0, int *level=0)
 
istream & load (istream &str, const string &assignment=":=", const string &comment="#", const string &stop="", string *line=0)
 
Optionsload (const StrQueue &sq, const string &assignment=":=")
 
virtual void notify (void)
 
void callNotifies (void)
 
bool setNotify (bool notify=true)
 
bool unsetNotify (void)
 
bool notifying (void) const
 

Protected Slots

void helpClosed (int r)
 
void simLoadMessage (void)
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *)
 
virtual void keyPressEvent (QKeyEvent *)
 
virtual void keyReleaseEvent (QKeyEvent *)
 
virtual void customEvent (QEvent *qce)
 

Friends

class Settings
 
class MetaData
 
class MetaDataSection
 
class MetaDataRecordingSection
 
class ReadThread
 
class WriteThread
 
class RELACSPlugin
 
class Session
 
class Model
 
class Control
 
class ControlTabs
 
class RePro
 
class RePros
 
class PlotTrace
 
class Macros
 
class FilterDetectors
 
class SaveFiles
 

Additional Inherited Members

- Static Public Member Functions inherited from ConfigClass
static void setConfigureClasses (ConfigureClasses *cfg)
 
static double floorLog10 (double v)
 
static double floor10 (double v, double scale=1.0)
 
static double ceil10 (double v, double scale=1.0)
 
- Static Public Attributes inherited from ConfigClass
static const int NonDefault
 
static const long TabSection
 

Detailed Description

Coordinates RePros, session, input, output, plotting, and saving.

Author
Jan Benda
Christian Machens
Todo:
make sure startFirstAcquisition() are only called from the GUI thread (because of MessageBox calls).
Bug:
what about wroteData?
Todo:
Set ID gain factors before configuring Session

The data are acquired from the DAQ boards in the ReadLoop. On request via function updateData() the data are filtered and events are detected.

A RePro is stoppped with the stopRePro() function and a new RePro is started with startRePro().

Member Enumeration Documentation

enum ModeTypes

The different working modes.

Enumerator
IdleMode 

Do nothing, i.e. wait for a selection from the user.

AcquisitionMode 

Acquiring real data from a data acquisition board.

SimulationMode 

Simulate data using a Model.

BrowseMode 

Browse previously recorded or simulated data.

AnalysisMode 

Reanalyse previously recorded or simulated data.

Constructor & Destructor Documentation

RELACSWidget ( const string &  pluginrelative,
const string &  pluginhome,
const string &  pluginhelp,
const string &  coreconfigfiles,
const string &  pluginconfigfiles,
const string &  docpath,
const string &  cfgexamplespath,
const string &  iconpath,
bool  doxydoc,
ModeTypes  mode,
QWidget *  parent = 0 
)

References RELACSWidget::about(), StrQueue::add(), Plugins::add(), Session::addActions(), Model::addActions(), MetaData::addActions(), ConfigClass::addBoolean(), ConfigClass::addConfig(), ConfigureClasses::addGroup(), ConfigClass::addInteger(), ControlTabs::addMenu(), RePros::addMenu(), PlotTrace::addMenu(), FilterDetectors::addMenu(), ConfigClass::addNumber(), ConfigClass::addText(), RELACSPlugin::AnalogInputId, RELACSPlugin::AnalogOutputId, StrQueue::append(), RELACSPlugin::AttenuatorId, OutputConfig::OptionNames::CHANNEL, Macros::check(), Plugins::classErrors(), ConfigureClasses::clearGroups(), ConfigureClasses::configure(), RELACSWidget::ControlTabs, RELACSPlugin::Core, Macros::create(), Plugins::create(), ControlTabs::createControls(), FilterDetectors::createFilters(), SaveFiles::dataIndex(), OutputConfig::OptionNames::DEVICE, RePros::display(), RELACSWidget::editDevices(), RELACSWidget::editFilters(), RELACSWidget::editInputTraces(), RELACSWidget::editMacros(), RELACSWidget::editOutputTraces(), ConfigClass::empty(), Str::empty(), Plugins::empty(), Str::erasedMarkup(), MessageBox::error(), RELACSWidget::FilterDetectors, RELACSWidget::fullScreen(), OutputConfig::OptionNames::GROUP_NAME, RELACSWidget::help(), OutputConfig::OptionNames::ID, Plugins::libraryErrors(), Macros::load(), RELACSWidget::Macros, OutputConfig::OptionNames::MAX_RATE, RELACSWidget::maximizeScreen(), OutputConfig::OptionNames::MODALITY, RELACSPlugin::ModelId, RELACSWidget::muteAudioMonitor(), ConfigClass::newSection(), Settings::notify(), Plugins::openPath(), RELACSWidget::PlotTrace, Str::preventSlash(), RELACSWidget::printlog(), RELACSWidget::quit(), ConfigureClasses::read(), InData::referenceStr(), InData::RefGround, RELACSWidget::RePros, RELACSWidget::saveConfig(), RELACSWidget::SaveFiles, OutputConfig::OptionNames::SCALE, RELACSWidget::Session, Macros::setControls(), Macros::setMenu(), Simulator::setModel(), RELACSPlugin::setRELACSWidget(), Macros::setRePros(), RELACSWidget::showControls(), RELACSWidget::showData(), RELACSWidget::showDataOnly(), RELACSWidget::showFilters(), RELACSWidget::showRePros(), RELACSWidget::showTraces(), Parameter::size(), StrQueue::size(), RePros::size(), RELACSWidget::startAcquisition(), RELACSWidget::startRePro(), RELACSWidget::startSimulation(), RELACSWidget::stopActivity(), RELACSWidget::stopRePro(), StrQueue::strip(), ConfigClass::text(), Parameter::text(), OutputConfig::OptionNames::UNIT, MessageBox::warning(), and RELACSPlugin::widget().

~RELACSWidget ( void  )

Member Function Documentation

void init ( void  )
void printlog ( const string &  message) const
int getData ( InList data,
EventList events,
double &  signaltime,
double  mintracetime = 0.0,
double  prevsignal = -1000.0 
)

Updates the InData buffers and calls the filter and event detectors. Then assings the buffers to data and events and to the ones of SaveFiles and Filter. Also set signaltime to the time of the most recent output signal.

Parameters
[in]mintracetimeIf mintracetime is greater than zero, blocks until data upto mintracetime seconds are available.
[in]prevsignalIf in addition prevsignal is greater than zero, first block until the time of the last signal is greater than prevsignal and afterwards until data until the signal time plus mintracetime are available.
Returns
1 if the input traces contain the required data, 0 if interrupted, or -1 on error.

References InList::currentTimeRaw(), InList::failed(), Acquire::isReadRunning(), Acquire::isWriteRunning(), InList::success(), InList::update(), and EventList::update().

Referenced by RELACSPlugin::getData().

int updateData ( void  )
void wakeAll ( void  )

Wakes up all waitconditions.

Referenced by RELACSWidget::stopThreads().

int write ( OutData signal,
bool  setsignaltime = true,
bool  blocking = true 
)
int write ( OutList signal,
bool  setsignaltime = true,
bool  blocking = true 
)
int directWrite ( OutData signal,
bool  setsignaltime = true 
)
int directWrite ( OutList signal,
bool  setsignaltime = true 
)

Direct output of single data values as specified by signal to different channels of the DAQ board. Passing infos to SaveFiles.

References Acquire::directWrite(), OutList::errorText(), InList::errorText(), InList::failed(), RELACSWidget::printlog(), SaveFiles::save(), SaveFiles::saving(), FilterDetectors::scheduleAdjust(), SaveFiles::signalPending(), and ReadThread::start().

int stopWrite ( void  )

Stop all analog output activity.

References Acquire::stopWrite().

Referenced by RePro::stopWrite().

void notifyStimulusData ( void  )
void notifyMetaData ( void  )

Inform all plugins about changes in the meta data.

References ControlTabs::notifyMetaData(), RePros::notifyMetaData(), FilterDetectors::notifyMetaData(), and RELACSPlugin::notifyMetaData().

Referenced by MetaData::notify().

void startSession ( bool  startmacro = true)
void preStopSession ( void  )

Tells RELACSWidget that the current session might be stopped. Starts the fallback macro.

References Macros::fallBack().

Referenced by Session::stopTheSession().

void resumeSession ( void  )

Tells RELACSWidget that the current session is not stopped.

References RELACSWidget::printlog().

Referenced by Session::doStopTheSession().

void stopSession ( bool  saved,
bool  stopmacro = true 
)
Session * session ( void  )

Returns pointer to the session.

Referenced by MacroCommand::execute().

void startedMacro ( const string &  ident,
const string &  param 
)

The name of a started macro.

References RELACSWidget::printlog(), and RePros::setMacro().

Referenced by Macros::noMacro(), Macros::startMacro(), and Macros::startNextRePro().

FilterDetectors * filterDetectors ( void  )

Returns pointer to the filters and detectors.

Referenced by MacroCommand::check(), and MacroCommand::execute().

RELACSWidget::ModeTypes mode ( void  ) const

The current working mode. Can be AcquisitionMode, SimulationMode, BrowseMode, AnalysisMode, or IdleMode.

See Also
acquisition(), simulation(), browsing(), analysis(), idle()

Referenced by RELACSWidget::modeStr(), RELACSWidget::restartAcquisition(), and RELACSWidget::setMode().

string modeStr ( void  ) const

Return a string describing the current working mode.

See Also
mode(), acquisition(), simulation(), brwosing(), analysis(), idle()

References RELACSWidget::mode().

Referenced by RELACSWidget::doStopActivity(), RELACSPlugin::modeStr(), and MetaData::update().

bool acquisition ( void  ) const

True if the current working mode is to acquiring real data from a data acquisition board.

See Also
mode(), simulation(), analysis(), browsing(), idle()

References RELACSWidget::AcquisitionMode.

Referenced by RELACSPlugin::acquisition(), RELACSWidget::init(), and Session::modeChanged().

bool simulation ( void  ) const

True if the current working mode is to simulate data using a Model.

See Also
mode(), aquisition(), browsing(), analysis(), idle()

References RELACSWidget::SimulationMode.

Referenced by RELACSWidget::init(), Session::modeChanged(), RELACSPlugin::simulation(), and RELACSWidget::stopSession().

bool browsing ( void  ) const

True if the current working mode is to browse previously recorded or simulated data.

See Also
mode(), acquisition(), simulation(), analysis(), idle()

References RELACSWidget::BrowseMode.

bool analysis ( void  ) const

True if the current working mode is to reanalyse previously recorded or simulated data.

See Also
mode(), acquisition(), simulation(), browsing(), idle()

References RELACSWidget::AnalysisMode.

Referenced by RELACSPlugin::analysis().

bool idle ( void  ) const
void setMode ( ModeTypes  mode)
int activateGains ( void  )

Activates the new gain settings for analog input set by the adjustGain() functions. activateGains() assumes the data traces and events not to be locked and will write-lock the raw data.

Returns
-1 on failure.

References Acquire::activateGains(), InList::errorText(), InList::failed(), RELACSWidget::printlog(), FilterDetectors::scheduleAdjust(), and ReadThread::start().

Referenced by RELACSPlugin::activateGains().

void startRePro ( RePro repro,
int  macroaction,
bool  saving 
)
slot
void stopRePro ( void  )
slot
void updateRePro ( void  )
slot

Updates indices for input data and events and call the readRePro functions of the Session and Control plugins.

Referenced by RePro::sleep().

void editInputTraces ( void  )
slot
void editOutputTraces ( void  )
slot
void editDevices ( )
slot
void editFilters ( )
slot
void editMacros ( )
slot
void saveConfig ( void  )
slot

Save settings to configuration files.

References ConfigureClasses::save().

Referenced by RELACSWidget::RELACSWidget().

void stopThreads ( void  )
slot
void stopActivity ( void  )
slot
void doStopActivity ( bool  sessiondialog)
slot
void clearActivity ( void  )
slot
void startFirstAcquisition ( bool  simulation)
slot

Start acquisition or simulation mode.

References RELACSWidget::AcquisitionMode, DeviceList< T, PluginID >::addMenu(), Acquire::addRestartEvents(), Acquire::addStimulusEvents(), RELACSPlugin::addTracesEvents(), Acquire::adjustFlag(), InList::assign(), EventList::assign(), AudioMonitor::assignTraces(), ControlTabs::assignTracesEvents(), RePros::assignTracesEvents(), RELACSPlugin::assignTracesEvents(), Macros::checkOptions(), FilterDetectors::clearIndices(), PlotTrace::clearStyles(), ConfigureClasses::configure(), FilterDetectors::createRecordingEvents(), FilterDetectors::createRestartEvents(), FilterDetectors::createStimulusEvents(), FilterDetectors::createTracesEvents(), SaveFiles::defaultPath(), InList::empty(), Str::empty(), Str::erasedMarkup(), MessageBox::error(), InList::errorText(), PlotTrace::eventStyles(), FilterDetectors::init(), ControlTabs::initDevices(), ConfigClass::number(), RELACSPlugin::Plugins, ConfigureClasses::preConfigure(), RELACSWidget::printlog(), ConfigureClasses::read(), Acquire::read(), PlotTrace::resize(), FilterDetectors::setAdjustFlag(), Acquire::setBufferTime(), RELACSWidget::setMode(), SaveFiles::setPath(), RePros::setSettings(), FilterDetectors::setTracesEvents(), SaveFiles::setTracesEvents(), Acquire::setUpdateTime(), RELACSWidget::SimulationMode, InList::size(), ReadThread::start(), ControlTabs::start(), PlotTrace::start(), RELACSWidget::startIdle(), Macros::startUp(), RELACSWidget::stopActivity(), Acquire::testRead(), PlotTrace::traceStyles(), DeviceList< T, PluginID >::updateMenu(), PlotTrace::updateMenu(), MessageBox::warning(), and Macros::warning().

Referenced by RELACSWidget::init(), RELACSWidget::restartAcquisition(), RELACSWidget::startAcquisition(), and RELACSWidget::startSimulation().

void startAcquisition ( void  )
slot
void startSimulation ( void  )
slot
void startIdle ( void  )
slot
void restartAcquisition ( void  )
slot
void quit ( void  )
slot
void shutdown ( void  )
slot

Stops all RELACSWidget activities and exits without launching a session dialog.

References RELACSWidget::clearActivity(), RELACSWidget::doStopActivity(), RELACSWidget::idle(), and RELACSWidget::printlog().

Referenced by MacroCommand::execute().

void displayData ( void  )
slot

Tell PlotTrace to display currently recorded data.

References PlotTrace::displayData().

Referenced by Macro::run().

void showFilters ( void  )
slot

Toggle showing filters and detectors in full window.

References RELACSPlugin::widget().

Referenced by RELACSWidget::RELACSWidget().

void showTraces ( void  )
slot

Toggle showing traces in full window.

References RELACSPlugin::widget().

Referenced by RELACSWidget::RELACSWidget().

void showControls ( void  )
slot

Toggle showing controls in full window.

References RELACSPlugin::widget().

Referenced by RELACSWidget::RELACSWidget().

void showRePros ( void  )
slot

Toggle showing RePros in full window.

References RELACSPlugin::widget().

Referenced by RELACSWidget::RELACSWidget().

void showData ( void  )
slot

Toggle showing databrowser and traces in full window.

References RELACSWidget::showDataOnly().

Referenced by RELACSWidget::RELACSWidget().

void showDataOnly ( void  )
slot

Show databrowser and traces in full window.

References RELACSPlugin::widget().

Referenced by RELACSWidget::RELACSWidget(), and RELACSWidget::showData().

void fullScreen ( void  )
slot

Toggles full screen mode.

Referenced by RELACSWidget::RELACSWidget().

void maximizeScreen ( void  )
slot

Toggles maximized screen mode.

Referenced by RELACSWidget::RELACSWidget().

void muteAudioMonitor ( void  )
slot

Toggles muting the audio monitor.

References AudioMonitor::mute(), AudioMonitor::muted(), and AudioMonitor::unmute().

Referenced by RELACSWidget::RELACSWidget().

void about ( void  )
slot

Displays highly relevant information about the culprits that wrote this piece of software.

References MessageBox::information().

Referenced by RELACSWidget::RELACSWidget().

void help ( void  )
slot
void closeEvent ( QCloseEvent *  ce)
protectedvirtual

After a signal is written to the daq-board for output the function write( OData &OD ) emits this signal. It can be used to check the success of the output operation. For that purpose read out the error flags of OD.

References RELACSWidget::quit().

void keyPressEvent ( QKeyEvent *  event)
protectedvirtual
void keyReleaseEvent ( QKeyEvent *  event)
protectedvirtual
void customEvent ( QEvent *  qce)
protectedvirtual
void helpClosed ( int  r)
protectedslot

Referenced by RELACSWidget::help().

void simLoadMessage ( void  )
protectedslot

References Model::load().

Friends And Related Function Documentation

friend class Settings
friend
friend class MetaData
friend
friend class MetaDataSection
friend
friend class MetaDataRecordingSection
friend
friend class ReadThread
friend
friend class WriteThread
friend
friend class RELACSPlugin
friend
friend class Session
friend
friend class Model
friend
friend class Control
friend
friend class ControlTabs
friend
friend class RePro
friend
friend class RePros
friend
friend class PlotTrace
friend
friend class Macros
friend
friend class FilterDetectors
friend
friend class SaveFiles
friend

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