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

CTokenMap Class Reference

#include <tokenmap.h>

List of all members.

Public Methods

void AddMapping (XTOKEN xtFrom, XTOKEN xtTo)
XTOKEN GetMapping (XTOKEN xtFrom)


Member Function Documentation

void CTokenMap::AddMapping XTOKEN    xtFrom,
XTOKEN    xtTo
 

Definition at line 13 of file tokenmap.cpp.

00014 {
00015     myassert(m_bExternalStream);
00016 
00017     int iFrom = _XTOKENToIndex(xtFrom);
00018     if (iFrom >= m_vxtMap.size())
00019     {
00020         m_vxtMap.resize((iFrom+1)*2);
00021     }
00022     m_vxtMap[iFrom] = xtTo;
00023 }

XTOKEN CTokenMap::GetMapping XTOKEN    xtFrom
 

Definition at line 25 of file tokenmap.cpp.

00026 {
00027     int iIndex = _XTOKENToIndex(xtFrom);
00028     if (iIndex < m_vxtMap.size())
00029     {
00030         return m_vxtMap[iIndex]();
00031     }
00032     return XT_UNKNOWN;
00033 }


The documentation for this class was generated from the following files:
Generated on Sat Dec 22 16:01:57 2001 for XMILLforBinaryFormat by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001