📄 parserstate.h
字号:
inlineDtd &ParserState::defDtd(){ return *defDtd_;}inlineconst Dtd &ParserState::currentDtd() const{ return *currentDtd_;}inlineDtd &ParserState::currentDtdNonConst() const{ return *currentDtd_;}inlineconst Ptr<Dtd> &ParserState::defDtdPointer() const{ return defDtd_;}inlineconst ConstPtr<Dtd> &ParserState::currentDtdPointer() const{ return currentDtdConst_;}inlineBoolean ParserState::inInstance() const{ return inInstance_;}inlineconst Syntax &ParserState::syntax() const{ return *syntax_;}inlineconst Syntax &ParserState::instanceSyntax() const{ return *instanceSyntax_;}inlineconst ConstPtr<Syntax> &ParserState::syntaxPointer() const{ return syntax_;}inlineconst ConstPtr<Syntax> &ParserState::instanceSyntaxPointer() const{ return instanceSyntax_;}inlineconst ConstPtr<Syntax> &ParserState::prologSyntaxPointer() const{ return prologSyntax_;}inlineconst Sd &ParserState::sd() const{ return *sd_;}inlineconst ConstPtr<Sd> &ParserState::sdPointer() const{ return sd_;}inlinevoid ParserState::setPhase(Phase phase){ phase_ = phase;}inlineMode ParserState::currentMode() const{ return currentMode_;}inlineXchar ParserState::getChar(){ return inputStack_.head()->get(messenger());}inlinevoid ParserState::skipChar(){ (void)getChar();}inlineToken ParserState::getToken(Mode mode){ return recognizers_[mode]->recognize(inputStack_.head(), messenger());}inlineBoolean ParserState::hadDtd() const{ return dtd_.size() > 0;}inlineBoolean ParserState::eventQueueEmpty() const{ return eventQueue_.empty();}inlineEvent *ParserState::eventQueueGet(){ return eventQueue_.get();}inlineParserState::Phase ParserState::phase() const{ return phase_;}inlineParserState::Phase ParserState::finalPhase() const{ return finalPhase_;}inlineEntityManager &ParserState::entityManager() const{ return *entityManager_;}inlinePtr<EntityManager> ParserState::entityManagerPtr() const{ return entityManager_;}inlineconst EntityCatalog &ParserState::entityCatalog() const{ return *entityCatalog_;}inlineConstPtr<EntityCatalog> ParserState::entityCatalogPtr() const{ return entityCatalog_;}inlinevoid ParserState::setEntityCatalog(const ConstPtr<EntityCatalog> &catalog){ entityCatalog_ = catalog;}inlinevoid ParserState::setDsEntity(const ConstPtr<Entity> &entity){ dsEntity_ = entity;}inlineAllocator &ParserState::eventAllocator(){ return eventAllocator_;}inlineAllocator &ParserState::internalAllocator(){ return internalAllocator_;}inlineStringC &ParserState::nameBuffer(){ return nameBuffer_;}inlinevoid ParserState::setHandler(EventHandler *handler, const volatile sig_atomic_t *cancelPtr){ handler_ = handler; cancelPtr_ = cancelPtr ? cancelPtr : &dummyCancel_;}inlinevoid ParserState::unsetHandler(){ handler_ = &eventQueue_; cancelPtr_ = &dummyCancel_;}inlinevoid ParserState::queueRe(const Location &location){ outputState_.handleRe(*handler_, eventAllocator_, options_.eventsWanted, syntax().standardFunction(Syntax::fRE), location);}inlinevoid ParserState::noteMarkup(){ if (inInstance_) outputState_.noteMarkup(*handler_, eventAllocator_, options_.eventsWanted);}inlinevoid ParserState::noteRs(){ outputState_.noteRs(*handler_, eventAllocator_, options_.eventsWanted);}inlinevoid ParserState::noteStartElement(Boolean included){ outputState_.noteStartElement(included, *handler_, eventAllocator_, options_.eventsWanted);}inlinevoid ParserState::noteEndElement(Boolean included){ outputState_.noteEndElement(included, *handler_, eventAllocator_, options_.eventsWanted);}inlinevoid ParserState::noteData(){ outputState_.noteData(*handler_, eventAllocator_, options_.eventsWanted);}inlineunsigned ParserState::subdocLevel() const{ return subdocLevel_;}inlineEventHandler &ParserState::eventHandler(){ return *handler_;}inlineParserState::IdTableIter ParserState::idTableIter(){ // Avoid use of typedef to work around MSVC 2.0 bug. return NamedTableIter<Id>(idTable_);}inlineconst ParserOptions &ParserState::options() const{ return options_;}inlineBoolean ParserState::implydefElement(){ return implydefElement_;}inlineBoolean ParserState::implydefAttlist(){ return implydefAttlist_;}inlinevoid ParserState::enableImplydef(){ implydefElement_ = 1; implydefAttlist_ = 1;}inlinevoid ParserState::keepMessages(){ keepingMessages_ = 1;}inlineBoolean ParserState::haveApplicableDtd() const{ return !currentDtd_.isNull();}inlineBoolean ParserState::hadLpd() const{ return hadLpd_;}inlineBoolean ParserState::pass2() const{ return pass2_;}inlinesize_t ParserState::nActiveLink() const{ return lpd_.size();}inlineconst Lpd &ParserState::activeLpd(size_t i) const{ return *lpd_[i];}inlineLpd &ParserState::defLpd(){ return *defLpd_;}inlinePtr<Lpd> &ParserState::defLpdPointer(){ return defLpd_;}inlinePtr<ComplexLpd> ParserState::defComplexLpdPointer(){ return (ComplexLpd *)defLpd_.pointer();}inlineComplexLpd &ParserState::defComplexLpd(){ return (ComplexLpd &)defLpd();}inlinePtr<Dtd> ParserState::baseDtd() { if (dtd_.size() > 0) return dtd_[0]; else return Ptr<Dtd>();}inlinevoid ParserState::setResultAttributeSpecMode(){ resultAttributeSpecMode_ = 1;}inlinevoid ParserState::clearResultAttributeSpecMode(){ resultAttributeSpecMode_ = 0;}inlineMarkup *ParserState::currentMarkup(){ return currentMarkup_;}inlineconst Location &ParserState::markupLocation() const{ return markupLocation_;}inlineMarkup *ParserState::startMarkup(Boolean storing, const Location &loc){ markupLocation_ = loc; if (storing) { markup_.clear(); return currentMarkup_ = &markup_; } else return currentMarkup_ = 0;}inlineBoolean ParserState::cancelled() const{ return *cancelPtr_ != 0;}inlinevoid ParserState::setHadAfdrDecl(){ hadAfdrDecl_ = 1;}inlineBoolean ParserState::hadAfdrDecl() const{ return hadAfdrDecl_;}#ifdef SP_NAMESPACE}#endif#endif /* not ParserState_INCLUDED */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -