CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

scfstrset.h

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 
00022 #include "csextern.h"
00023 #include "iutil/strset.h"
00024 #include "strset.h"
00025 
00034 class CS_CRYSTALSPACE_EXPORT csScfStringSet : public iStringSet
00035 {
00036 private:
00037   csStringSet set;
00038 
00039 public:
00040   SCF_DECLARE_IBASE;
00041 
00043   csScfStringSet (size_t size = 23) : set(size)
00044   { SCF_CONSTRUCT_IBASE (0); }
00045 
00047   virtual ~csScfStringSet()
00048   { SCF_DESTRUCT_IBASE(); }
00049 
00056   virtual csStringID Request(const char* s)
00057   { return set.Request(s); }
00058 
00064   virtual const char* Request(csStringID id) const
00065   { return set.Request(id); }
00066 
00070   virtual bool Contains(char const* s) const
00071   { return set.Contains(s); }
00072 
00078   virtual bool Contains(csStringID id) const
00079   { return set.Contains(id); }
00080 
00085   virtual bool Delete(char const* s)
00086   { return set.Delete(s); }
00087 
00092   virtual bool Delete(csStringID id)
00093   { return set.Delete(id); }
00094 
00099   virtual void Empty()
00100   { set.Empty(); }
00101 
00105   virtual void Clear()
00106   { Empty(); }
00107 
00109   virtual size_t GetSize () const
00110   { return set.GetSize(); }
00111 
00117   virtual bool IsEmpty() const
00118   { return set.IsEmpty(); }
00119 };
00120 
00121 #endif // __CS_SCFSTRSET_H__

Generated for Crystal Space by doxygen 1.4.4