gbfn.h
Go to the documentation of this file.00001
00002 #ifndef GBFN_H
00003 #define GBFN_H
00004 #include <iostream>
00005 #include <string>
00006 #include <vector>
00007 #include <map>
00008
00009
00010 using namespace std;
00011
00012 #ifndef LINE
00013 #define LINE 84
00014 #endif
00015
00016 const int FIELD_START = 12;
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 void getField(char *&f, istream &ins, char ln[]);
00031
00032 void getf(string &ff, istream &ins, string &ln);
00033
00034 string getf(istream &ins, string &ln);
00035
00036
00037
00038
00039 class gbdate {
00040 public:
00041 void parseGB(const string &str);
00042 void writeAce(ostream &ous);
00043
00044 static string parseGBDate(const string &str);
00045 static map<string, string> monthMap;
00046 static void setup();
00047
00048 private:
00049 char day[3];
00050 char month[4];
00051 char year[5];
00052 };
00053
00054 #endif
00055