]> cygwin.com Git - cygwin-apps/setup.git/blob - IniParseFindVisitor.h
2002-05-19 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / IniParseFindVisitor.h
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 class IniParseFeedback;
25 /* IniParse files and create a package db when no cached .ini exists */
26 class IniParseFindVisitor : public FindVisitor
27 {
28 public:
29 IniParseFindVisitor (IniDBBuilder &aBuilder, String const &localroot, IniParseFeedback const &);
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;
41 IniParseFeedback const &_feedback;
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_
This page took 0.038332 seconds and 5 git commands to generate.