Line | |
---|
1 | #ifndef ARCHTOI_H
|
---|
2 | #define ARCHTOI_H
|
---|
3 |
|
---|
4 | #include <iostream.h>
|
---|
5 | #include <string>
|
---|
6 | #include <list>
|
---|
7 | #include <vector>
|
---|
8 | #include "toisvr.h"
|
---|
9 |
|
---|
10 | using namespace std;
|
---|
11 |
|
---|
12 | class ArchTOI {
|
---|
13 | public:
|
---|
14 | ArchTOI(istream& str);
|
---|
15 | ArchTOI(string const& filename);
|
---|
16 |
|
---|
17 | void run(ostream& str);
|
---|
18 | void run(string const& filename);
|
---|
19 |
|
---|
20 | enum fmt {ascii};
|
---|
21 | enum flg {hasflag = 1,
|
---|
22 | useNA = 2};
|
---|
23 |
|
---|
24 | protected:
|
---|
25 | void init();
|
---|
26 | void readReq(istream& str);
|
---|
27 | bool processOption(string line); // false when #END : stop processing...
|
---|
28 | void processTOIReq(string line);
|
---|
29 | TOISvr svr;
|
---|
30 | list<string> headertoi;
|
---|
31 | list<string> headeropt;
|
---|
32 | vector<flg> toiflags;
|
---|
33 | fmt format;
|
---|
34 | string undef;
|
---|
35 | bool allBolos; // tous les bolos dans le header. Sinon seulement bolos transmis.
|
---|
36 | };
|
---|
37 |
|
---|
38 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.