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

Changes to icxercesc files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icXML/icXML-devel/src/icxercesc/framework/XMLElementDecl.hpp

    r3157 r3564  
    5555class XMLPARSER_EXPORT XMLElementDecl : public XSerializable, public XMemory
    5656{
    57     friend class XMLDocumentDisseminator;
     57    friend class XMLDocumentDisseminator;   
     58    template <bool doPSVI> friend class SAX2DocumentDisseminatorImpl;
     59    template <bool doPSVI> friend class SAXDocumentDisseminatorImpl;
     60    friend class XSDDOMDocumentDisseminatorImpl;
     61    template <class DocHandlerType, bool doPSVI> friend class XMLDocumentDisseminatorImpl;
     62    friend class XMLIdentityConstraintValidator;
     63
    5864    template<class XMLScannerType> friend class XMLGrammarValidator;
    5965    friend class DTDScanner;
    6066    friend class IGXMLScanner;
     67    friend class ContentSpecNode;
    6168
    6269public:
     
    406413        void setExternalElemDeclaration(const bool aValue);
    407414
    408 
    409     unsigned int getNamespaceContextId() const;
    410 
    411415        //@}
    412416
     
    442446protected :
    443447        // -----------------------------------------------------------------------
    444         //  Hidden constructors
    445         // -----------------------------------------------------------------------
    446         XMLElementDecl(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
     448    //  Hidden constructor
     449        // -----------------------------------------------------------------------
     450    XMLElementDecl(const QName & qName);
     451
     452    XMLElementDecl(XMLStringPool * const manager);
     453
     454    // -----------------------------------------------------------------------
     455    //  Deprecated constructor
     456    // -----------------------------------------------------------------------
     457    XMLElementDecl(MemoryManager* const manager);
     458
     459
     460    // -----------------------------------------------------------------------
     461    //  Setter methods
     462    // -----------------------------------------------------------------------
     463    void setURI(const unsigned int uriId);
     464
     465    inline XMLStringPool * getStringPool();
    447466
    448467private :
     
    479498        //      This flag indicates whether or the element was declared externally.
    480499        // -----------------------------------------------------------------------
    481         MemoryManager*      fMemoryManager;
    482         const QName *       fElementName;
     500    QName *             fElementName;
    483501        CreateReasons       fCreateReason;
    484502        XMLSize_t           fId;
    485         unsigned int            fUriId;
    486     unsigned int        fNamespaceContextId;
    487503        bool                fExternalElement;
    488504};
     
    493509inline const XMLCh* XMLElementDecl::getBaseName() const
    494510{
    495         return fElementName->getLocalPart();
     511    return fElementName->getLocalPart();
    496512}
    497513
    498514inline XMLCh* XMLElementDecl::getBaseName()
    499515{
    500         return const_cast<QName*>(fElementName)->getLocalPart();
     516    return fElementName->getLocalPart();
    501517}
    502518
    503519inline const XMLCh* XMLElementDecl::getLocalPart() const
    504520{
    505         return fElementName->getLocalPart();
     521    return fElementName->getLocalPart();
    506522}
    507523
    508524inline XMLCh* XMLElementDecl::getLocalPart()
    509525{
    510         return const_cast<QName*>(fElementName)->getLocalPart();
     526    return fElementName->getLocalPart();
    511527}
    512528
    513529inline unsigned int XMLElementDecl::getURI() const
    514530{
    515         return fUriId;
     531    return fElementName->getURI();
    516532}
    517533
    518534inline const QName* XMLElementDecl::getElementName() const
    519535{
    520         QName * elementName = const_cast<QName*>(fElementName);
    521         elementName->setURI(getURI());
    522         return elementName;
     536    return fElementName;
    523537}
    524538
    525539inline QName* XMLElementDecl::getElementName()
    526540{
    527         QName * elementName = const_cast<QName*>(fElementName);
    528         elementName->setURI(getURI());
    529         return elementName;
     541    return fElementName;
    530542}
    531543
    532544inline const XMLCh* XMLElementDecl::getFullName() const
    533545{
    534         return fElementName->getRawName();
     546    return fElementName->getRawName();
    535547}
    536548
    537549inline const XMLCh* XMLElementDecl::getRawName() const
    538550{
    539         return fElementName->getRawName();
     551    return fElementName->getRawName();
    540552}
    541553
     
    561573}
    562574
    563 inline unsigned int XMLElementDecl::getNamespaceContextId() const
    564 {
    565     return fNamespaceContextId;
    566 }
    567 
    568575inline MemoryManager* XMLElementDecl::getMemoryManager() const
    569576{
    570         return fMemoryManager;
     577    return fElementName->getMemoryManager();
     578}
     579
     580inline XMLStringPool * XMLElementDecl::getStringPool()
     581{
     582    return fElementName->fStringPool;
    571583}
    572584
     
    585597}
    586598
    587 
    588599inline void XMLElementDecl::setExternalElemDeclaration(const bool aValue)
    589600{
     
    591602}
    592603
     604inline void XMLElementDecl::setURI(const unsigned int uriId)
     605{
     606    fElementName->setURI(uriId);
     607}
     608
    593609inline void XMLElementDecl::cleanUp()
    594610{
    595     delete fElementName;
     611    delete fElementName; fElementName = 0;
    596612}
    597613
Note: See TracChangeset for help on using the changeset viewer.