## Public API Reference

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# csutil/scfstrset.h

Go to the documentation of this file.

    00001 /*
    00002     Copyright (C) 2003 by Anders Stenberg
    00003
    00004     This library is free software; you can redistribute it and/or
    00005     modify it under the terms of the GNU Library General Public
    00006     License as published by the Free Software Foundation; either
    00007     version 2 of the License, or (at your option) any later version.
    00008
    00009     This library is distributed in the hope that it will be useful,
    00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00012     Library General Public License for more details.
    00013
    00014     You should have received a copy of the GNU Library General Public
    00015     License along with this library; if not, write to the Free
    00016     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    00017 */
    00018
    00019 #ifndef __CS_SCFSTRSET_H__
    00020 #define __CS_SCFSTRSET_H__
    00021
    00026 #include "csextern.h"
    00027 #include "csutil/scf_implementation.h"
    00028 #include "csutil/strset.h"
    00029 #include "iutil/strset.h"
    00030
    00039 class CS_CRYSTALSPACE_EXPORT csScfStringSet :
    00040   public scfImplementation1<csScfStringSet, iStringSet>
    00041 {
    00042 private:
    00043   csStringSet set;
    00044
    00045 public:
    00047   csScfStringSet (size_t size = 23)
    00048     : scfImplementationType (this), set(size)
    00049   { }
    00050
    00052   virtual ~csScfStringSet()
    00053   { }
    00054
    00061   virtual csStringID Request(const char* s)
    00062   { return set.Request(s); }
    00063
    00069   virtual const char* Request(csStringID id) const
    00070   { return set.Request(id); }
    00071
    00075   virtual bool Contains(char const* s) const
    00076   { return set.Contains(s); }
    00077
    00083   virtual bool Contains(csStringID id) const
    00084   { return set.Contains(id); }
    00085
    00090   virtual bool Delete(char const* s)
    00091   { return set.Delete(s); }
    00092
    00097   virtual bool Delete(csStringID id)
    00098   { return set.Delete(id); }
    00099
    00104   virtual void Empty()
    00105   { set.Empty(); }
    00106
    00110   virtual void Clear()
    00111   { Empty(); }
    00112
    00114   virtual size_t GetSize () const
    00115   { return set.GetSize(); }
    00116
    00122   virtual bool IsEmpty() const
    00123   { return set.IsEmpty(); }
    00124 };
    00125
    00126 #endif // __CS_SCFSTRSET_H__