]>
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; | |
67829ce0 | 24 | class IniParseFeedback; |
b401ef47 RC |
25 | /* IniParse files and create a package db when no cached .ini exists */ |
26 | class IniParseFindVisitor : public FindVisitor | |
27 | { | |
28 | public: | |
67829ce0 | 29 | IniParseFindVisitor (IniDBBuilder &aBuilder, String const &localroot, IniParseFeedback const &); |
b401ef47 RC |
30 | virtual void visitFile(String const &basePath, const WIN32_FIND_DATA *); |
31 | virtual ~ IniParseFindVisitor (); | |
32 | ||
33 | unsigned int timeStamp() const; | |
34 | String version() const; | |
35 | int iniCount() const; | |
36 | protected: | |
37 | IniParseFindVisitor (IniParseFindVisitor const &); | |
38 | IniParseFindVisitor & operator= (IniParseFindVisitor const &); | |
39 | private: | |
40 | IniDBBuilder &_Builder; | |
67829ce0 | 41 | IniParseFeedback const &_feedback; |
b401ef47 RC |
42 | unsigned int baseLength; |
43 | int local_ini; | |
44 | char *error_buf; | |
45 | int error_count; | |
46 | unsigned int setup_timestamp; | |
47 | String setup_version; | |
48 | }; | |
49 | ||
50 | #endif // _INIPARSEFINDVISITOR_H_ |