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