41 #define _CRT_SECURE_NO_DEPRECATE //do not use windows secure crt 49 #define __FILE_ID__ "pressure" 53 ,_valueCallbackPressure(NULL)
54 ,_timedReportCallbackPressure(NULL)
109 }
catch (std::exception) {
131 if (callback != NULL) {
138 if (callback != NULL && this->
isOnline()) {
172 if (callback != NULL) {
203 vector<YFUN_DESCR> v_fundescr;
205 string serial, funcId, funcName, funcVal, errmsg;
208 v_fundescr.size() == 0 ||
static void _UpdateTimedReportCallbackList(YFunction *func, bool add)
YPressureTimedReportCallback _timedReportCallbackPressure
virtual int _invokeValueCallback(string value)
void yLeaveCriticalSection(yCRITICAL_SECTION *cs)
static YRETCODE getFunctionInfo(YFUN_DESCR fundesc, YDEV_DESCR &devdescr, string &serial, string &funcId, string &funcName, string &funcVal, string &errmsg)
YPressure(const string &func)
YPressure * nextPressure(void)
virtual int _invokeTimedReportCallback(YMeasure value)
static void _AddToCache(const string &classname, const string &func, YFunction *obj)
virtual int _invokeTimedReportCallback(YMeasure value)
virtual int _invokeValueCallback(string value)
static YFunction * _FindFromCache(const string &classname, const string &func)
virtual int registerValueCallback(YPressureValueCallback callback)
void yEnterCriticalSection(yCRITICAL_SECTION *cs)
static yCRITICAL_SECTION _global_cs
void(* YPressureTimedReportCallback)(YPressure *func, YMeasure measure)
static int getFunctionsByClass(const string &class_str, YFUN_DESCR prevfundesc, vector< YFUN_DESCR > &buffer, int maxsize, string &errmsg)
static YPressure * FirstPressure(void)
void(* YPressureValueCallback)(YPressure *func, const string &functionValue)
static YPressure * FindPressure(string func)
YPressureValueCallback _valueCallbackPressure
virtual int registerTimedReportCallback(YPressureTimedReportCallback callback)
static bool _apiInitialized
YRETCODE _nextFunction(string &hwId)
static void _UpdateValueCallbackList(YFunction *func, bool add)