yocto_groundspeed.h
Go to the documentation of this file.
1 /*********************************************************************
2  *
3  * $Id: yocto_groundspeed.h 28748 2017-10-03 08:23:39Z seb $
4  *
5  * Declares yFindGroundSpeed(), the high-level API for GroundSpeed functions
6  *
7  * - - - - - - - - - License information: - - - - - - - - -
8  *
9  * Copyright (C) 2011 and beyond by Yoctopuce Sarl, Switzerland.
10  *
11  * Yoctopuce Sarl (hereafter Licensor) grants to you a perpetual
12  * non-exclusive license to use, modify, copy and integrate this
13  * file into your software for the sole purpose of interfacing
14  * with Yoctopuce products.
15  *
16  * You may reproduce and distribute copies of this file in
17  * source or object form, as long as the sole purpose of this
18  * code is to interface with Yoctopuce products. You must retain
19  * this notice in the distributed source file.
20  *
21  * You should refer to Yoctopuce General Terms and Conditions
22  * for additional information regarding your rights and
23  * obligations.
24  *
25  * THE SOFTWARE AND DOCUMENTATION ARE PROVIDED 'AS IS' WITHOUT
26  * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
27  * WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS
28  * FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO
29  * EVENT SHALL LICENSOR BE LIABLE FOR ANY INCIDENTAL, SPECIAL,
30  * INDIRECT OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA,
31  * COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR
32  * SERVICES, ANY CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT
33  * LIMITED TO ANY DEFENSE THEREOF), ANY CLAIMS FOR INDEMNITY OR
34  * CONTRIBUTION, OR OTHER SIMILAR COSTS, WHETHER ASSERTED ON THE
35  * BASIS OF CONTRACT, TORT (INCLUDING NEGLIGENCE), BREACH OF
36  * WARRANTY, OR OTHERWISE.
37  *
38  *********************************************************************/
39 
40 
41 #ifndef YOCTO_GROUNDSPEED_H
42 #define YOCTO_GROUNDSPEED_H
43 
44 #include "yocto_api.h"
45 #include <cfloat>
46 #include <cmath>
47 #include <map>
48 
49 //--- (YGroundSpeed return codes)
50 //--- (end of YGroundSpeed return codes)
51 //--- (YGroundSpeed definitions)
52 class YGroundSpeed; // forward declaration
53 
54 typedef void (*YGroundSpeedValueCallback)(YGroundSpeed *func, const string& functionValue);
55 class YMeasure; // forward declaration
56 typedef void (*YGroundSpeedTimedReportCallback)(YGroundSpeed *func, YMeasure measure);
57 //--- (end of YGroundSpeed definitions)
58 
59 //--- (YGroundSpeed declaration)
69 #ifdef __BORLANDC__
70 #pragma option push -w-8022
71 #endif
72 //--- (end of YGroundSpeed declaration)
73 protected:
74  //--- (YGroundSpeed attributes)
75  // Attributes (function value cache)
78 
79  friend YGroundSpeed *yFindGroundSpeed(const string& func);
80  friend YGroundSpeed *yFirstGroundSpeed(void);
81 
82  // Constructor is protected, use yFindGroundSpeed factory function to instantiate
83  YGroundSpeed(const string& func);
84  //--- (end of YGroundSpeed attributes)
85 
86 public:
87  ~YGroundSpeed();
88  //--- (YGroundSpeed accessors declaration)
89 
90 
118  static YGroundSpeed* FindGroundSpeed(string func);
119 
131  virtual int registerValueCallback(YGroundSpeedValueCallback callback);
133 
134  virtual int _invokeValueCallback(string value);
135 
149 
150  virtual int _invokeTimedReportCallback(YMeasure value);
151 
152 
153  inline static YGroundSpeed* Find(string func)
154  { return YGroundSpeed::FindGroundSpeed(func); }
155 
163  YGroundSpeed *nextGroundSpeed(void);
164  inline YGroundSpeed *next(void)
165  { return this->nextGroundSpeed();}
166 
176  static YGroundSpeed* FirstGroundSpeed(void);
177  inline static YGroundSpeed* First(void)
178  { return YGroundSpeed::FirstGroundSpeed();}
179 #ifdef __BORLANDC__
180 #pragma option pop
181 #endif
182  //--- (end of YGroundSpeed accessors declaration)
183 };
184 
185 //--- (YGroundSpeed functions declaration)
186 
214 inline YGroundSpeed* yFindGroundSpeed(const string& func)
215 { return YGroundSpeed::FindGroundSpeed(func);}
227 
228 //--- (end of YGroundSpeed functions declaration)
229 
230 #endif
YGroundSpeedValueCallback _valueCallbackGroundSpeed
static YGroundSpeed * First(void)
static YGroundSpeed * FirstGroundSpeed(void)
static YGroundSpeed * Find(string func)
YGroundSpeedTimedReportCallback _timedReportCallbackGroundSpeed
YGroundSpeed * next(void)
YGroundSpeed * yFindGroundSpeed(const string &func)
virtual int registerTimedReportCallback(YSensorTimedReportCallback callback)
Definition: yocto_api.cpp:7923
virtual int _invokeTimedReportCallback(YMeasure value)
Definition: yocto_api.cpp:7936
void(* YGroundSpeedValueCallback)(YGroundSpeed *func, const string &functionValue)
virtual int _invokeValueCallback(string value)
Definition: yocto_api.cpp:7645
virtual int registerValueCallback(YSensorValueCallback callback)
Definition: yocto_api.cpp:7626
static YGroundSpeed * FindGroundSpeed(string func)
#define YOCTO_CLASS_EXPORT
Definition: yocto_api.h:61
void(* YGroundSpeedTimedReportCallback)(YGroundSpeed *func, YMeasure measure)
YGroundSpeed * yFirstGroundSpeed(void)


yoctopuce_altimeter
Author(s): Anja Sheppard
autogenerated on Mon Jun 10 2019 15:49:11