WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
SfcRaw.h
1#ifndef _WINC_SFCRAW
2#define _WINC_SFCRAW
3
4#include <WXP/CityHash.h>
5#include <WXP/Date.h>
6#include <WXP/Datum.h>
7#include <WXP/Domain.h>
8#include <WXP/Filename.h>
9#include <WXP/Raw.h>
10#include <WXP/SfcData.h>
11#include <WXP/StatPrior.h>
12#include <WXP/StrLib.h>
13#include <WXP/String.h>
14
15namespace WXP {
16 class SfcRaw {
17 Filename filename;
18 String variable;
19 String var_file;
20 String city_file;
21 char stat_prior[20];
22 Domain domain;
23 StatPrior prior;
24 CityHash hash;
25 int def_prior;
26 int syn_id;
27
28 public:
29 SfcRaw();
30 SfcRaw( const char *param );
31 int init();
32 int setParam( const char *str );
33 int setPath( const char *path );
34 int setFile();
35 int setInput( const char *str );
36 int setNameConv( const char *name );
37 int setHour( const char *str );
38 int setFilename();
39 int setFilename( Date &date );
40 int setFilename( const char *str );
41 int setFilename( Date &date, const char *param );
42 inline int setDefPrior( int rprior ){ def_prior = rprior; return 1; };
43 inline int setStatPrior( const char *str ){
44 StrLib::copy( stat_prior, 20, str ); return 1; };
45 int setVariable( const char *str );
46 int getDate( Date &date );
47 int setDomain( Domain &rdomain );
48 int setVarFile( const char *file );
49 inline int getDomain( Domain &rdomain ){ rdomain = domain; return 1; };
50 int createHash();
51 int setPrior( Domain &domain );
52 int getInfo( SfcData &sfcdata, Datum &datum );
53 int compute( Raw &data );
54 int print();
55 };
56}
57#endif
This class sets up a hash table for city database information.
Definition CityHash.h:9
This class stores date and time information.
Definition Date.h:8
This class stores raw point data.
Definition Datum.h:7
This class stores and manipulates domain data.
Definition Domain.h:19
This class creates filenames.
Definition Filename.h:11
This class replicates Data.
Definition Raw.h:7
This class stores surface data.
Definition SfcData.h:12
This class puts surface data into a Data class for further processing.
Definition SfcRaw.h:16
int setVariable(const char *str)
Definition SfcRaw.cc:319
int compute(Raw &data)
Definition SfcRaw.cc:209
int setNameConv(const char *name)
Definition SfcRaw.cc:91
int setInput(const char *str)
Definition SfcRaw.cc:83
int getDate(Date &date)
Definition SfcRaw.cc:125
This class defines station priority values.
Definition StatPrior.h:5
static int copy(char *s1, int len1, const char s2)
Definition StrLib.cc:506
This is a variable length string class.
Definition String.h:5
All WXP classes fall under the WXP namespace.
Definition Angle.h:4