ICP
1
|
#include <session.h>
Public Member Functions | |
Csession () | |
HRESULT | InterfaceSupportsErrorInfo (REFIID riid) |
HRESULT | FinalConstruct () |
void | FinalRelease () |
HRESULT | get_role (BSTR *pVal) |
HRESULT | put_role (BSTR newVal) |
HRESULT | getMessages (LONG start_index, BSTR min_severity, VARIANT *times, VARIANT *severities, VARIANT *messages, LONG *end_index) |
HRESULT | putMessage (BSTR time, BSTR severity, BSTR message) |
HRESULT | getBlock (BSTR block_name, Iblock **block) |
HRESULT | getBlockNames (VARIANT *block_names) |
HRESULT | get_session_id (ULONG *pVal) |
HRESULT | put_session_id (ULONG newVal) |
HRESULT | getLabviewVar (BSTR vi_name, BSTR control_name, VARIANT *value) |
HRESULT | setLabviewVar (BSTR vi_name, BSTR control_name, VARIANT new_value) |
HRESULT | setLabviewVarExt (BSTR vi_name, BSTR control_name, VARIANT new_value, VARIANT *results) |
HRESULT | callLabview (BSTR vi_name, VARIANT names, VARIANT values, VARIANT_BOOL reentrant, VARIANT *results) |
HRESULT | toggleViVisibility (BSTR vi_name, VARIANT_BOOL show) |
HRESULT | getViState (BSTR vi_name, VARIANT *value) |
HRESULT | startVi (BSTR vi_name) |
HRESULT | stopVi (BSTR vi_name) |
HRESULT | closeViFrontPanel (BSTR vi_name) |
HRESULT | beginRun (LONG period, VARIANT_BOOL wait, VARIANT_BOOL quiet, VARIANT_BOOL paused, BSTR *messages) |
HRESULT | abortRun (BSTR *messages) |
HRESULT | endRun (BSTR *messages) |
HRESULT | getRunState (BSTR *messages, LONG *status) |
HRESULT | pauseRun (BSTR *messages) |
HRESULT | resumeRun (BSTR *messages) |
HRESULT | recoverRun (BSTR *messages) |
HRESULT | saveRun (BSTR *messages) |
HRESULT | updateCRPT (BSTR *messages) |
HRESULT | storeCRPT (BSTR *messages) |
HRESULT | getGoodFrames (VARIANT_BOOL curr_period, BSTR *messages, LONG *frames) |
HRESULT | getUamps (VARIANT_BOOL curr_period, BSTR *messages, DOUBLE *uamps) |
HRESULT | getMEvents (BSTR *messages, DOUBLE *mev) |
HRESULT | getCurrentPeriod (LONG *daq_period, BSTR *messages, LONG *period) |
HRESULT | getRunNumber (BSTR *messages, LONG *run_no) |
HRESULT | getTotalCounts (BSTR *messages, LONG *counts) |
HRESULT | snapshotCRPT (BSTR filename, LONG do_update, LONG do_pause, BSTR *messages) |
HRESULT | sumAllHistogramMemory (BSTR *messages, LONG *counts) |
HRESULT | sumAllSpectra (LONG *bin_counts, BSTR *messages, LONG *counts) |
HRESULT | setRBNumber (VARIANT rb_no) |
HRESULT | getRBNumber (VARIANT *rb_no) |
HRESULT | setPeriod (LONG period_number, BSTR *messages) |
HRESULT | setTitle (VARIANT title) |
HRESULT | getSpectrum (LONG spectrum_no, LONG period, VARIANT_BOOL as_dist, VARIANT *time_channels, VARIANT *signal, LONG *sum, BSTR *messages) |
HRESULT | changeNumberOfSoftwarePeriods (LONG num_periods, BSTR *messages) |
HRESULT | getNumberOfPeriods (BSTR *messages, LONG *num_periods) |
HRESULT | setBeamlineParameter (VARIANT name, VARIANT value, VARIANT units) |
HRESULT | deleteBeamlineParameter (VARIANT name) |
HRESULT | getBeamlineParameter (BSTR name, BSTR *units, BSTR *type, BSTR *value) |
HRESULT | getBeamlineParameterNames (VARIANT *names) |
HRESULT | vmeWriteValue (ULONG card_id, ULONG card_address, ULONG word_size, ULONG value, ULONG mode, BSTR *messages) |
HRESULT | setSampleParameter (VARIANT name, VARIANT value, VARIANT units) |
HRESULT | deleteSampleParameter (VARIANT name) |
HRESULT | getSampleParameter (BSTR name, BSTR *units, BSTR *type, BSTR *value) |
HRESULT | getSampleParameterNames (VARIANT *names) |
HRESULT | deleteAllBeamlineParameters () |
HRESULT | deleteAllSampleParameters () |
HRESULT | getSeciConfig (BSTR *name) |
HRESULT | clearSeciGraphs () |
HRESULT | clearDatabaseLogs (int run_number) |
HRESULT | clearLogFiles (int run_number, BSTR path) |
HRESULT | getMeasurementLabel (BSTR id, BSTR *label) |
HRESULT | setMeasurementLabel (BSTR id, BSTR label) |
HRESULT | getMeasurementId (BSTR label, VARIANT_BOOL newId, BSTR *id) |
HRESULT | getViNames (VARIANT *names) |
HRESULT | logBlocksNow (BSTR source) |
HRESULT | changeSeciConfiguration (BSTR vi_name, VARIANT_BOOL *result) |
HRESULT | isSeciBusy (VARIANT_BOOL *result) |
Private Attributes | |
unsigned long | m_session_id |
0 is an invalid session More... | |
HRESULT Csession::abortRun | ( | BSTR * | messages | ) |
Definition at line 144 of file session.cpp.
References InstAPILib::abortRun(), callInstAPILib(), and m_session_id.
HRESULT Csession::beginRun | ( | LONG | period, |
VARIANT_BOOL | wait, | ||
VARIANT_BOOL | quiet, | ||
VARIANT_BOOL | paused, | ||
BSTR * | messages | ||
) |
Definition at line 139 of file session.cpp.
References InstAPILib::beginRun(), callInstAPILib(), and m_session_id.
HRESULT Csession::callLabview | ( | BSTR | vi_name, |
VARIANT | names, | ||
VARIANT | values, | ||
VARIANT_BOOL | reentrant, | ||
VARIANT * | results | ||
) |
Definition at line 97 of file session.cpp.
References callInstAPILib(), InstAPILib::callLabview(), and m_session_id.
HRESULT Csession::changeNumberOfSoftwarePeriods | ( | LONG | num_periods, |
BSTR * | messages | ||
) |
Definition at line 259 of file session.cpp.
References callInstAPILib(), InstAPILib::changeNumberOfSoftwarePeriods(), and m_session_id.
HRESULT Csession::changeSeciConfiguration | ( | BSTR | vi_name, |
VARIANT_BOOL * | result | ||
) |
Definition at line 359 of file session.cpp.
References callInstAPILib(), InstAPILib::changeSeciConfiguration(), and m_session_id.
HRESULT Csession::clearDatabaseLogs | ( | int | run_number | ) |
Definition at line 324 of file session.cpp.
References callInstAPILib(), InstAPILib::clearDatabaseLogs(), and m_session_id.
HRESULT Csession::clearLogFiles | ( | int | run_number, |
BSTR | path | ||
) |
Definition at line 329 of file session.cpp.
References callInstAPILib(), InstAPILib::clearLogFiles(), and m_session_id.
HRESULT Csession::clearSeciGraphs | ( | ) |
Definition at line 77 of file session.cpp.
References callInstAPILib(), InstAPILib::clearSeciGraphs(), and m_session_id.
HRESULT Csession::closeViFrontPanel | ( | BSTR | vi_name | ) |
Definition at line 122 of file session.cpp.
References callInstAPILib(), InstAPILib::closeViFrontPanel(), and m_session_id.
HRESULT Csession::deleteAllBeamlineParameters | ( | ) |
Definition at line 274 of file session.cpp.
References callInstAPILib(), InstAPILib::deleteAllBeamlineParameters(), and m_session_id.
HRESULT Csession::deleteAllSampleParameters | ( | ) |
Definition at line 299 of file session.cpp.
References callInstAPILib(), InstAPILib::deleteAllSampleParameters(), and m_session_id.
HRESULT Csession::deleteBeamlineParameter | ( | VARIANT | name | ) |
Definition at line 269 of file session.cpp.
References callInstAPILib(), InstAPILib::deleteBeamlineParameter(), and m_session_id.
HRESULT Csession::deleteSampleParameter | ( | VARIANT | name | ) |
Definition at line 294 of file session.cpp.
References callInstAPILib(), InstAPILib::deleteSampleParameter(), and m_session_id.
HRESULT Csession::endRun | ( | BSTR * | messages | ) |
Definition at line 149 of file session.cpp.
References callInstAPILib(), InstAPILib::endRun(), and m_session_id.
|
inline |
Definition at line 65 of file session.h.
References callInstAPILib(), and InstAPILib::deleteSession().
HRESULT Csession::get_role | ( | BSTR * | pVal | ) |
Definition at line 30 of file session.cpp.
References callInstAPILib(), InstAPILib::getRole(), and m_session_id.
HRESULT Csession::get_session_id | ( | ULONG * | pVal | ) |
Definition at line 127 of file session.cpp.
References m_session_id.
HRESULT Csession::getBeamlineParameter | ( | BSTR | name, |
BSTR * | units, | ||
BSTR * | type, | ||
BSTR * | value | ||
) |
Definition at line 284 of file session.cpp.
References callInstAPILib(), InstAPILib::getBeamlineParameter(), and m_session_id.
HRESULT Csession::getBeamlineParameterNames | ( | VARIANT * | names | ) |
Definition at line 279 of file session.cpp.
References callInstAPILib(), InstAPILib::getBeamlineParameterNames(), and m_session_id.
HRESULT Csession::getBlock | ( | BSTR | block_name, |
Iblock ** | block | ||
) |
Definition at line 53 of file session.cpp.
References inst_api, and reportError().
HRESULT Csession::getBlockNames | ( | VARIANT * | block_names | ) |
Definition at line 72 of file session.cpp.
References callInstAPILib(), InstAPILib::getBlockNames(), and m_session_id.
HRESULT Csession::getCurrentPeriod | ( | LONG * | daq_period, |
BSTR * | messages, | ||
LONG * | period | ||
) |
Definition at line 204 of file session.cpp.
References callInstAPILib(), InstAPILib::getCurrentPeriod(), and m_session_id.
HRESULT Csession::getGoodFrames | ( | VARIANT_BOOL | curr_period, |
BSTR * | messages, | ||
LONG * | frames | ||
) |
Definition at line 189 of file session.cpp.
References callInstAPILib(), InstAPILib::getGoodFrames(), and m_session_id.
HRESULT Csession::getLabviewVar | ( | BSTR | vi_name, |
BSTR | control_name, | ||
VARIANT * | value | ||
) |
Definition at line 82 of file session.cpp.
References callInstAPILib(), InstAPILib::getLabviewValue(), and m_session_id.
HRESULT Csession::getMeasurementId | ( | BSTR | label, |
VARIANT_BOOL | newId, | ||
BSTR * | id | ||
) |
Definition at line 344 of file session.cpp.
References callInstAPILib(), InstAPILib::getMeasurementId(), and m_session_id.
HRESULT Csession::getMeasurementLabel | ( | BSTR | id, |
BSTR * | label | ||
) |
Definition at line 334 of file session.cpp.
References callInstAPILib(), InstAPILib::getMeasurementLabel(), and m_session_id.
HRESULT Csession::getMessages | ( | LONG | start_index, |
BSTR | min_severity, | ||
VARIANT * | times, | ||
VARIANT * | severities, | ||
VARIANT * | messages, | ||
LONG * | end_index | ||
) |
Definition at line 42 of file session.cpp.
References callInstAPILib(), InstAPILib::getMessages(), and m_session_id.
HRESULT Csession::getMEvents | ( | BSTR * | messages, |
DOUBLE * | mev | ||
) |
Definition at line 199 of file session.cpp.
References callInstAPILib(), InstAPILib::getMEvents(), and m_session_id.
HRESULT Csession::getNumberOfPeriods | ( | BSTR * | messages, |
LONG * | num_periods | ||
) |
Definition at line 369 of file session.cpp.
References callInstAPILib(), InstAPILib::getNumberOfPeriods(), and m_session_id.
HRESULT Csession::getRBNumber | ( | VARIANT * | rb_no | ) |
Definition at line 239 of file session.cpp.
References callInstAPILib(), InstAPILib::getRbNumber(), and m_session_id.
HRESULT Csession::getRunNumber | ( | BSTR * | messages, |
LONG * | run_no | ||
) |
Definition at line 209 of file session.cpp.
References callInstAPILib(), InstAPILib::getRunNumber(), and m_session_id.
HRESULT Csession::getRunState | ( | BSTR * | messages, |
LONG * | status | ||
) |
Definition at line 154 of file session.cpp.
References callInstAPILib(), InstAPILib::getRunState(), and m_session_id.
HRESULT Csession::getSampleParameter | ( | BSTR | name, |
BSTR * | units, | ||
BSTR * | type, | ||
BSTR * | value | ||
) |
Definition at line 309 of file session.cpp.
References callInstAPILib(), InstAPILib::getSampleParameter(), and m_session_id.
HRESULT Csession::getSampleParameterNames | ( | VARIANT * | names | ) |
Definition at line 304 of file session.cpp.
References callInstAPILib(), InstAPILib::getSampleParameterNames(), and m_session_id.
HRESULT Csession::getSeciConfig | ( | BSTR * | name | ) |
Definition at line 319 of file session.cpp.
References callInstAPILib(), InstAPILib::getSeciConfig(), and m_session_id.
HRESULT Csession::getSpectrum | ( | LONG | spectrum_no, |
LONG | period, | ||
VARIANT_BOOL | as_dist, | ||
VARIANT * | time_channels, | ||
VARIANT * | signal, | ||
LONG * | sum, | ||
BSTR * | messages | ||
) |
Definition at line 254 of file session.cpp.
References callInstAPILib(), InstAPILib::getSpectrum(), and m_session_id.
HRESULT Csession::getTotalCounts | ( | BSTR * | messages, |
LONG * | counts | ||
) |
Definition at line 214 of file session.cpp.
References callInstAPILib(), InstAPILib::getTotalCounts(), and m_session_id.
HRESULT Csession::getUamps | ( | VARIANT_BOOL | curr_period, |
BSTR * | messages, | ||
DOUBLE * | uamps | ||
) |
Definition at line 194 of file session.cpp.
References callInstAPILib(), InstAPILib::getUamps(), and m_session_id.
HRESULT Csession::getViNames | ( | VARIANT * | names | ) |
Definition at line 349 of file session.cpp.
References callInstAPILib(), InstAPILib::getViNames(), and m_session_id.
HRESULT Csession::getViState | ( | BSTR | vi_name, |
VARIANT * | value | ||
) |
Definition at line 107 of file session.cpp.
References callInstAPILib(), InstAPILib::getViState(), and m_session_id.
HRESULT Csession::InterfaceSupportsErrorInfo | ( | REFIID | riid | ) |
Definition at line 14 of file session.cpp.
HRESULT Csession::isSeciBusy | ( | VARIANT_BOOL * | result | ) |
Definition at line 364 of file session.cpp.
References callInstAPILib(), InstAPILib::isSeciBusy(), and m_session_id.
HRESULT Csession::logBlocksNow | ( | BSTR | source | ) |
Definition at line 354 of file session.cpp.
References callInstAPILib(), InstAPILib::logBlocksNow(), and m_session_id.
HRESULT Csession::pauseRun | ( | BSTR * | messages | ) |
Definition at line 159 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::pauseRun().
HRESULT Csession::put_role | ( | BSTR | newVal | ) |
Definition at line 36 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::setRole().
HRESULT Csession::put_session_id | ( | ULONG | newVal | ) |
Definition at line 133 of file session.cpp.
References m_session_id.
HRESULT Csession::putMessage | ( | BSTR | time, |
BSTR | severity, | ||
BSTR | message | ||
) |
Definition at line 48 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::putMessage().
HRESULT Csession::recoverRun | ( | BSTR * | messages | ) |
Definition at line 169 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::recoverRun().
HRESULT Csession::resumeRun | ( | BSTR * | messages | ) |
Definition at line 164 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::resumeRun().
HRESULT Csession::saveRun | ( | BSTR * | messages | ) |
Definition at line 174 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::saveRun().
HRESULT Csession::setBeamlineParameter | ( | VARIANT | name, |
VARIANT | value, | ||
VARIANT | units | ||
) |
Definition at line 264 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::setBeamlineParameter().
HRESULT Csession::setLabviewVar | ( | BSTR | vi_name, |
BSTR | control_name, | ||
VARIANT | new_value | ||
) |
Definition at line 87 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::setLabviewValue().
HRESULT Csession::setLabviewVarExt | ( | BSTR | vi_name, |
BSTR | control_name, | ||
VARIANT | new_value, | ||
VARIANT * | results | ||
) |
Definition at line 92 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::setLabviewValueExt().
HRESULT Csession::setMeasurementLabel | ( | BSTR | id, |
BSTR | label | ||
) |
Definition at line 339 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::setMeasurementLabel().
HRESULT Csession::setPeriod | ( | LONG | period_number, |
BSTR * | messages | ||
) |
Definition at line 244 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::setPeriod().
HRESULT Csession::setRBNumber | ( | VARIANT | rb_no | ) |
Definition at line 234 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::setRbNumber().
HRESULT Csession::setSampleParameter | ( | VARIANT | name, |
VARIANT | value, | ||
VARIANT | units | ||
) |
Definition at line 289 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::setSampleParameter().
HRESULT Csession::setTitle | ( | VARIANT | title | ) |
Definition at line 249 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::setTitle().
HRESULT Csession::snapshotCRPT | ( | BSTR | filename, |
LONG | do_update, | ||
LONG | do_pause, | ||
BSTR * | messages | ||
) |
Definition at line 219 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::snapshotCRPT().
HRESULT Csession::startVi | ( | BSTR | vi_name | ) |
Definition at line 112 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::startVi().
HRESULT Csession::stopVi | ( | BSTR | vi_name | ) |
Definition at line 117 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::stopVi().
HRESULT Csession::storeCRPT | ( | BSTR * | messages | ) |
Definition at line 184 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::storeCRPT().
HRESULT Csession::sumAllHistogramMemory | ( | BSTR * | messages, |
LONG * | counts | ||
) |
Definition at line 224 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::sumAllHistogramMemory().
HRESULT Csession::sumAllSpectra | ( | LONG * | bin_counts, |
BSTR * | messages, | ||
LONG * | counts | ||
) |
Definition at line 229 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::sumAllSpectra().
HRESULT Csession::toggleViVisibility | ( | BSTR | vi_name, |
VARIANT_BOOL | show | ||
) |
Definition at line 102 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::toggleViVisibility().
HRESULT Csession::updateCRPT | ( | BSTR * | messages | ) |
Definition at line 179 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::updateCRPT().
HRESULT Csession::vmeWriteValue | ( | ULONG | card_id, |
ULONG | card_address, | ||
ULONG | word_size, | ||
ULONG | value, | ||
ULONG | mode, | ||
BSTR * | messages | ||
) |
Definition at line 314 of file session.cpp.
References callInstAPILib(), m_session_id, and InstAPILib::vmeWriteValue().
|
private |
0 is an invalid session
Definition at line 33 of file session.h.
Referenced by abortRun(), beginRun(), callLabview(), changeNumberOfSoftwarePeriods(), changeSeciConfiguration(), clearDatabaseLogs(), clearLogFiles(), clearSeciGraphs(), closeViFrontPanel(), deleteAllBeamlineParameters(), deleteAllSampleParameters(), deleteBeamlineParameter(), deleteSampleParameter(), endRun(), get_role(), get_session_id(), getBeamlineParameter(), getBeamlineParameterNames(), getBlockNames(), getCurrentPeriod(), getGoodFrames(), getLabviewVar(), getMeasurementId(), getMeasurementLabel(), getMessages(), getMEvents(), getNumberOfPeriods(), getRBNumber(), getRunNumber(), getRunState(), getSampleParameter(), getSampleParameterNames(), getSeciConfig(), getSpectrum(), getTotalCounts(), getUamps(), getViNames(), getViState(), isSeciBusy(), logBlocksNow(), pauseRun(), put_role(), put_session_id(), putMessage(), recoverRun(), resumeRun(), saveRun(), setBeamlineParameter(), setLabviewVar(), setLabviewVarExt(), setMeasurementLabel(), setPeriod(), setRBNumber(), setSampleParameter(), setTitle(), snapshotCRPT(), startVi(), stopVi(), storeCRPT(), sumAllHistogramMemory(), sumAllSpectra(), toggleViVisibility(), updateCRPT(), and vmeWriteValue().