Event.cxx revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __GNUG__
#pragma implementation
#endif
#include "splib.h"
#include "Event.h"
#include "Entity.h"
#include "Attribute.h"
#include "EventQueue.h"
#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif
{
}
{
}
{
}
{
if (markup)
}
const Location &startLocation,
included_(0),
copied_(0),
{
}
{
if (copied_) {
delete attributes_;
delete markup_;
}
}
void StartElementEvent::copyData()
{
if (!copied_) {
{
AttributeList *p = new AttributeList;
attributes_->swap(*p);
attributes_ = p;
}
if (markup_) {
markup_ = p;
}
copied_ = 1;
}
}
const Location &startLocation,
included_(0),
copied_(0),
{
}
{
if (copied_)
delete markup_;
}
void EndElementEvent::copyData()
{
if (!copied_) {
if (markup_) {
markup_ = p;
}
copied_ = 1;
}
}
{
}
{
return 0;
}
{
return 0;
}
{
if (copy)
}
{
if (alloc_)
delete [] alloc_;
}
void ImmediateDataEvent::copyData()
{
if (!alloc_) {
}
}
{
}
{
return 1;
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
return 0;
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
const StringC &implySystemId,
{
}
{
}
{
}
{
}
unsigned long serial)
c_(c),
{
}
unsigned long serial)
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
const StringC &effectiveSystemId,
{
}
{
}
{
}
#define EVENT(c, f) \
#include "events.h"
: hadError_(0), origHandler_(0)
{
}
{
hadError_ = 0;
}
{
hadError_ = 1;
}
else
}
#ifdef SP_NAMESPACE
}
#endif