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