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

FXStringDict.h
1 /********************************************************************************
2 * *
3 * S t r i n g D i c t i o n a r y C l a s s *
4 * *
5 *********************************************************************************
6 * Copyright (C) 1998,2013 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU Lesser General Public License as published by *
10 * the Free Software Foundation; either version 3 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public License *
19 * along with this program. If not, see <http://www.gnu.org/licenses/> *
20 ********************************************************************************/
21 #ifndef FXSTRINGDICT_H
22 #define FXSTRINGDICT_H
23 
24 #ifndef FXDICT_H
25 #include "FXDict.h"
26 #endif
27 
28 namespace FX {
29 
34 class FXAPI FXStringDict : public FXDict {
35  FXDECLARE(FXStringDict)
36 protected:
37  virtual void *createData(void*);
38  virtual void deleteData(void*);
39 private:
40  FXStringDict(const FXStringDict&);
41  FXStringDict &operator=(const FXStringDict&);
42 public:
43 
45  FXStringDict();
46 
48  const FXchar* insert(const FXchar* ky,const FXchar* str,FXbool mrk=false){ return static_cast<const FXchar*>(FXDict::insert(ky,const_cast<FXchar*>(str),mrk)); }
49 
51  const FXchar* replace(const FXchar* ky,const FXchar* str,FXbool mrk=false){ return static_cast<const FXchar*>(FXDict::replace(ky,const_cast<FXchar*>(str),mrk)); }
52 
54  const FXchar* remove(const FXchar* ky){ return static_cast<const FXchar*>(FXDict::remove(ky)); }
55 
57  const FXchar* find(const FXchar* ky) const { return static_cast<const FXchar*>(FXDict::find(ky)); }
58 
60  const FXchar* data(FXival pos) const { return static_cast<const FXchar*>(FXDict::data(pos)); }
61 
63  virtual ~FXStringDict();
64  };
65 
66 }
67 
68 #endif

Copyright © 1997-2013 Jeroen van der Zijp