## Xalan-C++ API Documentation

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

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

# XalanEXSLTSetImpl.hpp

Go to the documentation of this file.

    00001 /*
    00002  * The Apache Software License, Version 1.1
    00003  *
    00004  *
    00005  * Copyright (c) 2002-2003 The Apache Software Foundation.  All rights
    00006  * reserved.
    00007  *
    00008  * Redistribution and use in source and binary forms, with or without
    00009  * modification, are permitted provided that the following conditions
    00010  * are met:
    00011  *
    00012  * 1. Redistributions of source code must retain the above copyright
    00013  *    notice, this list of conditions and the following disclaimer.
    00014  *
    00015  * 2. Redistributions in binary form must reproduce the above copyright
    00016  *    notice, this list of conditions and the following disclaimer in
    00017  *    the documentation and/or other materials provided with the
    00018  *    distribution.
    00019  *
    00020  * 3. The end-user documentation included with the redistribution,
    00021  *    if any, must include the following acknowledgment:
    00022  *       "This product includes software developed by the
    00023  *        Apache Software Foundation (http://www.apache.org/)."
    00024  *    Alternately, this acknowledgment may appear in the software itself,
    00025  *    if and wherever such third-party acknowledgments normally appear.
    00026  *
    00027  * 4. The names "Xalan" and "Apache Software Foundation" must
    00028  *    not be used to endorse or promote products derived from this
    00029  *    software without prior written permission. For written
    00030  *    permission, please contact apache@apache.org.
    00031  *
    00032  * 5. Products derived from this software may not be called "Apache",
    00033  *    nor may "Apache" appear in their name, without prior written
    00034  *    permission of the Apache Software Foundation.
    00035  *
    00036  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    00037  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    00038  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    00039  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
    00040  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    00041  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    00042  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    00043  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    00044  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    00045  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    00046  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    00047  * SUCH DAMAGE.
    00048  * ====================================================================
    00049  *
    00050  * This software consists of voluntary contributions made by many
    00051  * individuals on behalf of the Apache Software Foundation and was
    00052  * originally based on software copyright (c) 1999, International
    00053  * Business Machines, Inc., http://www.ibm.com.  For more
    00054  * information on the Apache Software Foundation, please see
    00055  * <http://www.apache.org/>.
    00056  */
    00057 #if !defined(EXSLT_SETIMPL_HEADER_GUARD_1357924680)
    00058 #define EXSLT_SETIMPL_HEADER_GUARD_1357924680
    00059
    00060
    00061
    00062 #include <XalanEXSLT/XalanEXSLTDefinitions.hpp>
    00063
    00064
    00065
    00066 #include <XPath/Function.hpp>
    00067
    00068
    00069
    00070 #include <XalanExtensions/FunctionDifference.hpp>
    00071 #include <XalanExtensions/FunctionDistinct.hpp>
    00072 #include <XalanExtensions/FunctionIntersection.hpp>
    00073
    00074
    00075
    00076 XALAN_CPP_NAMESPACE_BEGIN
    00077
    00078
    00079
    00080 class XALAN_EXSLT_EXPORT XalanEXSLTFunctionDifference : public FunctionDifference
    00081 {
    00082 public:
    00083
    00084     XalanEXSLTFunctionDifference() :
    00085         FunctionDifference()
    00086     {
    00087     }
    00088
    00089     virtual
    00090     ~XalanEXSLTFunctionDifference()
    00091     {
    00092     }
    00093
    00094 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
    00095     virtual Function*
    00096 #else
    00097     virtual XalanEXSLTFunctionDifference*
    00098 #endif
    00099     clone() const
    00100     {
    00101         return new XalanEXSLTFunctionDifference(*this);
    00102     }
    00103
    00104 protected:
    00105
    00106     virtual const XalanDOMString
    00107     getError() const
    00108     {
    00109         return StaticStringToDOMString(XALAN_STATIC_UCODE_STRING("The EXSLT function difference() accepts two arguments"));
    00110     }
    00111
    00112 private:
    00113
    00114     // Not implemented...
    00115     XalanEXSLTFunctionDifference&
    00116     operator=(const XalanEXSLTFunctionDifference&);
    00117
    00118     bool
    00119     operator==(const XalanEXSLTFunctionDifference&) const;
    00120 };
    00121
    00122
    00123
    00124 class XALAN_EXSLT_EXPORT XalanEXSLTFunctionDistinct : public FunctionDistinct
    00125 {
    00126 public:
    00127
    00128     XalanEXSLTFunctionDistinct() :
    00129         FunctionDistinct()
    00130     {
    00131     }
    00132
    00133     virtual
    00134     ~XalanEXSLTFunctionDistinct()
    00135     {
    00136     }
    00137
    00138 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
    00139     virtual Function*
    00140 #else
    00141     virtual XalanEXSLTFunctionDistinct*
    00142 #endif
    00143     clone() const
    00144     {
    00145         return new XalanEXSLTFunctionDistinct(*this);
    00146     }
    00147
    00148 protected:
    00149
    00150     virtual const XalanDOMString
    00151     getError() const
    00152     {
    00153         return StaticStringToDOMString(XALAN_STATIC_UCODE_STRING("The EXSLT function distinct() accepts one argument"));
    00154     }
    00155
    00156 private:
    00157
    00158     // Not implemented...
    00159     XalanEXSLTFunctionDifference&
    00160     operator=(const XalanEXSLTFunctionDifference&);
    00161
    00162     bool
    00163     operator==(const XalanEXSLTFunctionDifference&) const;
    00164 };
    00165
    00166
    00167
    00168 class XALAN_EXSLT_EXPORT XalanEXSLTFunctionHasSameNode : public Function
    00169 {
    00170 public:
    00171
    00172     typedef Function    ParentType;
    00173
    00174     XalanEXSLTFunctionHasSameNode() :
    00175         Function()
    00176     {
    00177     }
    00178
    00179     virtual
    00180     ~XalanEXSLTFunctionHasSameNode()
    00181     {
    00182     }
    00183
    00184     // These methods are inherited from Function ...
    00185
    00186     virtual XObjectPtr
    00187     execute(
    00188             XPathExecutionContext&          executionContext,
    00189             XalanNode*                      context,
    00190             const XObjectArgVectorType&     args,
    00191             const LocatorType*              locator) const;
    00192
    00193 #if !defined(XALAN_NO_USING_DECLARATION)
    00194     using ParentType::execute;
    00195 #endif
    00196
    00197 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
    00198     virtual Function*
    00199 #else
    00200     virtual XalanEXSLTFunctionHasSameNode*
    00201 #endif
    00202     clone() const
    00203     {
    00204         return new XalanEXSLTFunctionHasSameNode(*this);
    00205     }
    00206
    00207 protected:
    00208
    00209     virtual const XalanDOMString
    00210     getError() const
    00211     {
    00212         return StaticStringToDOMString(XALAN_STATIC_UCODE_STRING("The EXSLT function has-same-node() accepts two arguments"));
    00213     }
    00214
    00215 private:
    00216
    00217     // Not implemented...
    00218     XalanEXSLTFunctionHasSameNode&
    00219     operator=(const XalanEXSLTFunctionHasSameNode&);
    00220
    00221     bool
    00222     operator==(const XalanEXSLTFunctionHasSameNode&) const;
    00223 };
    00224
    00225
    00226
    00227 class XALAN_EXSLT_EXPORT XalanEXSLTFunctionIntersection : public FunctionIntersection
    00228 {
    00229 public:
    00230
    00231     XalanEXSLTFunctionIntersection() :
    00232         FunctionIntersection()
    00233     {
    00234     }
    00235
    00236     virtual
    00237     ~XalanEXSLTFunctionIntersection()
    00238     {
    00239     }
    00240
    00241 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
    00242     virtual Function*
    00243 #else
    00244     virtual XalanEXSLTFunctionIntersection*
    00245 #endif
    00246     clone() const
    00247     {
    00248         return new XalanEXSLTFunctionIntersection(*this);
    00249     }
    00250
    00251 protected:
    00252
    00253     virtual const XalanDOMString
    00254     getError() const
    00255     {
    00256         return StaticStringToDOMString(XALAN_STATIC_UCODE_STRING("The EXSLT function distinct() function accepts two arguments"));
    00257     }
    00258
    00259 private:
    00260
    00261     // Not implemented...
    00262     XalanEXSLTFunctionIntersection&
    00263     operator=(const XalanEXSLTFunctionIntersection&);
    00264
    00265     bool
    00266     operator==(const XalanEXSLTFunctionIntersection&) const;
    00267 };
    00268
    00269
    00270
    00271 class XALAN_EXSLT_EXPORT XalanEXSLTFunctionLeading : public Function
    00272 {
    00273 public:
    00274
    00275     typedef Function    ParentType;
    00276
    00277     XalanEXSLTFunctionLeading() :
    00278         Function()
    00279     {
    00280     }
    00281
    00282     virtual
    00283     ~XalanEXSLTFunctionLeading()
    00284     {
    00285     }
    00286
    00287     // These methods are inherited from Function ...
    00288
    00289     virtual XObjectPtr
    00290     execute(
    00291             XPathExecutionContext&          executionContext,
    00292             XalanNode*                      context,
    00293             const XObjectArgVectorType&     args,
    00294             const LocatorType*              locator) const;
    00295
    00296 #if !defined(XALAN_NO_USING_DECLARATION)
    00297     using ParentType::execute;
    00298 #endif
    00299
    00300 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
    00301     virtual Function*
    00302 #else
    00303     virtual XalanEXSLTFunctionLeading*
    00304 #endif
    00305     clone() const
    00306     {
    00307         return new XalanEXSLTFunctionLeading(*this);
    00308     }
    00309
    00310 protected:
    00311
    00312     virtual const XalanDOMString
    00313     getError() const
    00314     {
    00315         return StaticStringToDOMString(XALAN_STATIC_UCODE_STRING("The EXSLT function leading() function accepts two arguments"));
    00316     }
    00317
    00318 private:
    00319
    00320     // Not implemented...
    00321     XalanEXSLTFunctionHasSameNode&
    00322     operator=(const XalanEXSLTFunctionHasSameNode&);
    00323
    00324     bool
    00325     operator==(const XalanEXSLTFunctionHasSameNode&) const;
    00326 };
    00327
    00328
    00329
    00330 class XALAN_EXSLT_EXPORT XalanEXSLTFunctionTrailing : public Function
    00331 {
    00332 public:
    00333
    00334     typedef Function    ParentType;
    00335
    00336     XalanEXSLTFunctionTrailing() :
    00337         Function()
    00338     {
    00339     }
    00340
    00341     virtual
    00342     ~XalanEXSLTFunctionTrailing()
    00343     {
    00344     }
    00345
    00346     // These methods are inherited from Function ...
    00347
    00348     virtual XObjectPtr
    00349     execute(
    00350             XPathExecutionContext&          executionContext,
    00351             XalanNode*                      context,
    00352             const XObjectArgVectorType&     args,
    00353             const LocatorType*              locator) const;
    00354
    00355 #if !defined(XALAN_NO_USING_DECLARATION)
    00356     using ParentType::execute;
    00357 #endif
    00358
    00359 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
    00360     virtual Function*
    00361 #else
    00362     virtual XalanEXSLTFunctionTrailing*
    00363 #endif
    00364     clone() const
    00365     {
    00366         return new XalanEXSLTFunctionTrailing(*this);
    00367     }
    00368
    00369 protected:
    00370
    00371     virtual const XalanDOMString
    00372     getError() const
    00373     {
    00374         return StaticStringToDOMString(XALAN_STATIC_UCODE_STRING("The EXSLT function trailing() function accepts two arguments"));
    00375     }
    00376
    00377 private:
    00378
    00379     // Not implemented...
    00380     XalanEXSLTFunctionTrailing&
    00381     operator=(const XalanEXSLTFunctionTrailing&);
    00382
    00383     bool
    00384     operator==(const XalanEXSLTFunctionTrailing&) const;
    00385 };
    00386
    00387
    00388
    00389 XALAN_CPP_NAMESPACE_END
    00390
    00391
    00392
    00393 #endif  // EXSLT_SETIMPL_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.5 Copyright © 2000, 2001, 2002, 2003 The Apache Software Foundation. All Rights Reserved.