Xalan-C++ API Reference  1.12.0
NLSHandler.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 
19 #if !defined(NLSHANDLER_MSGCREATOR_1357924680)
20 #define NLSHANDLER_MSGCREATOR_1357924680
21 
23 
24 #include "ICUResHandler.hpp"
25 
26 
27 
28 namespace XALAN_CPP_NAMESPACE {
29 
30 
31 
32 using namespace xercesc;
33 
34 
35 
36 class NLSHandler : public ICUResHandler
37 {
38 public:
39 
40  NLSHandler(
41  const char* fileName,
42  const char* indexFileName,
43  bool createUnicode = false);
44 
45  virtual
47 
48  virtual void
49  createHeaderForDataFile();
50 
51  virtual void
52  createBottomForDataFile();
53 
54  virtual void
55  printBeginOfDataLine();
56 
57  virtual void
58  printEndOfDataLine();
59 
60  void
61  characters(
62  const XMLCh* const chars,
63  const XalanSize_t length);
64 
65  void
66  startDocument();
67 
68 protected:
69 
70  // ASCII version of print
71  void
72  printToDataFileAsASCII(const char* sArrayOfStrings[]);
73 
74 private:
75 
76  int m_runningNumber;
77 
78  const bool m_createUnicode;
79 
80 
81  // Not implemented...
82  NLSHandler&
83  operator=(const NLSHandler&);
84 
85  NLSHandler(const NLSHandler&);
86 
87  bool
88  operator==(const NLSHandler&) const;
89 };
90 
91 
92 
93 }
94 
95 
96 
97 #endif //NLSHANDLER_MSGCREATOR_1357924680
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::NLSHandler
Definition: NLSHandler.hpp:36
xalanc::NLSHandler::~NLSHandler
virtual ~NLSHandler()
Definition: NLSHandler.hpp:46
xalanc::ICUResHandler
Definition: ICUResHandler.hpp:34
xalanc::operator==
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1118
xercesc
Definition: DOMSupportDefault.hpp:32
xalanc::length
XalanDOMString::size_type length(const XalanDOMString &theString)
Get the length of a XalanDOMString.
Definition: DOMStringHelper.hpp:235
ICUResHandler.hpp
PlatformDefinitions.hpp