## Xalan-C++ API Documentation

### The Xalan C++ XSLT Processor Version 1.10

Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members

# DOMStringPrintWriter.hpp

Go to the documentation of this file.

    00001 /*
    00002  * Copyright 1999-2004 The Apache Software Foundation.
    00003  *
    00004  * Licensed under the Apache License, Version 2.0 (the "License");
    00005  * you may not use this file except in compliance with the License.
    00006  * You may obtain a copy of the License at
    00007  *
    00008  *     http://www.apache.org/licenses/LICENSE-2.0
    00009  *
    00010  * Unless required by applicable law or agreed to in writing, software
    00011  * distributed under the License is distributed on an "AS IS" BASIS,
    00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00013  * See the License for the specific language governing permissions and
    00014  * limitations under the License.
    00015  */
    00016 #if !defined(DOMSTRING_PRINTWRITER_HEADER_GUARD_1357924680)
    00017 #define DOMSTRING_PRINTWRITER_HEADER_GUARD_1357924680
    00018
    00019
    00020
    00021 // Base include file.  Must be first.
    00022 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp>
    00023
    00024
    00025
    00026 #include <xalanc/PlatformSupport/PrintWriter.hpp>
    00027
    00028
    00029
    00030 #include <xalanc/XalanDOM/XalanDOMString.hpp>
    00031
    00032
    00033
    00034 XALAN_CPP_NAMESPACE_BEGIN
    00035
    00036
    00037
    00038 class XALAN_PLATFORMSUPPORT_EXPORT DOMStringPrintWriter : public PrintWriter
    00039 {
    00040 public:
    00041
    00042     DOMStringPrintWriter(XalanDOMString&    theString);
    00043
    00044     virtual
    00045     ~DOMStringPrintWriter();
    00046
    00047     XalanDOMString&
    00048     getString() const
    00049     {
    00050         return *m_outputString;
    00051     }
    00052
    00053     void
    00054     setString(XalanDOMString& newString)
    00055     {
    00056         m_outputString = &newString;
    00057     }
    00058
    00059     // Output functions inherited from PrintWriter...
    00060
    00061     virtual bool
    00062     checkError() const;
    00063
    00064     virtual void
    00065     close();
    00066
    00067     virtual void
    00068     flush();
    00069
    00070     virtual void
    00071     write(
    00072             const char*     s,
    00073             size_t          theOffset = 0,
    00074             size_t          theLength = npos);
    00075
    00076     virtual void
    00077     write(
    00078             const XalanDOMChar*         s,
    00079             XalanDOMString::size_type   theOffset = 0,
    00080             XalanDOMString::size_type   theLength = XalanDOMString::npos);
    00081
    00082     virtual void
    00083     write(XalanDOMChar      c);
    00084
    00085     virtual void
    00086     write(
    00087             const XalanDOMString&       s,
    00088             XalanDOMString::size_type   theOffset = 0,
    00089             XalanDOMString::size_type   theLength = XalanDOMString::npos);
    00090
    00091 #if !defined(XALAN_BOOL_AS_INT)
    00092     virtual void
    00093     print(bool  b);
    00094 #endif
    00095
    00096     virtual void
    00097     print(char  c);
    00098
    00099     virtual void
    00100     print(
    00101             const char*     s,
    00102             size_t          theLength = npos);
    00103
    00104     virtual void
    00105     print(
    00106             const XalanDOMChar*         s,
    00107             XalanDOMString::size_type   theLength = XalanDOMString::npos);
    00108
    00109     virtual void
    00110     print(double    d);
    00111
    00112     virtual void
    00113     print(int   i);
    00114
    00115     virtual void
    00116     print(long  l);
    00117
    00118     virtual void
    00119     print(const XalanDOMString&     s);
    00120
    00121     virtual void
    00122     println();
    00123
    00124 #if !defined(XALAN_BOOL_AS_INT)
    00125     virtual void
    00126     println(bool    x);
    00127 #endif
    00128
    00129     virtual void
    00130     println(char    x);
    00131
    00132     virtual void
    00133     println(
    00134             const char*     s,
    00135             size_t          theLength = npos);
    00136
    00137     virtual void
    00138     println(
    00139             const XalanDOMChar*         s,
    00140             XalanDOMString::size_type   theLength = XalanDOMString::npos);
    00141
    00142     virtual void
    00143     println(double  x);
    00144
    00145     virtual void
    00146     println(int     x);
    00147
    00148     virtual void
    00149     println(long    x);
    00150
    00151     virtual void
    00152     println(const XalanDOMString&   s);
    00153
    00154 protected:
    00155
    00156     XalanDOMString*     m_outputString;
    00157
    00158 private:
    00159
    00160     // Not implemented
    00161     DOMStringPrintWriter(const DOMStringPrintWriter&);
    00162
    00163     DOMStringPrintWriter&
    00164     operator=(const DOMStringPrintWriter&);
    00165
    00166     bool
    00167     operator==(const DOMStringPrintWriter&);
    00168 };
    00169
    00170
    00171
    00172 XALAN_CPP_NAMESPACE_END
    00173
    00174
    00175
    00176 #endif  // DOMSTRING_PRINTWRITER_HEADER_GUARD_1357924680

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.10 Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.