]> cygwin.com Git - cygwin-apps/setup.git/blob - hash.h
2004-12-25 Max Bowsher <maxb@ukf.net>
[cygwin-apps/setup.git] / hash.h
1 /*
2 * Copyright (c) 2000, Red Hat, Inc.
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 DJ Delorie <dj@cygnus.com>
13 *
14 */
15
16 #ifndef SETUP_HASH_H
17 #define SETUP_HASH_H
18
19 /* Simple hash class for install.cc */
20
21 #include "String++.h"
22
23 class hash_internals;
24
25 class hash
26 {
27 hash_internals *h;
28 public:
29 hash ();
30 ~hash ();
31
32 void add (char const *string);
33 int has (char const *string);
34
35 /* FIXME: this specialty should be done via a derived class */
36 /* specialty for install.cc */
37 void add_subdirs (String const &path);
38 void reverse_sort ();
39
40 char *enumerate (char const *prev = 0);
41 };
42
43 #endif /* SETUP_HASH_H */
This page took 0.034693 seconds and 5 git commands to generate.