Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

xpath_function.h

Go to the documentation of this file.
00001 //  -*- c++ -*-
00002 
00003 /*
00004  *  This file is part of the KDE libraries
00005  *  Copyright (C) 2004 Richard Moore, rich@kde.org
00006  *
00007  *  This library is free software; you can redistribute it and/or
00008  *  modify it under the terms of the GNU Lesser General Public
00009  *  License as published by the Free Software Foundation; either
00010  *  version 2 of the License, or (at your option) any later version.
00011  *
00012  *  This library is distributed in the hope that it will be useful,
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  *  Lesser General Public License for more details.
00016  *
00017  *  You should have received a copy of the GNU Lesser General Public
00018  *  License along with this library; if not, write to the Free Software
00019  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020  *
00021  */
00022 
00023 #ifndef XPATH_FUNCTION_H
00024 #define XPATH_FUNCTION_H
00025 
00026 #include "xpath_exprnode.h"
00027 
00028 namespace XPath {
00029 
00033 class FunctionCall : public ExprNode
00034 {
00035 public:
00036     enum FunctionCallId {
00037         FunctionBoolean, FunctionCeiling, FunctionConcat, FunctionContains,
00038         FunctionCount, FunctionFalse, FunctionFloor, FunctionId, FunctionLang,
00039         FunctionLast, FunctionLocalName, FunctionName, FunctionNamespaceURI,
00040         FunctionNormalizeSpace, FunctionNot, FunctionNumber, FunctionPosition,
00041         FunctionRound, FunctionStartsWith, FunctionString, FunctionStringLength,
00042         FunctionSubstring, FunctionSubstringAfter, FunctionSubstringBefore,
00043         FunctionSum, FunctionTranslate, FunctionTrue
00044     };
00045 
00046     FunctionCall( FunctionCallId func );
00047     ~FunctionCall();
00048 
00049     virtual Value evaluate() const;
00050 
00051 private:
00052     FunctionCallId id;
00053 };
00054 
00055 } // namespace XPath
00056 
00057 #endif // XPATH_FUNCTION_H
00058 
00059 // Local Variables:
00060 // c-basic-offset: 4
00061 // End:

Generated on Sat Jan 31 23:28:24 2004 for XPath by doxygen1.2.18