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 00031 // For Clear() 00032 #include "csutil/deprecated_warn_off.h" 00033 00042 class CS_CRYSTALSPACE_EXPORT csScfStringSet : 00043 public scfImplementation1<csScfStringSet, iStringSet> 00044 { 00045 private: 00046 csStringSet set; 00047 00048 public: 00050 csScfStringSet (size_t size = 23) 00051 : scfImplementationType (this), set(size) 00052 { } 00053 00055 virtual ~csScfStringSet() 00056 { } 00057 00064 virtual csStringID Request(const char* s) 00065 { return set.Request(s); } 00066 00072 virtual const char* Request(csStringID id) const 00073 { return set.Request(id); } 00074 00078 virtual bool Contains(char const* s) const 00079 { return set.Contains(s); } 00080 00086 virtual bool Contains(csStringID id) const 00087 { return set.Contains(id); } 00088 00093 virtual bool Delete(char const* s) 00094 { return set.Delete(s); } 00095 00100 virtual bool Delete(csStringID id) 00101 { return set.Delete(id); } 00102 00107 virtual void Empty() 00108 { set.Empty(); } 00109 00113 virtual void Clear() 00114 { Empty(); } 00115 00117 virtual size_t GetSize () const 00118 { return set.GetSize(); } 00119 00125 virtual bool IsEmpty() const 00126 { return set.IsEmpty(); } 00127 }; 00128 00129 #include "csutil/deprecated_warn_on.h" 00130 00131 #endif // __CS_SCFSTRSET_H__
Generated for Crystal Space 1.4.1 by doxygen 1.7.1