Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

/home/jeroen/FOX/fox/fox-1.7.33/include/FXStringDict.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                  S t r i n g   D i c t i o n a r y    C l a s s               *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 1998,2012 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or modify          *
00009 * it under the terms of the GNU Lesser General Public License as published by   *
00010 * the Free Software Foundation; either version 3 of the License, or             *
00011 * (at your option) any later version.                                           *
00012 *                                                                               *
00013 * This library is distributed in the hope that it will be useful,               *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                 *
00016 * GNU Lesser General Public License for more details.                           *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public License      *
00019 * along with this program.  If not, see <http://www.gnu.org/licenses/>          *
00020 ********************************************************************************/
00021 #ifndef FXSTRINGDICT_H
00022 #define FXSTRINGDICT_H
00023 
00024 #ifndef FXDICT_H
00025 #include "FXDict.h"
00026 #endif
00027 
00028 namespace FX {
00029 
00034 class FXAPI FXStringDict : public FXDict {
00035   FXDECLARE(FXStringDict)
00036 protected:
00037   virtual void *createData(void*);
00038   virtual void deleteData(void*);
00039 private:
00040   FXStringDict(const FXStringDict&);
00041   FXStringDict &operator=(const FXStringDict&);
00042 public:
00043 
00045   FXStringDict();
00046 
00048   const FXchar* insert(const FXchar* ky,const FXchar* str,FXbool mrk=false){ return (const FXchar*)FXDict::insert(ky,(void*)str,mrk); }
00049 
00051   const FXchar* replace(const FXchar* ky,const FXchar* str,FXbool mrk=false){ return (const FXchar*)FXDict::replace(ky,(void*)str,mrk); }
00052 
00054   const FXchar* remove(const FXchar* ky){ return (const FXchar*)FXDict::remove(ky); }
00055 
00057   const FXchar* find(const FXchar* ky) const { return (const FXchar*)FXDict::find(ky); }
00058 
00060   const FXchar* data(FXint pos) const { return (const FXchar*)FXDict::data(pos); }
00061 
00063   virtual ~FXStringDict();
00064   };
00065 
00066 }
00067 
00068 #endif

Copyright © 1997-2011 Jeroen van der Zijp