]>
Commit | Line | Data |
---|---|---|
b401ef47 RC |
1 | /* |
2 | * Copyright (c) 2002 Robert Collins. | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License as published by | |
6 | * the Free Software Foundation; either version 2 of the License, or | |
7 | * (at your option) any later version. | |
8 | * | |
9 | * A copy of the GNU General Public License can be found at | |
10 | * http://www.gnu.org/ | |
11 | * | |
12 | * Written by Robert Collins <robertc@hotmail.com> | |
13 | * | |
14 | */ | |
15 | ||
16 | #ifndef _INIPARSEFINDVISITOR_H_ | |
17 | #define _INIPARSEFINDVISITOR_H_ | |
18 | ||
19 | #include "FindVisitor.h" | |
20 | #include "String++.h" | |
21 | ||
22 | /* parse passed in setup.ini files from disk. */ | |
23 | class IniDBBuilder; | |
24 | /* IniParse files and create a package db when no cached .ini exists */ | |
25 | class IniParseFindVisitor : public FindVisitor | |
26 | { | |
27 | public: | |
28 | IniParseFindVisitor (IniDBBuilder &aBuilder, String const &localroot); | |
29 | virtual void visitFile(String const &basePath, const WIN32_FIND_DATA *); | |
30 | virtual ~ IniParseFindVisitor (); | |
31 | ||
32 | unsigned int timeStamp() const; | |
33 | String version() const; | |
34 | int iniCount() const; | |
35 | protected: | |
36 | IniParseFindVisitor (IniParseFindVisitor const &); | |
37 | IniParseFindVisitor & operator= (IniParseFindVisitor const &); | |
38 | private: | |
39 | IniDBBuilder &_Builder; | |
40 | unsigned int baseLength; | |
41 | int local_ini; | |
42 | char *error_buf; | |
43 | int error_count; | |
44 | unsigned int setup_timestamp; | |
45 | String setup_version; | |
46 | }; | |
47 | ||
48 | #endif // _INIPARSEFINDVISITOR_H_ |