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

FX::FXStringDict Class Reference

String dictionary maps a character string to a character string. More...

#include <FXStringDict.h>

Inheritance diagram for FX::FXStringDict:

FX::FXDict FX::FXObject List of all members.

Public Member Functions

 FXStringDict ()
const FXchar * insert (const FXchar *ky, const FXchar *str, FXbool mrk=FALSE)
const FXchar * replace (const FXchar *ky, const FXchar *str, FXbool mrk=FALSE)
const FXchar * remove (const FXchar *ky)
const FXchar * find (const FXchar *ky) const
const FXchar * data (FXuint pos) const
virtual ~FXStringDict ()

Detailed Description

String dictionary maps a character string to a character string.

The inserted strings are copied when they're inserted.


Constructor & Destructor Documentation

FX::FXStringDict::FXStringDict  ) 
 

Construct a string dictionary.

virtual FX::FXStringDict::~FXStringDict  )  [virtual]
 

Destructor.


Member Function Documentation

const FXchar* FX::FXStringDict::insert const FXchar *  ky,
const FXchar *  str,
FXbool  mrk = FALSE
[inline]
 

Insert a new string indexed by key, with given mark flag.

const FXchar* FX::FXStringDict::replace const FXchar *  ky,
const FXchar *  str,
FXbool  mrk = FALSE
[inline]
 

Replace or insert a new string indexed by key, unless given mark is lower that the existing mark.

const FXchar* FX::FXStringDict::remove const FXchar *  ky  )  [inline]
 

Remove entry indexed by key.

Reimplemented from FX::FXDict.

const FXchar* FX::FXStringDict::find const FXchar *  ky  )  const [inline]
 

Return the entry indexed by key, or return NULL if the key does not exist.

Reimplemented from FX::FXDict.

const FXchar* FX::FXStringDict::data FXuint  pos  )  const [inline]
 

Return the string at position pos.

Reimplemented from FX::FXDict.

Copyright © 1997-2004 Jeroen van der Zijp