Xalan-C++ API Reference
1.12.0
xalanc
XMLSupport
FormatterToNull.hpp
Go to the documentation of this file.
1
/*
2
* Licensed to the Apache Software Foundation (ASF) under one
3
* or more contributor license agreements. See the NOTICE file
4
* distributed with this work for additional information
5
* regarding copyright ownership. The ASF licenses this file
6
* to you under the Apache License, Version 2.0 (the "License");
7
* you may not use this file except in compliance with the License.
8
* You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an "AS IS" BASIS,
14
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
* See the License for the specific language governing permissions and
16
* limitations under the License.
17
*/
18
#if !defined(FORMATTERTONULL_HEADER_GUARD_1357924680)
19
#define FORMATTERTONULL_HEADER_GUARD_1357924680
20
21
22
23
// Base include file. Must be first.
24
#include <
xalanc/XMLSupport/XMLSupportDefinitions.hpp
>
25
26
27
28
// Base class header file.
29
#include <
xalanc/PlatformSupport/FormatterListener.hpp
>
30
31
32
33
namespace
XALAN_CPP_NAMESPACE
{
34
35
36
37
/**
38
* This class takes SAX events (in addition to some extra events
39
* that SAX doesn't handle yet) and produces absolutely nothing.
40
* This is useful for profiling situations where serialization
41
* obscures things.
42
*/
43
class
XALAN_XMLSUPPORT_EXPORT
FormatterToNull
:
public
FormatterListener
44
{
45
public
:
46
47
/**
48
* FormatterToNull instance constructor.
49
*/
50
explicit
51
FormatterToNull
();
52
53
virtual
54
~FormatterToNull
();
55
56
57
// These methods are inherited from FormatterListener ...
58
59
virtual
void
60
setDocumentLocator
(
const
Locator*
const
locator
);
61
62
virtual
void
63
startDocument
();
64
65
virtual
void
66
endDocument
();
67
68
virtual
void
69
startElement
(
70
const
XMLCh
*
const
name
,
71
AttributeListType
&
attrs
);
72
73
virtual
void
74
endElement
(
const
XMLCh
*
const
name
);
75
76
virtual
void
77
characters
(
78
const
XMLCh
*
const
chars
,
79
const
size_type
length);
80
81
virtual
void
82
charactersRaw
(
83
const
XMLCh
*
const
chars
,
84
const
size_type
length);
85
86
virtual
void
87
entityReference
(
const
XMLCh
*
const
name
);
88
89
virtual
void
90
ignorableWhitespace
(
91
const
XMLCh
*
const
chars
,
92
const
size_type
length);
93
94
virtual
void
95
processingInstruction
(
96
const
XMLCh
*
const
target
,
97
const
XMLCh
*
const
data);
98
99
100
virtual
void
101
resetDocument
();
102
103
virtual
void
104
comment
(
const
XMLCh
*
const
data);
105
106
virtual
void
107
cdata
(
108
const
XMLCh
*
const
ch
,
109
const
size_type
length);
110
111
private
:
112
113
// These are not implemented.
114
FormatterToNull
(
const
FormatterToNull
&);
115
116
FormatterToNull
&
117
operator=(
const
FormatterToNull
&);
118
119
bool
120
operator==
(
const
FormatterToNull
&)
const
;
121
};
122
123
124
125
}
126
127
128
129
#endif
// FORMATTERTONULL_HEADER_GUARD_1357924680
FormatterListener.hpp
XMLSupportDefinitions.hpp
XALAN_XMLSUPPORT_EXPORT
#define XALAN_XMLSUPPORT_EXPORT
Definition
XMLSupportDefinitions.hpp:35
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition
XalanVersion.hpp:76
xalanc::FormatterListener
A SAX-based formatter interface for the XSL processor.
Definition
FormatterListener.hpp:57
xalanc::FormatterListener::size_type
XalanSize_t size_type
Definition
FormatterListener.hpp:63
xalanc::FormatterToNull
This class takes SAX events (in addition to some extra events that SAX doesn't handle yet) and produc...
Definition
FormatterToNull.hpp:44
xalanc::FormatterToNull::FormatterToNull
FormatterToNull()
FormatterToNull instance constructor.
xalanc::FormatterToNull::characters
virtual void characters(const XMLCh *const chars, const size_type length)
xalanc::FormatterToNull::entityReference
virtual void entityReference(const XMLCh *const name)
Receive notification of a entityReference.
xalanc::FormatterToNull::endElement
virtual void endElement(const XMLCh *const name)
xalanc::FormatterToNull::startElement
virtual void startElement(const XMLCh *const name, AttributeListType &attrs)
xalanc::FormatterToNull::setDocumentLocator
virtual void setDocumentLocator(const Locator *const locator)
xalanc::FormatterToNull::endDocument
virtual void endDocument()
xalanc::FormatterToNull::charactersRaw
virtual void charactersRaw(const XMLCh *const chars, const size_type length)
Receive notification of character data.
xalanc::FormatterToNull::~FormatterToNull
virtual ~FormatterToNull()
xalanc::FormatterToNull::resetDocument
virtual void resetDocument()
xalanc::FormatterToNull::comment
virtual void comment(const XMLCh *const data)
Called when a Comment is to be constructed.
xalanc::FormatterToNull::startDocument
virtual void startDocument()
xalanc::FormatterToNull::ignorableWhitespace
virtual void ignorableWhitespace(const XMLCh *const chars, const size_type length)
xalanc::FormatterToNull::cdata
virtual void cdata(const XMLCh *const ch, const size_type length)
Receive notification of cdata.
xalanc::FormatterToNull::processingInstruction
virtual void processingInstruction(const XMLCh *const target, const XMLCh *const data)
xalanc::XalanMemMgrAutoPtr
Definition
XalanMemMgrAutoPtr.hpp:47
xalanc::AttributeListType
xercesc::AttributeList AttributeListType
Definition
AttributeListImpl.hpp:45
xalanc::operator==
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition
XalanVector.hpp:1118
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Thu Jan 9 2025 11:39:52 for Xalan-C++ API Reference by
1.9.8