⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmlscanner.hpp

📁 开源xml解析库,非常有名
💻 HPP
📖 第 1 页 / 共 3 页
字号:
    if (!fEntityDeclPoolRetrieved)    {        fValidationContext->setEntityDeclPool(getEntityDeclPool());        fEntityDeclPoolRetrieved = true;    }    return fValidationContext;}inline const Locator* XMLScanner::getLocator() const{    return &fReaderMgr;}inline const ReaderMgr* XMLScanner::getReaderMgr() const{    return &fReaderMgr;}inline unsigned int XMLScanner::getSrcOffset() const{    return fReaderMgr.getSrcOffset();}inline bool XMLScanner::getStandalone() const{    return fStandalone;}inline XMLScanner::ValSchemes XMLScanner::getValidationScheme() const{    return fValScheme;}inline const XMLValidator* XMLScanner::getValidator() const{    return fValidator;}inline XMLValidator* XMLScanner::getValidator(){    return fValidator;}inline bool XMLScanner::getDoSchema() const{    return fDoSchema;}inline bool XMLScanner::getValidationSchemaFullChecking() const{    return fSchemaFullChecking;}inline bool XMLScanner::getIdentityConstraintChecking() const{    return fIdentityConstraintChecking;}inline int XMLScanner::getErrorCount(){    return fErrorCount;}inline bool XMLScanner::isValidatorFromUser(){    return fValidatorFromUser;}inline unsigned int XMLScanner::getEmptyNamespaceId() const{    return fEmptyNamespaceId;}inline unsigned int XMLScanner::getUnknownNamespaceId() const{    return fUnknownNamespaceId;}inline unsigned int XMLScanner::getXMLNamespaceId() const{    return fXMLNamespaceId;}inline unsigned int XMLScanner::getXMLNSNamespaceId() const{    return fXMLNSNamespaceId;}inline const XMLStringPool* XMLScanner::getURIStringPool() const{    return fURIStringPool;}inline XMLStringPool* XMLScanner::getURIStringPool(){    return fURIStringPool;}inline bool XMLScanner::getHasNoDTD() const{    return fHasNoDTD;}inline XMLCh* XMLScanner::getExternalSchemaLocation() const{    return fExternalSchemaLocation;}inline XMLCh* XMLScanner::getExternalNoNamespaceSchemaLocation() const{    return fExternalNoNamespaceSchemaLocation;}inline SecurityManager* XMLScanner::getSecurityManager() const{    return fSecurityManager;}inline bool XMLScanner::getLoadExternalDTD() const{    return fLoadExternalDTD;}inline bool XMLScanner::getNormalizeData() const{    return fNormalizeData;}inline bool XMLScanner::isCachingGrammarFromParse() const{    return fToCacheGrammar;}inline bool XMLScanner::isUsingCachedGrammarInParse() const{    return fUseCachedGrammar;}inline bool XMLScanner::getCalculateSrcOfs() const{    return fCalculateSrcOfs;}inline Grammar* XMLScanner::getRootGrammar() const{    return fRootGrammar;}inline bool XMLScanner::getStandardUriConformant() const{    return fStandardUriConformant;}inline XMLReader::XMLVersion XMLScanner::getXMLVersion() const{	return fXMLVersion;}inline MemoryManager* XMLScanner::getMemoryManager() const{    return fMemoryManager;}inline ValueVectorOf<PrefMapElem*>* XMLScanner::getNamespaceContext() const{    return fElemStack.getNamespaceMap();}inline unsigned int XMLScanner::getPrefixId(const XMLCh* const prefix) const{    return fElemStack.getPrefixId(prefix);}inline const XMLCh* XMLScanner::getPrefixForId(unsigned int prefId) const{    return fElemStack.getPrefixForId(prefId);}inline bool XMLScanner::getGenerateSyntheticAnnotations() const{    return fGenerateSyntheticAnnotations;}inline bool XMLScanner::getValidateAnnotations() const{    return fValidateAnnotations;}inline bool XMLScanner::getIgnoreCachedDTD() const{    return fIgnoreCachedDTD;}inline bool XMLScanner::getIgnoreAnnotations() const{    return fIgnoreAnnotations;}inline bool XMLScanner::getDisableDefaultEntityResolution() const{    return fDisableDefaultEntityResolution;}inline bool XMLScanner::getSkipDTDValidation() const{    return fSkipDTDValidation;}// ---------------------------------------------------------------------------//  XMLScanner: Setter methods// ---------------------------------------------------------------------------inline void XMLScanner::setDocHandler(XMLDocumentHandler* const docHandler){    fDocHandler = docHandler;}inline void XMLScanner::setDocTypeHandler(DocTypeHandler* const docTypeHandler){    fDocTypeHandler = docTypeHandler;}inline void XMLScanner::setErrorHandler(ErrorHandler* const handler){    fErrorHandler = handler;}inline void XMLScanner::setPSVIHandler(PSVIHandler* const handler){    fPSVIHandler = handler;}inline void XMLScanner::setEntityHandler(XMLEntityHandler* const entityHandler){    fEntityHandler = entityHandler;    fReaderMgr.setEntityHandler(entityHandler);}inline void XMLScanner::setErrorReporter(XMLErrorReporter* const errHandler){    fErrorReporter = errHandler;}inline void XMLScanner::setExitOnFirstFatal(const bool newValue){    fExitOnFirstFatal = newValue;}inline void XMLScanner::setValidationConstraintFatal(const bool newValue){    fValidationConstraintFatal = newValue;}inline void XMLScanner::setValidationScheme(const ValSchemes newScheme){    fValScheme = newScheme;    // validation flag for Val_Auto is set to false by default,    //   and will be turned to true if a grammar is seen    if (fValScheme == Val_Always)        fValidate = true;    else        fValidate = false;}inline void XMLScanner::setDoSchema(const bool doSchema){    fDoSchema = doSchema;}inline void XMLScanner::setDoNamespaces(const bool doNamespaces){    fDoNamespaces = doNamespaces;}inline void XMLScanner::setValidationSchemaFullChecking(const bool schemaFullChecking){    fSchemaFullChecking = schemaFullChecking;}inline void XMLScanner::setIdentityConstraintChecking(const bool identityConstraintChecking){    fIdentityConstraintChecking = identityConstraintChecking;}inline void XMLScanner::setHasNoDTD(const bool hasNoDTD){    fHasNoDTD = hasNoDTD;}inline void XMLScanner::setRootElemName(XMLCh* rootElemName){    fMemoryManager->deallocate(fRootElemName);//delete [] fRootElemName;    fRootElemName = XMLString::replicate(rootElemName, fMemoryManager);}inline void XMLScanner::setExternalSchemaLocation(const XMLCh* const schemaLocation){    fMemoryManager->deallocate(fExternalSchemaLocation);//delete [] fExternalSchemaLocation;    fExternalSchemaLocation = XMLString::replicate(schemaLocation, fMemoryManager);}inline void XMLScanner::setExternalNoNamespaceSchemaLocation(const XMLCh* const noNamespaceSchemaLocation){    fMemoryManager->deallocate(fExternalNoNamespaceSchemaLocation);//delete [] fExternalNoNamespaceSchemaLocation;    fExternalNoNamespaceSchemaLocation = XMLString::replicate(noNamespaceSchemaLocation, fMemoryManager);}inline void XMLScanner::setExternalSchemaLocation(const char* const schemaLocation){    fMemoryManager->deallocate(fExternalSchemaLocation);//delete [] fExternalSchemaLocation;    fExternalSchemaLocation = XMLString::transcode(schemaLocation, fMemoryManager);}inline void XMLScanner::setExternalNoNamespaceSchemaLocation(const char* const noNamespaceSchemaLocation){    fMemoryManager->deallocate(fExternalNoNamespaceSchemaLocation);//delete [] fExternalNoNamespaceSchemaLocation;    fExternalNoNamespaceSchemaLocation = XMLString::transcode(noNamespaceSchemaLocation, fMemoryManager);}inline void XMLScanner::setSecurityManager(SecurityManager* const securityManager){    fSecurityManager = securityManager;    if(securityManager != 0)     {        fEntityExpansionLimit = securityManager->getEntityExpansionLimit();        fEntityExpansionCount = 0;    }}inline void XMLScanner::setLoadExternalDTD(const bool loadDTD){    fLoadExternalDTD = loadDTD;}inline void XMLScanner::setNormalizeData(const bool normalizeData){    fNormalizeData = normalizeData;}inline void XMLScanner::cacheGrammarFromParse(const bool newValue){    fToCacheGrammar = newValue;}inline void XMLScanner::useCachedGrammarInParse(const bool newValue){    fUseCachedGrammar = newValue;}inline void XMLScanner::setCalculateSrcOfs(const bool newValue){    fCalculateSrcOfs = newValue;}inline void XMLScanner::setStandardUriConformant(const bool newValue){    fStandardUriConformant = newValue;    fReaderMgr.setStandardUriConformant(newValue);}inline void XMLScanner::setGenerateSyntheticAnnotations(const bool newValue){    fGenerateSyntheticAnnotations = newValue;}inline void XMLScanner::setValidateAnnotations(const bool newValue){    fValidateAnnotations = newValue;}inline void XMLScanner::setInputBufferSize(const size_t bufferSize){    fBufferSize = bufferSize;    fCDataBuf.setFullHandler(this, (unsigned int)fBufferSize);}inline void XMLScanner::setIgnoredCachedDTD(const bool newValue){    fIgnoreCachedDTD = newValue;}inline void XMLScanner::setIgnoreAnnotations(const bool newValue){    fIgnoreAnnotations = newValue;}inline void XMLScanner::setDisableDefaultEntityResolution(const bool newValue){    fDisableDefaultEntityResolution = newValue;}inline void XMLScanner::setSkipDTDValidation(const bool newValue){    fSkipDTDValidation = newValue;}// ---------------------------------------------------------------------------//  XMLScanner: Mutator methods// ---------------------------------------------------------------------------inline void XMLScanner::incrementErrorCount(){    ++fErrorCount;}// ---------------------------------------------------------------------------//  XMLScanner: Deprecated methods// ---------------------------------------------------------------------------inline bool XMLScanner::getDoValidation() const{    return fValidate;}inline void XMLScanner::setDoValidation(const bool validate){    fValidate = validate;    if (fValidate)        fValScheme = Val_Always;    else        fValScheme = Val_Never;}inline void XMLScanner::resetValidationContext(){    fValidationContext->clearIdRefList();    fValidationContext->setEntityDeclPool(0);    fEntityDeclPoolRetrieved = false;}inline void XMLScanner::setAttrDupChkRegistry(const unsigned int &attrNumber                                            ,       bool         &toUseHashTable){   // once the attribute exceed 100, we use hash table to check duplication    if (attrNumber > 100)   {        toUseHashTable = true;        if (!fAttrDupChkRegistry)        {            fAttrDupChkRegistry = new (fMemoryManager) RefHash2KeysTableOf<XMLAttr>            (              2*attrNumber+1, false, new (fMemoryManager)HashXMLCh(), fMemoryManager            );        }        else        {            fAttrDupChkRegistry->removeAll();        }    }}inline Grammar::GrammarType XMLScanner::getCurrentGrammarType() const{    return Grammar::UnKnown;}XERCES_CPP_NAMESPACE_END#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -