WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
LightData.h
1#ifndef _WINC_LIGHTDATA
2#define _WINC_LIGHTDATA
3
4#include <WXP/Date.h>
5#include <WXP/DateVal.h>
6
7namespace WXP {
8 class LightData {
9 Date date; /* date of strike */
10 float lat; /* latitude of flash/stroke (x 1000) */
11 float lon; /* logitude of flash/stroke (x 1000) */
12 float signal; /* signal strength * 10 of flash/stroke */
13 int multi; /* multiplicity of flash */
14
15 public:
16 LightData();
17 int init();
18 int setDate( int secs );
19 int setDate( DateVal &dv );
20 int setFsec( float secs );
21
23 inline Date getDate(){ return date; };
25 inline DateVal getDateval(){ return date.get(); };
27 inline int getSeconds(){ return date.getSeconds(); };
29 inline int getMinute(){ return date.getMinute(); };
30 int setLat( float rlat );
31 int setLon( float rlon );
32 int setLoc( float rlat, float rlon );
34 inline float getLat(){ return lat; };
36 inline float getLon(){ return lon; };
37 int setSignal( float sig );
39 inline float getSignal(){ return signal; };
40 int setMulti( int mul );
42 inline int getMulti(){ return multi; };
43 int print();
44 };
45}
46#endif
This class stores date and time information.
Definition Date.h:8
int getSeconds()
Definition Date.cc:363
int getMinute()
Definition Date.h:53
DateVal get()
Definition Date.cc:261
This class defines standard lightning parameters.
Definition LightData.h:8
int setLoc(float rlat, float rlon)
Definition LightData.cc:83
int setFsec(float secs)
Definition LightData.cc:55
Date getDate()
Definition LightData.h:23
int print()
Definition LightData.cc:110
int setLat(float rlat)
Definition LightData.cc:64
int getMinute()
Definition LightData.h:29
float getLon()
Definition LightData.h:36
int init()
Definition LightData.cc:25
int setLon(float rlon)
Definition LightData.cc:73
int setMulti(int mul)
Definition LightData.cc:102
int setSignal(float sig)
Definition LightData.cc:93
int getMulti()
Definition LightData.h:42
int getSeconds()
Definition LightData.h:27
LightData()
Definition LightData.cc:18
int setDate(int secs)
Definition LightData.cc:46
float getLat()
Definition LightData.h:34
float getSignal()
Definition LightData.h:39
DateVal getDateval()
Definition LightData.h:25
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct defines basic date values.
Definition DateVal.h:5