blob: c478f8696dc17f8e9e1ab1048da26f6f6b30e59e [file] [log] [blame]
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "GenerateEvent.hpp"
XALAN_CPP_NAMESPACE_BEGIN
GenerateEvent::GenerateEvent(EventType eventType) :
m_eventType(eventType),
m_characters(),
m_start(0),
m_length(0),
m_name(),
m_data(),
m_pAtts(0)
{
}
GenerateEvent::GenerateEvent(
EventType eventType,
const XalanDOMChar* name,
AttributeListType* atts) :
m_eventType(eventType),
m_characters(),
m_start(0),
m_length(0),
m_name(name),
m_data(),
m_pAtts(atts)
{
}
GenerateEvent::GenerateEvent(
EventType eventType,
const XalanDOMString& name,
const AttributeListType* atts) :
m_eventType(eventType),
m_characters(),
m_start(0),
m_length(0),
m_name(name),
m_data(),
m_pAtts(atts)
{
}
GenerateEvent::GenerateEvent(
EventType eventType,
const XalanDOMChar* ch,
XalanDOMString::size_type start,
XalanDOMString::size_type length) :
m_eventType(eventType),
m_characters(ch + start, length),
m_start(start),
m_length(length),
m_name(),
m_data(),
m_pAtts(0)
{
}
GenerateEvent::GenerateEvent(
EventType eventType,
const XalanDOMChar* name,
const XalanDOMChar* data) :
m_eventType(eventType),
m_characters(),
m_start(0),
m_length(0),
m_name(name),
m_data(data),
m_pAtts(0)
{
}
GenerateEvent::GenerateEvent(
EventType eventType,
const XalanDOMChar* data) :
m_eventType(eventType),
m_characters(),
m_start(0),
m_length(0),
m_name(),
m_data(data),
m_pAtts(0)
{
}
XALAN_CPP_NAMESPACE_END