WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
WmoIngest.h
1#ifndef _WINC_WMOINGEST
2#define _WINC_WMOINGEST
3
4#include <sys/socket.h>
5#include <netinet/in.h>
6
7#include <WXP/Date.h>
8#include <WXP/NameConv.h>
9#include <WXP/Pan.h>
10#include <WXP/Product.h>
11#include <WXP/String.h>
12
13namespace WXP {
14 class WmoIngest {
15 int processing;
16 Date fdate;
17 Date ctime;
18 const static int header_len = 101;
19 char header[header_len];
20 const static int header2_len = 101;
21 char header2[header2_len];
22
23 const static int max_prod = 2000;
24 String prod_name;
25 Product prod[max_prod];
26 int num_prod;
27
28 const static int max_pan = 40;
29 Pan pan[max_pan];
30 int num_pan;
31
32 int pan_id;
33
34 int binary;
35 int raw;
36
37 int seq_test;
38 int quit_error;
39
40 String log_name;
41
42 public:
43 WmoIngest();
44 int init();
45 int setParam( const char *str );
46 int setProdFile( const char *name );
47 int setLogFile( const char *name );
48 int setDate( Date &rdate ){ fdate = rdate; return 1; };
49 int terminate();
50 int printLog( const char *mess, ... );
51 int readProdFile( const char *filename );
52 int readProdFile();
53 int isSelected();
54 int cleanLine( char *line, int len, int flag );
55 int setAction( const char *command, int offset, char *string, int len );
56 int action();
57 int close();
58 int saveHeader( const char* fullhead, const char *header,
59 const char *header2 );
60 int saveLine( unsigned char *line, int size);
61 int sendPAN();
62 int process( const char *filename );
64 inline int checkProcessing(){ return processing; };
65 };
66}
67#endif
This class stores date and time information.
Definition Date.h:8
This is a variable length string class.
Definition String.h:5
This class ingests WMO formated data (see NOAAPORT/FOS)
Definition WmoIngest.h:14
int action()
Definition WmoIngest.cc:763
int terminate()
Definition WmoIngest.cc:100
int saveLine(unsigned char *line, int size)
Definition WmoIngest.cc:870
int close()
Definition WmoIngest.cc:812
int readProdFile()
Definition WmoIngest.cc:167
int process(const char *filename)
Definition WmoIngest.cc:960
int saveHeader(const char *fullhead, const char *header, const char *header2)
Definition WmoIngest.cc:836
int setLogFile(const char *name)
Definition WmoIngest.cc:124
WmoIngest()
Definition WmoIngest.cc:42
int setAction(const char *command, int offset, char *string, int len)
Definition WmoIngest.cc:464
int checkProcessing()
Definition WmoIngest.h:64
int printLog(const char *mess,...)
Definition WmoIngest.cc:134
int setParam(const char *str)
Definition WmoIngest.cc:75
int sendPAN()
Definition WmoIngest.cc:901
int setProdFile(const char *name)
Definition WmoIngest.cc:115
int cleanLine(char *line, int len, int flag)
Definition WmoIngest.cc:433
int init()
Definition WmoIngest.cc:49
int isSelected()
Definition WmoIngest.cc:394
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct holds PAN message data.
Definition Pan.h:8
This struct holds data for a specific product to be saved by the data ingestor.
Definition Product.h:7