📄 xmlscanner.hpp
字号:
inline RefHashTableOf<XMLRefInfo>* XMLScanner::getIDRefList(){ return fValidationContext->getIdRefList();}inline const RefHashTableOf<XMLRefInfo>* XMLScanner::getIDRefList() const{ return fValidationContext->getIdRefList();}inline ValidationContext* XMLScanner::getValidationContext(){ 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 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);}// ---------------------------------------------------------------------------// 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::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);}// ---------------------------------------------------------------------------// 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;}XERCES_CPP_NAMESPACE_END#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -