Changeset 126 for trunk/src/xmlmodel.h


Ignore:
Timestamp:
May 2, 2008, 5:45:26 PM (11 years ago)
Author:
lindanl
Message:

Use NameID vs. name string as key for element, attribute, ... maps.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xmlmodel.h

    r124 r126  
    173173   
    174174        /* Information computed from ATTLIST, ELEMENT, NOTATION and ENTITY declarations. */
    175         hash_map<const char *, int, hash<const char *>, eqstr > GlobalAttributeTable;
    176         hash_map<const char *, int, hash<const char *>, eqstr > GlobalElementTable;
    177         hash_map<const char *, int, hash<const char *>, eqstr > GlobalNotationTable;
    178         hash_map<const char *, int, hash<const char *>, eqstr > GlobalGEntityTable;
    179         hash_map<const char *, int, hash<const char *>, eqstr > GlobalPEntityTable;
     175
     176        hash_map<int, int > GlobalAttributeTable;
     177        hash_map<int, int > GlobalElementTable;
     178        hash_map<int, int > GlobalNotationTable;
     179        hash_map<int, int > GlobalGEntityTable;
     180        hash_map<int, int > GlobalPEntityTable;
     181       
    180182        hash_map<const char *, int, hash<const char *>, eqstr > GlobalNameTable;
    181183        int globalElementCount;
     
    187189    /* For each element, we have an ElementAttributeModel */
    188190        vector<vector<ATT_info *> > ElementAttributeData;
    189         int getOrInsertGlobalElement(unsigned char * elem_name, int lgth);
    190         int getOrInsertGlobalAttName(unsigned char * att_name, int lgth);
     191        int getOrInsertGlobalElement(int elem_nameID);
     192        int getOrInsertGlobalAttName(int att_nameID);
    191193        // rootModel is a content model for the document root, consisting
    192194        // of a single occurrence of the element named in the DOCTYPE declaration.
Note: See TracChangeset for help on using the changeset viewer.