Ignore:
Timestamp:
Nov 18, 2013, 5:53:53 AM (6 years ago)
Author:
cameron
Message:

Updates to xercesc sources

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icXML/icXML-devel/src/xercesc/framework/psvi/XSModel.hpp

    r3153 r3565  
    2525#include <icxercesc/util/PlatformUtils.hpp>
    2626#include <xercesc/framework/psvi/XSObject.hpp>
    27 #include <xercesc/framework/psvi/XSNamedMap.hpp>
    28 
    2927#include <xercesc/util/ValueVectorOf.hpp>
    3028#include <icxercesc/validators/schema/SchemaElementDecl.hpp>
     29#include <xercesc/util/StringPool.hpp>
     30#include <icxmlc/XMLNamespaceResolver.hpp>
     31#include <icxmlc/XMLConfig.hpp>
    3132
    3233XERCES_CPP_NAMESPACE_BEGIN
     
    5657class XSTypeDefinition;
    5758class XSObjectFactory;
     59template <class TVal> class XSNamedMap;
    5860
    5961class XMLPARSER_EXPORT XSModel : public XMemory
    6062{
     63    friend class XSObjectFactory;
     64    friend class XSObject;
     65    friend class XSAnnotation;
     66    friend class XSModelGroupDefinition;
     67
    6168public:
    6269
     
    229236    //@{
    230237    XMLStringPool*  getURIStringPool();
     238
     239    const XMLCh * getURIText(const unsigned int uriId) const;
     240
     241    XMLCh * getURIText(const unsigned int uriId, MemoryManager * manager) const;
     242
     243    unsigned int getNamespaceId(const XMLCh * uri) const;
    231244
    232245    XSNamespaceItem* getNamespaceItem(const XMLCh* const key);
     
    277290
    278291protected:
    279     friend class XSObjectFactory;
    280     friend class XSObject;
    281292
    282293    // -----------------------------------------------------------------------
     
    309320    */
    310321    XSNamedMap<XSObject>*                   fComponentMap[XSConstants::MULTIVALUE_FACET];
    311     XMLStringPool*                          fURIStringPool;
     322    XMLStringPool* const                    fURIStringPool;
     323    XMLStringPool* const                    fStringPool;
    312324    XSAnnotationList*                       fXSAnnotationList;
    313325    RefHashTableOf<XSNamespaceItem>*        fHashNamespace;
     
    324336}
    325337
     338inline const XMLCh * XSModel::getURIText(const unsigned int uriId) const
     339{
     340    return fURIStringPool->getValueForId(uriId);
     341}
     342
     343inline XMLCh * XSModel::getURIText(const unsigned int uriId, MemoryManager * manager) const
     344{
     345    return XMLString::replicate(getURIText(uriId), manager);
     346}
     347
     348inline unsigned int XSModel::getNamespaceId(const XMLCh * uri) const
     349{
     350    return fURIStringPool->getId(uri);
     351}
     352
    326353inline StringList *XSModel::getNamespaces()
    327354{
Note: See TracChangeset for help on using the changeset viewer.