41 #define _CRT_SECURE_NO_DEPRECATE //do not use windows secure crt 49 #define __FILE_ID__ "latitude" 53 ,_valueCallbackLatitude(NULL)
54 ,_timedReportCallbackLatitude(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 ||
YLatitudeValueCallback _valueCallbackLatitude
static void _UpdateTimedReportCallbackList(YFunction *func, bool add)
virtual int _invokeValueCallback(string value)
virtual int registerTimedReportCallback(YLatitudeTimedReportCallback 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)
YLatitude * nextLatitude(void)
static YLatitude * FindLatitude(string func)
static void _AddToCache(const string &classname, const string &func, YFunction *obj)
virtual int _invokeTimedReportCallback(YMeasure value)
void(* YLatitudeTimedReportCallback)(YLatitude *func, YMeasure measure)
virtual int _invokeValueCallback(string value)
static YFunction * _FindFromCache(const string &classname, const string &func)
void yEnterCriticalSection(yCRITICAL_SECTION *cs)
static yCRITICAL_SECTION _global_cs
void(* YLatitudeValueCallback)(YLatitude *func, const string &functionValue)
static int getFunctionsByClass(const string &class_str, YFUN_DESCR prevfundesc, vector< YFUN_DESCR > &buffer, int maxsize, string &errmsg)
static YLatitude * FirstLatitude(void)
virtual int registerValueCallback(YLatitudeValueCallback callback)
static bool _apiInitialized
YRETCODE _nextFunction(string &hwId)
static void _UpdateValueCallbackList(YFunction *func, bool add)
virtual int _invokeTimedReportCallback(YMeasure value)
YLatitude(const string &func)
YLatitudeTimedReportCallback _timedReportCallbackLatitude