ICP
1
|
#include <dae.h>
Public Member Functions | |
Cdae () | |
HRESULT | InterfaceSupportsErrorInfo (REFIID riid) |
HRESULT | FinalConstruct () |
void | FinalRelease () |
void | registerICPCallbacks () |
void | unregisterICPCallbacks () |
HRESULT | updateStatusXML (BSTR *cluster_xml, BSTR *messages) |
HRESULT | beginRun (BSTR *messages) |
HRESULT | endRun (BSTR *messages) |
HRESULT | pauseRun (BSTR *messages) |
HRESULT | resumeRun (BSTR *messages) |
HRESULT | saveRun (BSTR *messages) |
HRESULT | abortRun (BSTR *messages) |
HRESULT | startSEWait (BSTR *messages) |
HRESULT | endSEWait (BSTR *messages) |
HRESULT | getSpectrum (LONG spectrum_number, LONG period, VARIANT *time_channels, VARIANT *signal, LONG as_histogram, LONG as_distribution, LONG *sum, BSTR *messages) |
HRESULT | changeTCB (BSTR tcb_xml, BSTR *messages) |
HRESULT | changeDAEsettings (BSTR dae_xml, BSTR *messages) |
HRESULT | getSpectrumIntegral (LONG spectrum_number, LONG period, FLOAT time_low, FLOAT time_high, LONG *counts, BSTR *messages) |
HRESULT | getSpectraIntegral (VARIANT spectrum_numbers, LONG period, VARIANT time_low, VARIANT time_high, VARIANT *counts, BSTR *messages) |
HRESULT | getsect (LONG start, LONG length, VARIANT *values, BSTR *messages) |
HRESULT | rio (LONG address, LONG *value, BSTR *messages) |
HRESULT | getValue (BSTR name, BSTR *messages, VARIANT *result) |
HRESULT | getRawFramesTotal (BSTR *messages, LONG *value) |
HRESULT | getGoodFramesTotal (BSTR *messages, LONG *value) |
HRESULT | getGoodUAmpH (BSTR *messages, DOUBLE *value) |
HRESULT | getSpectraSum (LONG period, LONG first_spec, LONG num_spec, LONG spec_type, DOUBLE time_low, DOUBLE time_high, VARIANT *sums, VARIANT *max_vals, VARIANT *spec_nums, BSTR *messages) |
HRESULT | changeSample (BSTR sample_xml, BSTR *messages) |
HRESULT | changeUser (BSTR user_xml, BSTR *messages) |
HRESULT | changeHardwarePeriods (BSTR periods_xml, BSTR *messages) |
HRESULT | changePeriod (LONG period_number, BSTR *messages) |
HRESULT | dumpDebugInfo (BSTR *messages) |
HRESULT | VMEWriteValue (ULONG card_id, ULONG card_address, ULONG word_size, ULONG value, ULONG mode, BSTR *messages) |
HRESULT | VMEReadValue (ULONG card_id, ULONG card_address, ULONG word_size, ULONG *value, BSTR *messages) |
HRESULT | sumAllSpectra (LONG *counts, LONG *bin0_counts, BSTR *messages) |
HRESULT | sumAllHistogramMemory (LONG *counts, BSTR *messages) |
HRESULT | VMEReadArray (ULONG card_id, ULONG card_address, VARIANT *values, ULONG num_values, BSTR *messages) |
HRESULT | VMEWriteArray (ULONG card_id, ULONG card_address, VARIANT values, BSTR *messages) |
HRESULT | VMEReadValuesToString (ULONG card_id, ULONG card_address, ULONG word_size, ULONG num_values, BSTR *values, BSTR *messages) |
HRESULT | refreshCachedValues (BSTR *messages) |
HRESULT | setOptions (BSTR options_xml, BSTR *messages) |
HRESULT | getOptions (BSTR *options_xml, BSTR *messages) |
HRESULT | getArrayValue (BSTR name, VARIANT arg, BSTR *messages, VARIANT *result) |
HRESULT | updateCRPT (BSTR *messages) |
HRESULT | storeCRPT (BSTR *messages) |
HRESULT | setICPValueLong (BSTR name, LONG value, BSTR *messages) |
HRESULT | notifyICP (LONG event_id, BSTR param, BSTR *messages) |
HRESULT | setBlocksTable (VARIANT table, BSTR *messages) |
HRESULT | setSampleParameters (VARIANT table, BSTR *messages) |
HRESULT | setBeamlineParameters (VARIANT table, BSTR *messages) |
HRESULT | setUserParameters (LONG rbno, VARIANT table, BSTR *messages) |
HRESULT | areYouThere (void) |
HRESULT | changeUpdateSettings (BSTR update_xml, BSTR *messages) |
HRESULT | getNPRatio (FLOAT *current, FLOAT *average, BSTR *messages) |
HRESULT | getTotalCounts (BSTR *messages, LONG *counts) |
HRESULT | getMEvents (BSTR *messages, DOUBLE *mevents) |
HRESULT | getCurrentPeriodNumber (LONG *period, LONG *daq_period, BSTR *messages) |
HRESULT | snapshotCRPT (BSTR filename, LONG do_update, LONG do_pause, BSTR *messages) |
HRESULT | changePeriodWhileRunning (LONG period, LONG pause_first, BSTR *messages) |
HRESULT | getDAEsettings (BSTR dae_xml_in, BSTR *dae_xml_out, BSTR *messages) |
HRESULT | getHardwarePeriods (BSTR periods_xml_in, BSTR *periods_xml_out, BSTR *messages) |
HRESULT | getTCB (BSTR tcb_xml_in, BSTR *tcb_xml_out, BSTR *messages) |
HRESULT | getUpdateSettings (BSTR update_xml_in, BSTR *update_xml_out, BSTR *messages) |
HRESULT | changeNumberOfSoftwarePeriods (LONG nperiod, BSTR *messages) |
HRESULT | getRunState (BSTR *messages, LONG *state) |
HRESULT | beginRunEx (LONG options, LONG period, BSTR *messages) |
HRESULT | fillWithTestPattern (ULONG pattern, BSTR *messages) |
HRESULT | getVetoStatus (BSTR *veto_status, BSTR *messages) |
HRESULT | loadDAEWithData (BSTR file_name, LONG options, BSTR *messages) |
HRESULT | setVeto (BSTR name, LONG enable, BSTR *messages) |
HRESULT | checkTestPattern (ULONG pattern, BSTR *messages) |
HRESULT | getRunNumber (BSTR *messages, LONG *run_number) |
HRESULT | changeMonitoringSettings (BSTR monitor_xml, BSTR *messages) |
HRESULT | getMonitoringSettings (BSTR monitor_xml_in, BSTR *monitor_xml_out, BSTR *messages) |
HRESULT | getStatusMessages (LONG stream, VARIANT *messages) |
HRESULT | getGoodFramesPeriod (BSTR *messages, LONG *value) |
HRESULT | getGoodUAmpHPeriod (BSTR *messages, DOUBLE *value) |
HRESULT | getFramesAllPeriods (VARIANT *good_frames, VARIANT *raw_frames, BSTR *messages) |
HRESULT | getUAmpHAllPeriods (VARIANT *good_uamph, VARIANT *raw_uamph, BSTR *messages) |
HRESULT | getMEventsPeriod (LONG period, BSTR *messages, DOUBLE *mevents) |
HRESULT | updateCRPTSpectra (LONG period, LONG spec_start, LONG nspec, BSTR *messages) |
HRESULT | getCRPTSpectraIntegral (VARIANT spectrum_numbers, LONG period, VARIANT time_low, VARIANT time_high, VARIANT *counts, BSTR *messages) |
HRESULT | quit (BSTR *messages) |
HRESULT | requestEndRunAfterNextSequenceCompletes (BSTR *messages) |
HRESULT | isFinalSequenceComplete (BSTR *messages, LONG *complete) |
HRESULT | getSpectrumNumbersForTR (LONG time_regime, LONG *spec_min, LONG *spec_max, BSTR *messages) |
HRESULT | getSpectraIntegral2 (LONG spec_start, LONG nspectra, LONG period, FLOAT time_low, FLOAT time_high, VARIANT *counts, BSTR *messages) |
HRESULT | getNumberOfPeriods (BSTR *messages, LONG *nperiod) |
HRESULT | updateStatusXML2 (BSTR status_xml_in, BSTR *status_xml_out, BSTR *messages) |
Public Member Functions inherited from CProxy_IdaeEvents< Cdae > | |
HRESULT | Fire_OnRunStateChange (BSTR run_state) |
Static Public Member Functions | |
static BSTR | makeBSTR (const char *str) |
Public Attributes | |
std::list < boost::signals2::connection > | m_connection |
Static Public Attributes | |
static CRITICAL_SECTION * | m_critical = NULL |
Protected Types | |
typedef int(ISISinstrumentControl::* | xml_get_func_t )(const std::string &xml_in, std::string &xml_out, DAEstatus &status) |
typedef int(ISISinstrumentControl::* | xml_set_func_t )(const std::string &xml_in, DAEstatus &status) |
typedef int(ISISinstrumentControl::* | spec_int_func_t )(long n, const long spec_no[], long period, const float t_low[], const float t_high[], long integral[], long max_val[], DAEstatus &status) |
Protected Member Functions | |
template<typename T > | |
HRESULT | callICP (BSTR *messages, T &result, boost::function< T(ISISinstrumentControl *, DAEstatus &)> func) |
template<typename T > | |
HRESULT | callICP (BSTR *messages, boost::function< T(ISISinstrumentControl *, DAEstatus &)> func) |
HRESULT | makeResult (DAEstatus &status, BSTR *messages, bool force_success_result=false) |
int | getValueMain (ISISinstrumentControl *the_icp, const char *item_name, VARIANT *result, DAEstatus &status) |
int | getArrayValueMain (ISISinstrumentControl *the_icp, const char *item_name, long args[], int nargs, VARIANT *result, DAEstatus &status) |
int | reallocBSTR (BSTR *bstr, const char *str) |
HRESULT | getSettings (BSTR xml_in, BSTR *xml_out, BSTR *messages, xml_get_func_t func) |
HRESULT | updateSettings (BSTR xml_in, BSTR *messages, xml_set_func_t func) |
HRESULT | getSpectraIntegralHelper (spec_int_func_t func, VARIANT spectrum_numbers, LONG period, VARIANT time_low, VARIANT time_high, VARIANT *counts, BSTR *messages) |
|
protected |
|
protected |
|
protected |
HRESULT Cdae::abortRun | ( | BSTR * | messages | ) |
Definition at line 269 of file dae.cpp.
References ISISinstrumentControl::abortRun().
HRESULT Cdae::areYouThere | ( | void | ) |
Definition at line 1050 of file dae.cpp.
References g_icp_singleton.
HRESULT Cdae::beginRun | ( | BSTR * | messages | ) |
Definition at line 244 of file dae.cpp.
References ISISinstrumentControl::beginRun().
HRESULT Cdae::beginRunEx | ( | LONG | options, |
LONG | period, | ||
BSTR * | messages | ||
) |
Definition at line 1189 of file dae.cpp.
References ISISinstrumentControl::beginRunEx().
|
protected |
Definition at line 49 of file dae.cpp.
References DAEstatus::add(), DAEstatus::addVa(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, and ISISinstrumentControl::unregisterStructuredExceptionHandler().
|
protected |
HRESULT Cdae::changeDAEsettings | ( | BSTR | dae_xml, |
BSTR * | messages | ||
) |
Definition at line 334 of file dae.cpp.
References getXML(), and ISISinstrumentControl::updateDAEsettingsXML().
HRESULT Cdae::changeHardwarePeriods | ( | BSTR | periods_xml, |
BSTR * | messages | ||
) |
Definition at line 753 of file dae.cpp.
References getXML(), and ISISinstrumentControl::updateHardwarePeriodsXML().
HRESULT Cdae::changeMonitoringSettings | ( | BSTR | monitor_xml, |
BSTR * | messages | ||
) |
Definition at line 1281 of file dae.cpp.
References ISISinstrumentControl::updateMonitoringXML(), and updateSettings().
HRESULT Cdae::changeNumberOfSoftwarePeriods | ( | LONG | nperiod, |
BSTR * | messages | ||
) |
Definition at line 1167 of file dae.cpp.
References ISISinstrumentControl::changeNumberOfSoftwarePeriods().
HRESULT Cdae::changePeriod | ( | LONG | period_number, |
BSTR * | messages | ||
) |
Definition at line 760 of file dae.cpp.
References ISISinstrumentControl::changePeriod().
HRESULT Cdae::changePeriodWhileRunning | ( | LONG | period, |
LONG | pause_first, | ||
BSTR * | messages | ||
) |
Definition at line 1119 of file dae.cpp.
References ISISinstrumentControl::changePeriodWhileRunning().
HRESULT Cdae::changeSample | ( | BSTR | sample_xml, |
BSTR * | messages | ||
) |
Definition at line 739 of file dae.cpp.
References getXML(), and ISISinstrumentControl::updateSampleXML().
HRESULT Cdae::changeTCB | ( | BSTR | tcb_xml, |
BSTR * | messages | ||
) |
Definition at line 327 of file dae.cpp.
References getXML(), and ISISinstrumentControl::updateTCBXML().
HRESULT Cdae::changeUpdateSettings | ( | BSTR | update_xml, |
BSTR * | messages | ||
) |
Definition at line 1065 of file dae.cpp.
References ISISinstrumentControl::changeUpdateSettingsXML(), and getXML().
HRESULT Cdae::changeUser | ( | BSTR | user_xml, |
BSTR * | messages | ||
) |
Definition at line 746 of file dae.cpp.
References getXML(), and ISISinstrumentControl::updateUserXML().
HRESULT Cdae::checkTestPattern | ( | ULONG | pattern, |
BSTR * | messages | ||
) |
Definition at line 1245 of file dae.cpp.
References DAEstatus::add(), ISISinstrumentControl::allReportFunc(), ISISinstrumentControl::checkTestPattern(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, and ISISinstrumentControl::unregisterStructuredExceptionHandler().
HRESULT Cdae::dumpDebugInfo | ( | BSTR * | messages | ) |
Definition at line 765 of file dae.cpp.
References DAEstatus::add(), DAEstatus::addInfo(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, m_critical, makeResult(), ISISinstrumentControl::printStatus(), ISISinstrumentControl::registerStructuredExceptionHandler(), SEV_ERROR, and ISISinstrumentControl::unregisterStructuredExceptionHandler().
HRESULT Cdae::endRun | ( | BSTR * | messages | ) |
Definition at line 249 of file dae.cpp.
References ISISinstrumentControl::endRun().
HRESULT Cdae::endSEWait | ( | BSTR * | messages | ) |
Definition at line 279 of file dae.cpp.
References ISISinstrumentControl::endSEWait().
HRESULT Cdae::fillWithTestPattern | ( | ULONG | pattern, |
BSTR * | messages | ||
) |
Definition at line 1194 of file dae.cpp.
References DAEstatus::add(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, ISISinstrumentControl::fillWithTestPattern(), g_icp_singleton, m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, and ISISinstrumentControl::unregisterStructuredExceptionHandler().
HRESULT Cdae::getArrayValue | ( | BSTR | name, |
VARIANT | arg, | ||
BSTR * | messages, | ||
VARIANT * | result | ||
) |
Definition at line 945 of file dae.cpp.
References accessArrayVariant(), DAEstatus::add(), ISISinstrumentControl::allReportFunc(), arrayVariantLength(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, getArrayValueMain(), m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, unaccessArrayVariant(), and ISISinstrumentControl::unregisterStructuredExceptionHandler().
|
protected |
Definition at line 503 of file dae.cpp.
References accessArrayVariant(), DAEstatus::addVa(), allocateArrayVariant(), ERRTYPE_OUTOFMEM, FAC_DAE, ISISinstrumentControl::getIntArrayItem(), ISISinstrumentControl::getIntArrayItemSize(), ISISinstrumentControl::getIntItem(), ISISinstrumentControl::getRealArrayItem(), ISISinstrumentControl::getRealArrayItemSize(), ISISinstrumentControl::getRealItem(), SEV_ERROR, DAEstatus::Success, and unaccessArrayVariant().
Referenced by getArrayValue().
HRESULT Cdae::getCRPTSpectraIntegral | ( | VARIANT | spectrum_numbers, |
LONG | period, | ||
VARIANT | time_low, | ||
VARIANT | time_high, | ||
VARIANT * | counts, | ||
BSTR * | messages | ||
) |
Definition at line 1425 of file dae.cpp.
References ISISinstrumentControl::getCRPTSpectrumIntegral(), and getSpectraIntegralHelper().
HRESULT Cdae::getCurrentPeriodNumber | ( | LONG * | period, |
LONG * | daq_period, | ||
BSTR * | messages | ||
) |
Definition at line 1102 of file dae.cpp.
References ISISinstrumentControl::getCurrentPeriodNumber().
HRESULT Cdae::getDAEsettings | ( | BSTR | dae_xml_in, |
BSTR * | dae_xml_out, | ||
BSTR * | messages | ||
) |
Definition at line 1147 of file dae.cpp.
References ISISinstrumentControl::getDAEsettingsXML(), and getSettings().
HRESULT Cdae::getFramesAllPeriods | ( | VARIANT * | good_frames, |
VARIANT * | raw_frames, | ||
BSTR * | messages | ||
) |
Definition at line 1359 of file dae.cpp.
References accessArrayVariant(), allocateArrayVariant(), ISISinstrumentControl::getFramesAllPeriods(), ISISinstrumentControl::getNumberOfPeriods(), and unaccessArrayVariant().
HRESULT Cdae::getGoodFramesPeriod | ( | BSTR * | messages, |
LONG * | value | ||
) |
Definition at line 1349 of file dae.cpp.
References ISISinstrumentControl::getCurrentPeriodGoodFrames().
HRESULT Cdae::getGoodFramesTotal | ( | BSTR * | messages, |
LONG * | value | ||
) |
Definition at line 673 of file dae.cpp.
References ISISinstrumentControl::getGoodFrames().
HRESULT Cdae::getGoodUAmpH | ( | BSTR * | messages, |
DOUBLE * | value | ||
) |
Definition at line 678 of file dae.cpp.
References ISISinstrumentControl::getGoodUAmpH().
HRESULT Cdae::getGoodUAmpHPeriod | ( | BSTR * | messages, |
DOUBLE * | value | ||
) |
Definition at line 1354 of file dae.cpp.
References ISISinstrumentControl::getCurrentPeriodGoodUAmpH().
HRESULT Cdae::getHardwarePeriods | ( | BSTR | periods_xml_in, |
BSTR * | periods_xml_out, | ||
BSTR * | messages | ||
) |
Definition at line 1152 of file dae.cpp.
References ISISinstrumentControl::getHardwarePeriodsXML(), and getSettings().
HRESULT Cdae::getMEvents | ( | BSTR * | messages, |
DOUBLE * | mevents | ||
) |
Definition at line 1092 of file dae.cpp.
References ISISinstrumentControl::getMEvents().
HRESULT Cdae::getMEventsPeriod | ( | LONG | period, |
BSTR * | messages, | ||
DOUBLE * | mevents | ||
) |
Definition at line 1097 of file dae.cpp.
References ISISinstrumentControl::getMEventsPeriod().
HRESULT Cdae::getMonitoringSettings | ( | BSTR | monitor_xml_in, |
BSTR * | monitor_xml_out, | ||
BSTR * | messages | ||
) |
Definition at line 1286 of file dae.cpp.
References ISISinstrumentControl::getMonitoringXML(), and getSettings().
HRESULT Cdae::getNPRatio | ( | FLOAT * | current, |
FLOAT * | average, | ||
BSTR * | messages | ||
) |
Definition at line 1072 of file dae.cpp.
References ISISinstrumentControl::getNPRatio().
HRESULT Cdae::getNumberOfPeriods | ( | BSTR * | messages, |
LONG * | nperiod | ||
) |
Definition at line 1470 of file dae.cpp.
References ISISinstrumentControl::getNumberOfPeriods().
HRESULT Cdae::getOptions | ( | BSTR * | options_xml, |
BSTR * | messages | ||
) |
Definition at line 932 of file dae.cpp.
References ISISinstrumentControl::getOptions(), getXML(), and reallocBSTR().
HRESULT Cdae::getRawFramesTotal | ( | BSTR * | messages, |
LONG * | value | ||
) |
Definition at line 668 of file dae.cpp.
References ISISinstrumentControl::getRawFrames().
HRESULT Cdae::getRunNumber | ( | BSTR * | messages, |
LONG * | run_number | ||
) |
Definition at line 1264 of file dae.cpp.
References DAEstatus::add(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, ISISinstrumentControl::getRunNumber(), m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, and ISISinstrumentControl::unregisterStructuredExceptionHandler().
HRESULT Cdae::getRunState | ( | BSTR * | messages, |
LONG * | state | ||
) |
Definition at line 1172 of file dae.cpp.
References DAEstatus::add(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, ISISinstrumentControl::getRunState(), m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, and ISISinstrumentControl::unregisterStructuredExceptionHandler().
HRESULT Cdae::getsect | ( | LONG | start, |
LONG | length, | ||
VARIANT * | values, | ||
BSTR * | messages | ||
) |
Definition at line 433 of file dae.cpp.
References accessArrayVariant(), DAEstatus::add(), allocateArrayVariant(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, unaccessArrayVariant(), and ISISinstrumentControl::unregisterStructuredExceptionHandler().
|
protected |
Definition at line 1124 of file dae.cpp.
References getXML(), and makeBSTR().
Referenced by getDAEsettings(), getHardwarePeriods(), getMonitoringSettings(), getTCB(), and getUpdateSettings().
HRESULT Cdae::getSpectraIntegral | ( | VARIANT | spectrum_numbers, |
LONG | period, | ||
VARIANT | time_low, | ||
VARIANT | time_high, | ||
VARIANT * | counts, | ||
BSTR * | messages | ||
) |
Definition at line 394 of file dae.cpp.
References getSpectraIntegralHelper(), and ISISinstrumentControl::getSpectrumIntegral().
HRESULT Cdae::getSpectraIntegral2 | ( | LONG | spec_start, |
LONG | nspectra, | ||
LONG | period, | ||
FLOAT | time_low, | ||
FLOAT | time_high, | ||
VARIANT * | counts, | ||
BSTR * | messages | ||
) |
Definition at line 399 of file dae.cpp.
References accessArrayVariant(), DAEstatus::add(), allocateArrayVariant(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, ISISinstrumentControl::getCRPTSpectrumIntegral(), m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, unaccessArrayVariant(), and ISISinstrumentControl::unregisterStructuredExceptionHandler().
|
protected |
Definition at line 360 of file dae.cpp.
References accessArrayVariant(), DAEstatus::add(), allocateArrayVariant(), ISISinstrumentControl::allReportFunc(), arrayVariantLength(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, unaccessArrayVariant(), and ISISinstrumentControl::unregisterStructuredExceptionHandler().
Referenced by getCRPTSpectraIntegral(), and getSpectraIntegral().
HRESULT Cdae::getSpectraSum | ( | LONG | period, |
LONG | first_spec, | ||
LONG | num_spec, | ||
LONG | spec_type, | ||
DOUBLE | time_low, | ||
DOUBLE | time_high, | ||
VARIANT * | sums, | ||
VARIANT * | max_vals, | ||
VARIANT * | spec_nums, | ||
BSTR * | messages | ||
) |
Definition at line 683 of file dae.cpp.
References accessArrayVariant(), DAEstatus::add(), allocateArrayVariant(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, ISISinstrumentControl::getNumberOfSpectra(), ISISinstrumentControl::getSpectrumIntegral(), m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, unaccessArrayVariant(), and ISISinstrumentControl::unregisterStructuredExceptionHandler().
HRESULT Cdae::getSpectrum | ( | LONG | spectrum_number, |
LONG | period, | ||
VARIANT * | time_channels, | ||
VARIANT * | signal, | ||
LONG | as_histogram, | ||
LONG | as_distribution, | ||
LONG * | sum, | ||
BSTR * | messages | ||
) |
Definition at line 284 of file dae.cpp.
References accessArrayVariant(), DAEstatus::add(), allocateArrayVariant(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, ISISinstrumentControl::getNumberOfTimeChannels(), ISISinstrumentControl::getSpectrum(), m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, unaccessArrayVariant(), and ISISinstrumentControl::unregisterStructuredExceptionHandler().
HRESULT Cdae::getSpectrumIntegral | ( | LONG | spectrum_number, |
LONG | period, | ||
FLOAT | time_low, | ||
FLOAT | time_high, | ||
LONG * | counts, | ||
BSTR * | messages | ||
) |
Definition at line 341 of file dae.cpp.
References DAEstatus::add(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, ISISinstrumentControl::getSpectrumIntegral(), m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, and ISISinstrumentControl::unregisterStructuredExceptionHandler().
HRESULT Cdae::getSpectrumNumbersForTR | ( | LONG | time_regime, |
LONG * | spec_min, | ||
LONG * | spec_max, | ||
BSTR * | messages | ||
) |
Definition at line 1464 of file dae.cpp.
References ISISinstrumentControl::getSpectrumNumbersForTimeRegime().
HRESULT Cdae::getStatusMessages | ( | LONG | stream, |
VARIANT * | messages | ||
) |
Definition at line 1312 of file dae.cpp.
References accessArrayVariant(), allocateArrayVariant(), g_icp_singleton, m_critical, DAEstatus::OK(), DAEstatus::reportAll(), DAEstatus::size(), status_reporter(), and unaccessArrayVariant().
HRESULT Cdae::getTCB | ( | BSTR | tcb_xml_in, |
BSTR * | tcb_xml_out, | ||
BSTR * | messages | ||
) |
Definition at line 1157 of file dae.cpp.
References getSettings(), and ISISinstrumentControl::getTCBXML().
HRESULT Cdae::getTotalCounts | ( | BSTR * | messages, |
LONG * | counts | ||
) |
Definition at line 1077 of file dae.cpp.
References ISISinstrumentControl::getTotalCounts().
HRESULT Cdae::getUAmpHAllPeriods | ( | VARIANT * | good_uamph, |
VARIANT * | raw_uamph, | ||
BSTR * | messages | ||
) |
Definition at line 1380 of file dae.cpp.
References accessArrayVariant(), allocateArrayVariant(), ISISinstrumentControl::getNumberOfPeriods(), ISISinstrumentControl::getUAmpHAllPeriods(), and unaccessArrayVariant().
HRESULT Cdae::getUpdateSettings | ( | BSTR | update_xml_in, |
BSTR * | update_xml_out, | ||
BSTR * | messages | ||
) |
Definition at line 1162 of file dae.cpp.
References getSettings(), and ISISinstrumentControl::getUpdateSettingsXML().
HRESULT Cdae::getValue | ( | BSTR | name, |
BSTR * | messages, | ||
VARIANT * | result | ||
) |
Definition at line 478 of file dae.cpp.
References DAEstatus::add(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, getValueMain(), m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, and ISISinstrumentControl::unregisterStructuredExceptionHandler().
|
protected |
Definition at line 590 of file dae.cpp.
References accessArrayVariant(), DAEstatus::addVa(), allocateArrayVariant(), ERRTYPE_OUTOFMEM, FAC_DAE, ISISinstrumentControl::getCharItem(), ISISinstrumentControl::getIntArrayItem(), ISISinstrumentControl::getIntArrayItemSize(), ISISinstrumentControl::getIntItem(), ISISinstrumentControl::getRealArrayItem(), ISISinstrumentControl::getRealArrayItemSize(), ISISinstrumentControl::getRealItem(), SEV_ERROR, DAEstatus::Success, and unaccessArrayVariant().
Referenced by getValue().
HRESULT Cdae::getVetoStatus | ( | BSTR * | veto_status, |
BSTR * | messages | ||
) |
Definition at line 1213 of file dae.cpp.
References ISISinstrumentControl::getVetoStatus(), makeBSTR(), and ISISinstrumentControl::whichVeto().
HRESULT Cdae::isFinalSequenceComplete | ( | BSTR * | messages, |
LONG * | complete | ||
) |
Definition at line 1455 of file dae.cpp.
References ISISinstrumentControl::isFinalSequenceComplete().
HRESULT Cdae::loadDAEWithData | ( | BSTR | file_name, |
LONG | options, | ||
BSTR * | messages | ||
) |
Definition at line 1231 of file dae.cpp.
References getBSTRValue(), and ISISinstrumentControl::loadDAEWithData().
|
static |
Definition at line 163 of file dae.cpp.
Referenced by getSettings(), getVetoStatus(), makeResult(), status_reporter(), and VMEReadValuesToString().
|
protected |
Definition at line 205 of file dae.cpp.
References DAEstatus::add(), DAEstatus::addInfo(), ERRTYPE_OUTOFMEM, FAC_DAE, makeBSTR(), DAEstatus::OK(), DAEstatus::report(), DAEstatus::reportAll(), SEV_ERROR, SEV_GE, SEV_LE, SEV_WARNING, and DAEstatus::severity().
Referenced by callICP(), checkTestPattern(), dumpDebugInfo(), fillWithTestPattern(), getArrayValue(), getRunNumber(), getRunState(), getsect(), getSpectraIntegral2(), getSpectraIntegralHelper(), getSpectraSum(), getSpectrum(), getSpectrumIntegral(), getValue(), quit(), rio(), setICPValueLong(), sumAllHistogramMemory(), sumAllSpectra(), VMEReadArray(), VMEReadValue(), VMEReadValuesToString(), VMEWriteArray(), and VMEWriteValue().
HRESULT Cdae::notifyICP | ( | LONG | event_id, |
BSTR | param, | ||
BSTR * | messages | ||
) |
Definition at line 1015 of file dae.cpp.
References ISISinstrumentControl::notifyICP().
HRESULT Cdae::pauseRun | ( | BSTR * | messages | ) |
Definition at line 254 of file dae.cpp.
References ISISinstrumentControl::pauseRun().
HRESULT Cdae::quit | ( | BSTR * | messages | ) |
Definition at line 1431 of file dae.cpp.
References DAEstatus::add(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, ISISinstrumentControl::exitProgram(), FAC_DAE, g_icp_singleton, m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, and ISISinstrumentControl::unregisterStructuredExceptionHandler().
|
protected |
Definition at line 184 of file dae.cpp.
Referenced by getOptions(), and updateStatusXML().
HRESULT Cdae::refreshCachedValues | ( | BSTR * | messages | ) |
Definition at line 920 of file dae.cpp.
References ISISinstrumentControl::refreshCachedValues().
HRESULT Cdae::requestEndRunAfterNextSequenceCompletes | ( | BSTR * | messages | ) |
Definition at line 1449 of file dae.cpp.
References ISISinstrumentControl::requestEndRunAfterNextSequenceCompletes().
HRESULT Cdae::resumeRun | ( | BSTR * | messages | ) |
Definition at line 259 of file dae.cpp.
References ISISinstrumentControl::resumeRun().
HRESULT Cdae::rio | ( | LONG | address, |
LONG * | value, | ||
BSTR * | messages | ||
) |
Definition at line 457 of file dae.cpp.
References DAEstatus::add(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), ISISinstrumentControl::RIO(), DAEstatus::setReportCopyFunction(), SEV_ERROR, and ISISinstrumentControl::unregisterStructuredExceptionHandler().
HRESULT Cdae::saveRun | ( | BSTR * | messages | ) |
Definition at line 264 of file dae.cpp.
References ISISinstrumentControl::saveRun().
HRESULT Cdae::setBeamlineParameters | ( | VARIANT | table, |
BSTR * | messages | ||
) |
Definition at line 1036 of file dae.cpp.
References ISISinstrumentControl::setBeamlineParameters(), and variantToStringTable().
HRESULT Cdae::setBlocksTable | ( | VARIANT | table, |
BSTR * | messages | ||
) |
Definition at line 1022 of file dae.cpp.
References ISISinstrumentControl::setBlockTable(), and variantToStringTable().
HRESULT Cdae::setICPValueLong | ( | BSTR | name, |
LONG | value, | ||
BSTR * | messages | ||
) |
Definition at line 987 of file dae.cpp.
References DAEstatus::add(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), ISISinstrumentControl::setRunNumber(), ISISinstrumentControl::setRunStatus(), SEV_ERROR, and ISISinstrumentControl::unregisterStructuredExceptionHandler().
HRESULT Cdae::setOptions | ( | BSTR | options_xml, |
BSTR * | messages | ||
) |
Definition at line 925 of file dae.cpp.
References getXML(), and ISISinstrumentControl::setOptions().
HRESULT Cdae::setSampleParameters | ( | VARIANT | table, |
BSTR * | messages | ||
) |
Definition at line 1029 of file dae.cpp.
References ISISinstrumentControl::setSampleParameters(), and variantToStringTable().
HRESULT Cdae::setUserParameters | ( | LONG | rbno, |
VARIANT | table, | ||
BSTR * | messages | ||
) |
Definition at line 1043 of file dae.cpp.
References ISISinstrumentControl::setUserParameters(), and variantToStringTable().
HRESULT Cdae::setVeto | ( | BSTR | name, |
LONG | enable, | ||
BSTR * | messages | ||
) |
Definition at line 1238 of file dae.cpp.
References getBSTRValue(), and ISISinstrumentControl::setVeto().
HRESULT Cdae::snapshotCRPT | ( | BSTR | filename, |
LONG | do_update, | ||
LONG | do_pause, | ||
BSTR * | messages | ||
) |
Definition at line 1111 of file dae.cpp.
References NULL_TERMINATE, and ISISinstrumentControl::snapshotCRPT().
HRESULT Cdae::startSEWait | ( | BSTR * | messages | ) |
Definition at line 274 of file dae.cpp.
References ISISinstrumentControl::startSEWait().
HRESULT Cdae::storeCRPT | ( | BSTR * | messages | ) |
Definition at line 982 of file dae.cpp.
References ISISinstrumentControl::storeCRPT().
HRESULT Cdae::sumAllHistogramMemory | ( | LONG * | counts, |
BSTR * | messages | ||
) |
Definition at line 837 of file dae.cpp.
References DAEstatus::add(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, ISISinstrumentControl::sumAllHistogramMemory(), and ISISinstrumentControl::unregisterStructuredExceptionHandler().
HRESULT Cdae::sumAllSpectra | ( | LONG * | counts, |
LONG * | bin0_counts, | ||
BSTR * | messages | ||
) |
Definition at line 819 of file dae.cpp.
References DAEstatus::add(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, ISISinstrumentControl::sumAllSpectra(), and ISISinstrumentControl::unregisterStructuredExceptionHandler().
HRESULT Cdae::updateCRPT | ( | BSTR * | messages | ) |
Definition at line 977 of file dae.cpp.
References ISISinstrumentControl::updateCRPTWithDAE().
HRESULT Cdae::updateCRPTSpectra | ( | LONG | period, |
LONG | spec_start, | ||
LONG | nspec, | ||
BSTR * | messages | ||
) |
Definition at line 1420 of file dae.cpp.
References ISISinstrumentControl::updateCRPTSpectra().
|
protected |
Definition at line 1139 of file dae.cpp.
References getXML().
Referenced by changeMonitoringSettings().
HRESULT Cdae::updateStatusXML | ( | BSTR * | cluster_xml, |
BSTR * | messages | ||
) |
Definition at line 147 of file dae.cpp.
References getXML(), reallocBSTR(), and ISISinstrumentControl::updateStatusXML().
Referenced by updateStatusXML2().
HRESULT Cdae::updateStatusXML2 | ( | BSTR | status_xml_in, |
BSTR * | status_xml_out, | ||
BSTR * | messages | ||
) |
Definition at line 1476 of file dae.cpp.
References updateStatusXML().
HRESULT Cdae::VMEReadArray | ( | ULONG | card_id, |
ULONG | card_address, | ||
VARIANT * | values, | ||
ULONG | num_values, | ||
BSTR * | messages | ||
) |
Definition at line 854 of file dae.cpp.
References accessArrayVariant(), DAEstatus::add(), allocateArrayVariant(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, unaccessArrayVariant(), ISISinstrumentControl::unregisterStructuredExceptionHandler(), and ISISinstrumentControl::VMEReadArray().
HRESULT Cdae::VMEReadValue | ( | ULONG | card_id, |
ULONG | card_address, | ||
ULONG | word_size, | ||
ULONG * | value, | ||
BSTR * | messages | ||
) |
Definition at line 801 of file dae.cpp.
References DAEstatus::add(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, ISISinstrumentControl::unregisterStructuredExceptionHandler(), and ISISinstrumentControl::VMEReadValue().
HRESULT Cdae::VMEReadValuesToString | ( | ULONG | card_id, |
ULONG | card_address, | ||
ULONG | word_size, | ||
ULONG | num_values, | ||
BSTR * | values, | ||
BSTR * | messages | ||
) |
Definition at line 899 of file dae.cpp.
References DAEstatus::add(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, m_critical, makeBSTR(), makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, ISISinstrumentControl::unregisterStructuredExceptionHandler(), and ISISinstrumentControl::VMEReadValuesToString().
HRESULT Cdae::VMEWriteArray | ( | ULONG | card_id, |
ULONG | card_address, | ||
VARIANT | values, | ||
BSTR * | messages | ||
) |
Definition at line 878 of file dae.cpp.
References accessArrayVariant(), DAEstatus::add(), ISISinstrumentControl::allReportFunc(), arrayVariantLength(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, ISISinstrumentControl::unregisterStructuredExceptionHandler(), and ISISinstrumentControl::VMEWriteArray().
HRESULT Cdae::VMEWriteValue | ( | ULONG | card_id, |
ULONG | card_address, | ||
ULONG | word_size, | ||
ULONG | value, | ||
ULONG | mode, | ||
BSTR * | messages | ||
) |
Definition at line 783 of file dae.cpp.
References DAEstatus::add(), ISISinstrumentControl::allReportFunc(), ERRTYPE_OUTOFMEM, FAC_DAE, g_icp_singleton, m_critical, makeResult(), ISISinstrumentControl::registerStructuredExceptionHandler(), DAEstatus::setReportCopyFunction(), SEV_ERROR, ISISinstrumentControl::unregisterStructuredExceptionHandler(), and ISISinstrumentControl::VMEWriteValue().
|
static |
Definition at line 74 of file dae.h.
Referenced by callICP(), checkTestPattern(), dumpDebugInfo(), fillWithTestPattern(), getArrayValue(), getRunNumber(), getRunState(), getsect(), getSpectraIntegral2(), getSpectraIntegralHelper(), getSpectraSum(), getSpectrum(), getSpectrumIntegral(), getStatusMessages(), getValue(), quit(), rio(), setICPValueLong(), sumAllHistogramMemory(), sumAllSpectra(), VMEReadArray(), VMEReadValue(), VMEReadValuesToString(), VMEWriteArray(), and VMEWriteValue().