ContentState.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1994, 1996 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef ContentState_INCLUDED
#define ContentState_INCLUDED 1
#ifdef __GNUG__
#pragma interface
#endif
#include <stddef.h>
#include "OpenElement.h"
#include "IList.h"
#include "Vector.h"
#include "Message.h"
#include "Dtd.h"
#include "Mode.h"
#include "Boolean.h"
#ifdef SP_NAMESPACE
#endif
ContentState();
void startContent(const Dtd &);
void pushElement(OpenElement *);
void popElement();
const OpenElement ¤tElement() const;
unsigned tagLevel() const;
Boolean afterDocumentElement() const;
const ElementType *lastEndedElementType() const;
Mode contentMode() const;
const Location &,
Dtd &);
Boolean checkImplyLoop(unsigned);
static const ShortReferenceMap theEmptyMap;
unsigned totalExcludeCount_;
unsigned tagLevel_;
unsigned netEnablingCount_;
unsigned long nextIndex_;
const ElementType *lastEndedElementType_;
};
inline
{
return *openElements_.head();
}
inline
{
return *openElements_.head();
}
inline
{
return openElementCount_[e->index()] != 0;
}
inline
{
}
inline
{
return excludeCount_[e->index()] != 0;
}
inline
{
return lastEndedElementType_;
}
inline
unsigned ContentState::tagLevel() const
{
return tagLevel_;
}
inline
{
}
inline
{
}
#ifdef SP_NAMESPACE
}
#endif
#endif /* not ContentState_INCLUDED */