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

NameToCharCode.h

Go to the documentation of this file.
00001 //========================================================================
00002 //
00003 // NameToCharCode.h
00004 //
00005 // Copyright 2001-2002 Glyph & Cog, LLC
00006 //
00007 //========================================================================
00008 
00009 #ifndef NAMETOCHARCODE_H
00010 #define NAMETOCHARCODE_H
00011 
00012 #ifdef __GNUC__
00013 #pragma interface
00014 #endif
00015 
00016 #include "CharTypes.h"
00017 
00018 struct NameToCharCodeEntry;
00019 
00020 //------------------------------------------------------------------------
00021 
00022 class NameToCharCode {
00023 public:
00024 
00025   NameToCharCode();
00026   ~NameToCharCode();
00027 
00028   void add(char *name, CharCode c);
00029   CharCode lookup(char *name);
00030 
00031 private:
00032 
00033   int hash(char *name);
00034 
00035   NameToCharCodeEntry *tab;
00036   int size;
00037   int len;
00038 };
00039 
00040 #endif

Generated on Sat Nov 5 16:18:15 2005 for OPIE by  doxygen 1.4.2