DTDGrammar Class Reference

#include <DTDGrammar.hpp>

List of all members.

Public Member Functions

 DTDGrammar (MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
virtual ~DTDGrammar ()
virtual Grammar::GrammarType getGrammarType () const
virtual const XMLChgetTargetNamespace () const
virtual XMLElementDeclfindOrAddElemDecl (const unsigned int uriId, const XMLCh *const baseName, const XMLCh *const prefixName, const XMLCh *const qName, unsigned int scope, bool &wasAdded)
virtual unsigned int getElemId (const unsigned int uriId, const XMLCh *const baseName, const XMLCh *const qName, unsigned int scope) const
virtual const XMLElementDeclgetElemDecl (const unsigned int uriId, const XMLCh *const baseName, const XMLCh *const qName, unsigned int scope) const
virtual XMLElementDeclgetElemDecl (const unsigned int uriId, const XMLCh *const baseName, const XMLCh *const qName, unsigned int scope)
virtual const XMLElementDeclgetElemDecl (const unsigned int elemId) const
virtual XMLElementDeclgetElemDecl (const unsigned int elemId)
virtual const XMLNotationDeclgetNotationDecl (const XMLCh *const notName) const
virtual XMLNotationDeclgetNotationDecl (const XMLCh *const notName)
virtual bool getValidated () const
virtual XMLElementDeclputElemDecl (const unsigned int uriId, const XMLCh *const baseName, const XMLCh *const prefixName, const XMLCh *const qName, unsigned int scope, const bool notDeclared=false)
virtual unsigned int putElemDecl (XMLElementDecl *const elemDecl, const bool notDeclared=false) const
virtual unsigned int putNotationDecl (XMLNotationDecl *const notationDecl) const
virtual void setValidated (const bool newState)
virtual void reset ()
unsigned int getRootElemId ()
const DTDEntityDeclgetEntityDecl (const XMLCh *const entName) const
DTDEntityDeclgetEntityDecl (const XMLCh *const entName)
NameIdPool< DTDEntityDecl > * getEntityDeclPool ()
const NameIdPool< DTDEntityDecl > * getEntityDeclPool () const
NameIdPoolEnumerator< DTDElementDeclgetElemEnumerator () const
NameIdPoolEnumerator< DTDEntityDeclgetEntityEnumerator () const
NameIdPoolEnumerator< XMLNotationDeclgetNotationEnumerator () const
void setRootElemId (unsigned int rootElemId)
unsigned int putEntityDecl (DTDEntityDecl *const entityDecl) const

Private Member Functions

void resetEntityDeclPool ()

Private Attributes

MemoryManagerfMemoryManager
NameIdPool< DTDElementDecl > * fElemDeclPool
NameIdPool< DTDElementDecl > * fElemNonDeclPool
NameIdPool< DTDEntityDecl > * fEntityDeclPool
NameIdPool< XMLNotationDecl > * fNotationDeclPool
unsigned int fRootElemId
bool fValidated


Detailed Description

Definition at line 129 of file DTDGrammar.hpp.


Constructor & Destructor Documentation

DTDGrammar::DTDGrammar ( MemoryManager *const   manager = XMLPlatformUtils::fgMemoryManager  ) 

virtual DTDGrammar::~DTDGrammar (  )  [virtual]


Member Function Documentation

virtual XMLElementDecl* DTDGrammar::findOrAddElemDecl ( const unsigned int  uriId,
const XMLCh *const   baseName,
const XMLCh *const   prefixName,
const XMLCh *const   qName,
unsigned int  scope,
bool &  wasAdded 
) [virtual]

XMLElementDecl * DTDGrammar::getElemDecl ( const unsigned int  elemId  )  [inline, virtual]

Definition at line 418 of file DTDGrammar.hpp.

References fElemDeclPool, and NameIdPool< TElem >::getById().

const XMLElementDecl * DTDGrammar::getElemDecl ( const unsigned int  elemId  )  const [inline, virtual]

Definition at line 412 of file DTDGrammar.hpp.

References fElemDeclPool, and NameIdPool< TElem >::getById().

XMLElementDecl * DTDGrammar::getElemDecl ( const unsigned int  uriId,
const XMLCh *const   baseName,
const XMLCh *const   qName,
unsigned int  scope 
) [inline, virtual]

Definition at line 399 of file DTDGrammar.hpp.

References fElemDeclPool, fElemNonDeclPool, and NameIdPool< TElem >::getByKey().

const XMLElementDecl * DTDGrammar::getElemDecl ( const unsigned int  uriId,
const XMLCh *const   baseName,
const XMLCh *const   qName,
unsigned int  scope 
) const [inline, virtual]

Definition at line 386 of file DTDGrammar.hpp.

References fElemDeclPool, fElemNonDeclPool, and NameIdPool< TElem >::getByKey().

NameIdPoolEnumerator< DTDElementDecl > DTDGrammar::getElemEnumerator (  )  const [inline]

Definition at line 307 of file DTDGrammar.hpp.

References fElemDeclPool.

unsigned int DTDGrammar::getElemId ( const unsigned int  uriId,
const XMLCh *const   baseName,
const XMLCh *const   qName,
unsigned int  scope 
) const [inline, virtual]

Definition at line 371 of file DTDGrammar.hpp.

References fElemDeclPool, XMLElementDecl::fgInvalidElemId, NameIdPool< TElem >::getByKey(), and XMLElementDecl::getId().

DTDEntityDecl * DTDGrammar::getEntityDecl ( const XMLCh *const   entName  )  [inline]

Definition at line 330 of file DTDGrammar.hpp.

References fEntityDeclPool, and NameIdPool< TElem >::getByKey().

const DTDEntityDecl * DTDGrammar::getEntityDecl ( const XMLCh *const   entName  )  const [inline]

Definition at line 325 of file DTDGrammar.hpp.

References fEntityDeclPool, and NameIdPool< TElem >::getByKey().

const NameIdPool< DTDEntityDecl > * DTDGrammar::getEntityDeclPool (  )  const [inline]

Definition at line 341 of file DTDGrammar.hpp.

References fEntityDeclPool.

NameIdPool< DTDEntityDecl > * DTDGrammar::getEntityDeclPool (  )  [inline]

Definition at line 336 of file DTDGrammar.hpp.

References fEntityDeclPool.

NameIdPoolEnumerator< DTDEntityDecl > DTDGrammar::getEntityEnumerator (  )  const [inline]

Definition at line 313 of file DTDGrammar.hpp.

References fEntityDeclPool.

Grammar::GrammarType DTDGrammar::getGrammarType (  )  const [inline, virtual]

Definition at line 362 of file DTDGrammar.hpp.

XMLNotationDecl * DTDGrammar::getNotationDecl ( const XMLCh *const   notName  )  [inline, virtual]

Definition at line 440 of file DTDGrammar.hpp.

References fNotationDeclPool, and NameIdPool< TElem >::getByKey().

const XMLNotationDecl * DTDGrammar::getNotationDecl ( const XMLCh *const   notName  )  const [inline, virtual]

Definition at line 435 of file DTDGrammar.hpp.

References fNotationDeclPool, and NameIdPool< TElem >::getByKey().

NameIdPoolEnumerator< XMLNotationDecl > DTDGrammar::getNotationEnumerator (  )  const [inline]

Definition at line 319 of file DTDGrammar.hpp.

References fNotationDeclPool.

unsigned int DTDGrammar::getRootElemId (  )  [inline]

Definition at line 298 of file DTDGrammar.hpp.

References fRootElemId.

const XMLCh * DTDGrammar::getTargetNamespace (  )  const [inline, virtual]

Definition at line 366 of file DTDGrammar.hpp.

References XMLUni::fgZeroLenString.

bool DTDGrammar::getValidated (  )  const [inline, virtual]

Definition at line 450 of file DTDGrammar.hpp.

References fValidated.

unsigned int DTDGrammar::putElemDecl ( XMLElementDecl *const   elemDecl,
const bool  notDeclared = false 
) const [inline, virtual]

Definition at line 425 of file DTDGrammar.hpp.

References fElemDeclPool, fElemNonDeclPool, and NameIdPool< TElem >::put().

virtual XMLElementDecl* DTDGrammar::putElemDecl ( const unsigned int  uriId,
const XMLCh *const   baseName,
const XMLCh *const   prefixName,
const XMLCh *const   qName,
unsigned int  scope,
const bool  notDeclared = false 
) [virtual]

unsigned int DTDGrammar::putEntityDecl ( DTDEntityDecl *const   entityDecl  )  const [inline]

Definition at line 353 of file DTDGrammar.hpp.

References fEntityDeclPool, and NameIdPool< TElem >::put().

unsigned int DTDGrammar::putNotationDecl ( XMLNotationDecl *const   notationDecl  )  const [inline, virtual]

Definition at line 445 of file DTDGrammar.hpp.

References fNotationDeclPool, and NameIdPool< TElem >::put().

virtual void DTDGrammar::reset (  )  [virtual]

void DTDGrammar::resetEntityDeclPool (  )  [private]

void DTDGrammar::setRootElemId ( unsigned int  rootElemId  )  [inline]

Definition at line 349 of file DTDGrammar.hpp.

References fRootElemId.

void DTDGrammar::setValidated ( const bool  newState  )  [inline, virtual]

Definition at line 455 of file DTDGrammar.hpp.

References fValidated.


Member Data Documentation

NameIdPool<DTDElementDecl>* DTDGrammar::fElemDeclPool [private]

Definition at line 286 of file DTDGrammar.hpp.

Referenced by getElemDecl(), getElemEnumerator(), getElemId(), and putElemDecl().

NameIdPool<DTDElementDecl>* DTDGrammar::fElemNonDeclPool [private]

Definition at line 287 of file DTDGrammar.hpp.

Referenced by getElemDecl(), and putElemDecl().

NameIdPool<DTDEntityDecl>* DTDGrammar::fEntityDeclPool [private]

Definition at line 288 of file DTDGrammar.hpp.

Referenced by getEntityDecl(), getEntityDeclPool(), getEntityEnumerator(), and putEntityDecl().

MemoryManager* DTDGrammar::fMemoryManager [private]

Definition at line 285 of file DTDGrammar.hpp.

NameIdPool<XMLNotationDecl>* DTDGrammar::fNotationDeclPool [private]

Definition at line 289 of file DTDGrammar.hpp.

Referenced by getNotationDecl(), getNotationEnumerator(), and putNotationDecl().

unsigned int DTDGrammar::fRootElemId [private]

Definition at line 290 of file DTDGrammar.hpp.

Referenced by getRootElemId(), and setRootElemId().

bool DTDGrammar::fValidated [private]

Definition at line 291 of file DTDGrammar.hpp.

Referenced by getValidated(), and setValidated().


The documentation for this class was generated from the following file:
Generated on Thu Dec 7 01:30:41 2006 for DT2005.panorama by  doxygen 1.4.7