00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 2002, 2005-2008 Peter Miller 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program. If not, see 00017 // <http://www.gnu.org/licenses/>. 00018 // 00019 00020 #ifndef LIBAEGIS_AER_FUNC_CAPITALIZE_H 00021 #define LIBAEGIS_AER_FUNC_CAPITALIZE_H 00022 00023 #include <libaegis/aer/func.h> 00024 00029 class rpt_func_capitalize: 00030 public rpt_func 00031 { 00032 public: 00036 virtual ~rpt_func_capitalize(); 00037 00038 private: 00043 rpt_func_capitalize(); 00044 00045 public: 00050 static rpt_func::pointer create(); 00051 00052 protected: 00053 // See base class for documentation. 00054 const char *name() const; 00055 00056 // See base class for documentation. 00057 bool optimizable() const; 00058 00059 // See base class for documentation. 00060 bool verify(const rpt_expr::pointer &ep) const; 00061 00062 // See base class for documentation. 00063 rpt_value::pointer run(const rpt_expr::pointer &ep, size_t argc, 00064 rpt_value::pointer *argv) const; 00065 00066 private: 00070 rpt_func_capitalize(const rpt_func_capitalize &); 00071 00075 rpt_func_capitalize &operator=(const rpt_func_capitalize &); 00076 }; 00077 00078 #endif // LIBAEGIS_AER_FUNC_CAPITALIZE_H