41 #define _CRT_SECURE_NO_DEPRECATE //do not use windows secure crt 49 #define __FILE_ID__ "groundspeed" 53 ,_valueCallbackGroundSpeed(NULL)
54 ,_timedReportCallbackGroundSpeed(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 ||
YGroundSpeedValueCallback _valueCallbackGroundSpeed
static void _UpdateTimedReportCallbackList(YFunction *func, bool add)
static YGroundSpeed * FirstGroundSpeed(void)
virtual int registerTimedReportCallback(YGroundSpeedTimedReportCallback callback)
YGroundSpeedTimedReportCallback _timedReportCallbackGroundSpeed
virtual int _invokeTimedReportCallback(YMeasure value)
virtual int _invokeValueCallback(string value)
void yLeaveCriticalSection(yCRITICAL_SECTION *cs)
virtual int registerValueCallback(YGroundSpeedValueCallback callback)
static YRETCODE getFunctionInfo(YFUN_DESCR fundesc, YDEV_DESCR &devdescr, string &serial, string &funcId, string &funcName, string &funcVal, string &errmsg)
YGroundSpeed * nextGroundSpeed(void)
static void _AddToCache(const string &classname, const string &func, YFunction *obj)
virtual int _invokeTimedReportCallback(YMeasure value)
void(* YGroundSpeedValueCallback)(YGroundSpeed *func, const string &functionValue)
virtual int _invokeValueCallback(string value)
static YFunction * _FindFromCache(const string &classname, const string &func)
void yEnterCriticalSection(yCRITICAL_SECTION *cs)
static yCRITICAL_SECTION _global_cs
YGroundSpeed(const string &func)
static int getFunctionsByClass(const string &class_str, YFUN_DESCR prevfundesc, vector< YFUN_DESCR > &buffer, int maxsize, string &errmsg)
static YGroundSpeed * FindGroundSpeed(string func)
static bool _apiInitialized
YRETCODE _nextFunction(string &hwId)
static void _UpdateValueCallbackList(YFunction *func, bool add)
void(* YGroundSpeedTimedReportCallback)(YGroundSpeed *func, YMeasure measure)