WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Datum.h
1#ifndef _WINC_DATUM
2#define _WINC_DATUM
3
4#include <WXP/EarthPoint.h>
5
6namespace WXP {
7 class Datum {
8 char id[20];
9 EarthPoint ept;
10 int type; /* Type of data */
11 int index; /* Index of data */
12 char format[80]; /* Local Format */
13 char data[40]; /* String value for a station */
14 float value[5]; /* Value at station */
15
16 public:
17 Datum();
18 int init();
19 int initVals();
20 int set( float rlat, float rlon, int type, const char *data, const char *format );
21 int set( float rlat, float rlon, int type, float val, const char *format );
22 int set( float rlat, float rlon, int type, float val1, float val2, const char *format );
23 int set( EarthPoint ept, int type, const char *data, const char *format );
24 int set( EarthPoint ept, int type, float val, const char *format );
25 int set( EarthPoint ept, int type, float val1, float val2, const char *format );
26 int setId( const char *rid );
28 inline const char *getId(){ return id; };
29 int setLoc( EarthPoint ept );
30 int setLoc( float rlat, float rlon );
32 inline EarthPoint getLoc(){ return ept; };
34 inline float getLat(){ return ept.lat; };
36 inline float getLon(){ return ept.lon; };
38 inline int setIndex( int rindex ){ index = rindex; return 1; };
40 inline int getIndex(){ return index; };
41 int setType( int t );
43 inline int getType(){ return type; };
44 int setData( char str );
45 int setData( const char *str );
46 int clearData();
47 int formatData( const char *format, ... );
49 inline const char *getData(){ return data; };
51 inline const char *getFormat(){ return format; };
52 int setFormat( const char *str );
53 int addFormat( const char *str );
54 int setValue( int i, float val );
55 int offsetValue( int i, float val );
56 int scaleValue( int i, float val );
57 int setValue( float val );
58 int setValue( float val1, float val2 );
59 float getValue( int i );
60 int print();
61
62 friend class DatumPlot;
64 enum Type {
65 NONE,
80 CONST
81 };
82 };
83}
84#endif
This class plots point data.
Definition DatumPlot.h:13
This class stores raw point data.
Definition Datum.h:7
int initVals()
Definition Datum.cc:45
int setIndex(int rindex)
Definition Datum.h:38
const char * getId()
Definition Datum.h:28
float getLat()
Definition Datum.h:34
Type
Definition Datum.h:64
@ VALUE
Definition Datum.h:67
@ AVECT
Definition Datum.h:76
@ CLOUD
Definition Datum.h:71
@ WTRACK
Definition Datum.h:77
@ DBARB
Definition Datum.h:74
@ SYMB
Definition Datum.h:78
@ MARK
Definition Datum.h:69
@ VECT
Definition Datum.h:75
@ TEXT
Definition Datum.h:68
@ WBARB
Definition Datum.h:72
@ DATA
Definition Datum.h:66
@ LINE
Definition Datum.h:79
@ CBARB
Definition Datum.h:73
@ INT
Definition Datum.h:70
float getLon()
Definition Datum.h:36
const char * getData()
Definition Datum.h:49
int getType()
Definition Datum.h:43
EarthPoint getLoc()
Definition Datum.h:32
int getIndex()
Definition Datum.h:40
Datum()
Definition Datum.cc:20
int init()
Definition Datum.cc:27
const char * getFormat()
Definition Datum.h:51
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct defines earth point values (lat, lon, elev)
Definition EarthPoint.h:5
float lat
Definition EarthPoint.h:6
float lon
Definition EarthPoint.h:7