00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 1994, 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 AEGIS_AER_FUNC_PROJECT_H 00021 #define AEGIS_AER_FUNC_PROJECT_H 00022 00023 #include <libaegis/aer/func.h> 00024 00025 struct string_ty; 00026 00027 00032 class rpt_func_project_name: 00033 public rpt_func 00034 { 00035 public: 00039 virtual ~rpt_func_project_name(); 00040 00041 private: 00046 rpt_func_project_name(); 00047 00048 public: 00053 static rpt_func::pointer create(); 00054 00055 protected: 00056 // See base class for documentation. 00057 const char *name() const; 00058 00059 // See base class for documentation. 00060 bool optimizable() const; 00061 00062 // See base class for documentation. 00063 bool verify(const rpt_expr::pointer &ep) const; 00064 00065 // See base class for documentation. 00066 rpt_value::pointer run(const rpt_expr::pointer &ep, size_t argc, 00067 rpt_value::pointer *argv) const; 00068 00069 private: 00073 rpt_func_project_name(const rpt_func_project_name &); 00074 00078 rpt_func_project_name &operator=(const rpt_func_project_name &); 00079 }; 00080 00081 00087 class rpt_func_project_name_set: 00088 public rpt_func 00089 { 00090 public: 00094 virtual ~rpt_func_project_name_set(); 00095 00096 private: 00101 rpt_func_project_name_set(); 00102 00103 public: 00108 static rpt_func::pointer create(); 00109 00110 protected: 00111 // See base class for documentation. 00112 const char *name() const; 00113 00114 // See base class for documentation. 00115 bool optimizable() const; 00116 00117 // See base class for documentation. 00118 bool verify(const rpt_expr::pointer &ep) const; 00119 00120 // See base class for documentation. 00121 rpt_value::pointer run(const rpt_expr::pointer &ep, size_t argc, 00122 rpt_value::pointer *argv) const; 00123 00124 private: 00128 rpt_func_project_name_set(const rpt_func_project_name_set &); 00129 00133 rpt_func_project_name_set &operator=(const rpt_func_project_name_set &); 00134 }; 00135 00136 class change_identifier; // forward 00137 void report_parse_project_set(change_identifier &cid); 00138 00139 #endif // AEGIS_AER_FUNC_PROJECT_H