OpenElement.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef OpenElement_INCLUDED
#define OpenElement_INCLUDED 1
#ifdef __GNUG__
#pragma interface
#endif
#include "Boolean.h"
#include "ContentToken.h"
#include "ElementType.h"
#include "Link.h"
#include "Mode.h"
#include "Allocator.h"
#include "Location.h"
#ifdef SP_NAMESPACE
#endif
const ShortReferenceMap *currentMap,
const Location &startLocation);
Boolean isFinished() const;
// This doesn't handle declared content of EMPTY.
// If this situation can arise must use declaredEmpty().
const LeafContentToken *impliedStartTag() const;
void doRequiredTransition();
const ElementType *type() const;
Boolean netEnabling() const;
const MatchState &matchState() const;
void setMatchState(const MatchState &);
const ShortReferenceMap *map() const;
void setMap(const ShortReferenceMap *);
Boolean requiresSpecialParse() const;
const Location &startLocation() const;
const LeafContentToken *currentPosition() const;
Boolean declaredEmpty() const;
void setConref();
unsigned long index() const;
void setIndex(unsigned long);
const ElementType *elementType_;
const ShortReferenceMap *map_;
unsigned long index_;
};
inline
{
return elementType_;
}
inline
{
return netEnabling_;
}
inline
{
return included_;
}
inline
{
return matchState_;
}
inline
{
matchState_ = state;
}
inline
{
|| matchState_.isFinished());
}
inline
{
? matchState_.tryTransition(e)
}
inline
{
: 1); // CDATA, RCDATA, ANY all ok
}
inline
const
{
: 0);
}
inline
void OpenElement::doRequiredTransition()
{
}
inline
{
: 0);
}
inline
{
return map_;
}
inline
{
}
inline
{
}
inline
{
}
inline
{
return startLocation_;
}
inline
{
: 0);
}
inline
{
}
inline
void OpenElement::setConref()
{
}
inline
unsigned long OpenElement::index() const
{
return index_;
}
inline
{
}
#ifdef SP_NAMESPACE
}
#endif
#endif /* not OpenElement_INCLUDED */