5#include <WXP/Filename.h>
7#include <WXP/WmoProduct.h>
47 bool compare(
const char *pattern );
51 static const int START = 0x1;
52 static const int SEQ = 0x2;
53 static const int HEADER = 0x3;
54 static const int AWIP = 0x4;
55 static const int SDATA = 0x5;
56 static const int DATA = 0x10;
57 static const int BLANK = 0x11;
58 static const int DOLLAR = 0x12;
59 static const int LOCATE = 0x13;
60 static const int VTEC = 0x14;
61 static const int LATLON = 0x15;
62 static const int DESC = 0x16;
67 int setParam(
const char *str );
69 int open(
const char *filename );
76 inline int useHdrFile(
bool val ){ use_hfile = val;
return 1; };
77 inline int useAwipsHdr(
bool val ){ use_awips = val;
return 1; };
80 int setId(
const char *
id );
83 inline int getLineStatus(){
return line_status; };
90 int setLoc(
int rind,
int byte );
91 int peek( WmoProduct &prod );
92 int read( WmoProduct &prod );
93 int getLine(
char *
string,
int len );
97 static bool isStart(
const char *line );
98 static bool compare(
const char *header,
const char *awip,
const char *pattern );
99 static bool checkZone(
const char *line,
const char *str );
100 enum Type { RAW,
WXP };
This class accesses files.
Definition File.h:15
This class creates filenames.
Definition Filename.h:11
This class parses text files.
Definition WmoParse.h:10
int getLine(char *string, int len)
Definition WmoParse.cc:333
WmoParse()
Definition WmoParse.cc:26
int setId(const char *id)
Definition WmoParse.cc:174
int setLoc(int byte)
Definition WmoParse.cc:227
int rewind()
Definition WmoParse.cc:132
int getLoc()
Definition WmoParse.cc:211
bool isNewProd()
Definition WmoParse.cc:157
const char * getHeader()
Definition WmoParse.cc:183
bool isOpen()
Definition WmoParse.cc:125
bool isData()
Definition WmoParse.cc:688
int useHdrFile(bool val)
Definition WmoParse.h:76
int setHeader(const char *string)
Definition WmoParse.cc:165
int init()
Definition WmoParse.cc:42
const char * getAwip()
Definition WmoParse.cc:191
int getHeaderLoc()
Definition WmoParse.cc:219
int open(Filename &filename)
Definition WmoParse.cc:83
int close()
Definition WmoParse.cc:144
All WXP classes fall under the WXP namespace.
Definition Angle.h:4