]> cygwin.com Git - cygwin-apps/setup.git/blob - hash.h
2002-04-29 Robert Collins <rbtcollins@hotmail.com>
[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 /* Simple hash class for install.cc */
17
18 #include "String++.h"
19
20 class hash_internals;
21
22 class hash
23 {
24 hash_internals *h;
25 public:
26 hash ();
27 ~hash ();
28
29 void add (char const *string);
30 int has (char const *string);
31
32 /* FIXME: this specialty should be done via a derived class */
33 /* specialty for install.cc */
34 void add_subdirs (String const &path);
35 void reverse_sort ();
36
37 char *enumerate (char const *prev = 0);
38 };
This page took 0.035589 seconds and 5 git commands to generate.