5#include <WXP/Filename.h>
43 bool compare(
const char *pattern );
47 static const int START = 0x1;
48 static const int SEQ = 0x2;
49 static const int HEADER = 0x3;
50 static const int AWIP = 0x4;
51 static const int SDATA = 0x5;
52 static const int DATA = 0x10;
53 static const int BLANK = 0x11;
54 static const int DOLLAR = 0x12;
55 static const int LOCATE = 0x13;
56 static const int VTEC = 0x14;
57 static const int LATLON = 0x15;
58 static const int DESC = 0x16;
61 Parse(
const char *str );
63 int setParam(
const char *str );
65 int open(
const char *filename );
72 inline int useHdrFile(
bool val ){ use_hfile = val;
return 1; };
73 inline int useAwipsHdr(
bool val ){ use_awips = val;
return 1; };
76 int setId(
const char *
id );
79 inline int getLineStatus(){
return line_status; };
86 int setLoc(
int rind,
int byte );
87 int getLine(
char *
string,
int len );
91 static bool compare(
const char *header,
const char *awip,
const char *pattern );
92 static bool checkZone(
const char *line,
const char *str );
93 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 Parse.h:9
int getHeaderLoc()
Definition Parse.cc:211
int useHdrFile(bool val)
Definition Parse.h:72
int getLoc()
Definition Parse.cc:203
int getLine(char *string, int len)
Definition Parse.cc:297
const char * getAwip()
Definition Parse.cc:183
int init()
Definition Parse.cc:40
int setId(const char *id)
Definition Parse.cc:166
int close()
Definition Parse.cc:136
int rewind()
Definition Parse.cc:124
int setHeader(const char *string)
Definition Parse.cc:157
bool isOpen()
Definition Parse.cc:117
bool isData()
Definition Parse.cc:652
bool isNewProd()
Definition Parse.cc:149
Parse()
Definition Parse.cc:24
int setLoc(int byte)
Definition Parse.cc:219
const char * getHeader()
Definition Parse.cc:175
int open(Filename &filename)
Definition Parse.cc:76
All WXP classes fall under the WXP namespace.
Definition Angle.h:4