QXRD
0.11.16
|
#include <qxrdscriptengine.h>
Public Slots | |
void | evaluateAppCommand (QString cmd) |
void | evaluateSimpleServerCommand (QString cmd) |
void | evaluateSpecCommand (QString cmd) |
void | loadScript (QString path) |
static QString | convertToString (QScriptValue result) |
void | dumpLocks () |
void | openScriptOutput (const QString &fileName) |
void | writeScriptOutput (const QString &outputLine) |
void | closeScriptOutput () |
Public Slots inherited from QcepScriptEngine | |
QString | documentationLink (QString base, QString subItem) |
QByteArray | helpText (QString item) |
QString | documentationText (QString item) |
QString | documentationText (QRegExp pattern) |
Signals | |
void | appResultAvailable (QScriptValue res) |
void | simpleServerResultAvailable (QScriptValue cmd) |
void | specResultAvailable (QScriptValue cmd) |
Public Member Functions | |
QxrdScriptEngine (QxrdApplicationWPtr app, QxrdExperimentWPtr exp) | |
virtual | ~QxrdScriptEngine () |
void | initialize () |
void | lock () |
void | unlock () |
bool | hasUncaughtException () const |
int | uncaughtExceptionLineNumber () const |
QString | uncaughtExceptionString () const |
void | cancelCommand () |
QxrdApplicationWPtr | application () const |
QxrdExperimentWPtr | experiment () const |
QxrdAcquisitionWPtr | acquisition () const |
QxrdDataProcessorWPtr | dataProcessor () const |
QxrdWindowWPtr | window () const |
void | setWindow (QxrdWindowWPtr win) |
Public Member Functions inherited from QcepScriptEngine | |
QcepScriptEngine (QObject *parent=0) | |
Private Slots | |
void | evaluateScript (int src, QString cmd) |
Static Private Member Functions | |
static QScriptValue | printFunc (QScriptContext *context, QScriptEngine *engine, void *u) |
static QScriptValue | fopenFunc (QScriptContext *context, QScriptEngine *engine, void *u) |
static QScriptValue | fdeleteFunc (QScriptContext *context, QScriptEngine *engine, void *u) |
static QScriptValue | fprintFunc (QScriptContext *context, QScriptEngine *engine, void *u) |
static QScriptValue | fcloseFunc (QScriptContext *context, QScriptEngine *engine, void *u) |
static QScriptValue | acquireFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | acquireDarkFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | statusFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | acquireStatusFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | processStatusFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | acquireCancelFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | acquireScalersFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | triggerFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | exposureTimeFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | summedExposuresFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | skippedExposuresFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | darkSummedExposuresFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | phasesInGroupFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | preTriggerFilesFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | postTriggerFilesFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | filePatternFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | outputDirectoryFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | fileIndexFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | dataFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | darkFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | maskFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | overflowFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | liveDataFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | helpFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | processFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | setFileNormalizationFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | matchFilesFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | extraChannelFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | mapUserFunctionFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | timeStampFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | detectorFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | roiFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | newDataGroupFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | newDataArrayFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | newDataColumnFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | newDataColumnScanFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | newDataImageFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | newIntegratedDataFunc (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | QPointFToScriptValue (QScriptEngine *engine, const QPointF &in) |
static void | QPointFFromScriptValue (const QScriptValue &object, QPointF &pt) |
Private Attributes | |
QMutex | m_Mutex |
QxrdApplicationWPtr | m_Application |
QxrdExperimentWPtr | m_Experiment |
QxrdAcquisitionWPtr | m_Acquisition |
QxrdDataProcessorWPtr | m_DataProcessor |
QxrdWindowWPtr | m_Window |
FILE * | m_ScriptOutput |
Definition at line 19 of file qxrdscriptengine.h.
QxrdScriptEngine::QxrdScriptEngine | ( | QxrdApplicationWPtr | app, |
QxrdExperimentWPtr | exp | ||
) |
Definition at line 43 of file qxrdscriptengine.cpp.
References DEBUG_CONSTRUCTORS, and qcepDebug().
|
virtual |
Definition at line 58 of file qxrdscriptengine.cpp.
References DEBUG_CONSTRUCTORS, m_ScriptOutput, and qcepDebug().
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
QxrdAcquisitionWPtr QxrdScriptEngine::acquisition | ( | ) | const |
Definition at line 79 of file qxrdscriptengine.cpp.
References m_Acquisition.
Referenced by QCEP_DOC_FUNCTION().
QxrdApplicationWPtr QxrdScriptEngine::application | ( | ) | const |
Definition at line 69 of file qxrdscriptengine.cpp.
References m_Application.
Referenced by QCEP_DOC_FUNCTION().
|
signal |
Referenced by evaluateScript(), and QxrdExperiment::openWindows().
void QxrdScriptEngine::cancelCommand | ( | ) |
Definition at line 260 of file qxrdscriptengine.cpp.
|
slot |
|
staticslot |
Definition at line 185 of file qxrdscriptengine.cpp.
Referenced by QxrdSimpleServer::finishedCommand(), and QxrdWindow::finishedCommand().
|
staticprivate |
|
staticprivate |
|
staticprivate |
QxrdDataProcessorWPtr QxrdScriptEngine::dataProcessor | ( | ) | const |
Definition at line 89 of file qxrdscriptengine.cpp.
References m_DataProcessor.
Referenced by QCEP_DOC_FUNCTION().
|
staticprivate |
|
slot |
|
slot |
Definition at line 125 of file qxrdscriptengine.cpp.
References INVOKE_CHECK, lock(), and m_Mutex.
Referenced by QxrdExperiment::openWindows().
|
privateslot |
Definition at line 231 of file qxrdscriptengine.cpp.
References appResultAvailable(), DEBUG_LOGSCRIPTS, m_Experiment, qcepDebug(), simpleServerResultAvailable(), specResultAvailable(), and THREAD_CHECK.
|
slot |
Definition at line 134 of file qxrdscriptengine.cpp.
References INVOKE_CHECK, lock(), and m_Mutex.
Referenced by QxrdExperiment::initialize().
|
slot |
Definition at line 143 of file qxrdscriptengine.cpp.
References INVOKE_CHECK, lock(), and m_Mutex.
Referenced by QxrdExperiment::initialize().
QxrdExperimentWPtr QxrdScriptEngine::experiment | ( | ) | const |
Definition at line 74 of file qxrdscriptengine.cpp.
References m_Experiment.
Referenced by loadScript(), and QCEP_DOC_FUNCTION().
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
bool QxrdScriptEngine::hasUncaughtException | ( | ) | const |
Definition at line 265 of file qxrdscriptengine.cpp.
References lock(), and m_Mutex.
Referenced by loadScript().
|
staticprivate |
void QxrdScriptEngine::initialize | ( | ) |
|
staticprivate |
|
slot |
Definition at line 152 of file qxrdscriptengine.cpp.
References experiment(), hasUncaughtException(), INVOKE_CHECK, uncaughtExceptionLineNumber(), and uncaughtExceptionString().
void QxrdScriptEngine::lock | ( | ) |
Definition at line 115 of file qxrdscriptengine.cpp.
References m_Mutex.
Referenced by evaluateAppCommand(), evaluateSimpleServerCommand(), evaluateSpecCommand(), hasUncaughtException(), uncaughtExceptionLineNumber(), and uncaughtExceptionString().
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
slot |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
void QxrdScriptEngine::setWindow | ( | QxrdWindowWPtr | win | ) |
Definition at line 94 of file qxrdscriptengine.cpp.
References m_Window, and QCEP_DOC_OBJECT().
|
signal |
Referenced by evaluateScript(), and QxrdExperiment::initialize().
|
staticprivate |
|
signal |
Referenced by evaluateScript(), and QxrdExperiment::initialize().
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
int QxrdScriptEngine::uncaughtExceptionLineNumber | ( | ) | const |
Definition at line 272 of file qxrdscriptengine.cpp.
References lock(), and m_Mutex.
Referenced by loadScript().
QString QxrdScriptEngine::uncaughtExceptionString | ( | ) | const |
Definition at line 279 of file qxrdscriptengine.cpp.
References lock(), and m_Mutex.
Referenced by loadScript().
void QxrdScriptEngine::unlock | ( | ) |
QxrdWindowWPtr QxrdScriptEngine::window | ( | ) | const |
|
slot |
|
private |
Definition at line 124 of file qxrdscriptengine.h.
Referenced by acquisition().
|
private |
Definition at line 122 of file qxrdscriptengine.h.
Referenced by application().
|
private |
Definition at line 125 of file qxrdscriptengine.h.
Referenced by dataProcessor().
|
private |
Definition at line 123 of file qxrdscriptengine.h.
Referenced by evaluateScript(), and experiment().
|
mutableprivate |
Definition at line 121 of file qxrdscriptengine.h.
Referenced by evaluateAppCommand(), evaluateSimpleServerCommand(), evaluateSpecCommand(), hasUncaughtException(), lock(), uncaughtExceptionLineNumber(), uncaughtExceptionString(), and unlock().
|
private |
Definition at line 127 of file qxrdscriptengine.h.
Referenced by ~QxrdScriptEngine().
|
private |
Definition at line 126 of file qxrdscriptengine.h.
Referenced by setWindow(), and window().