00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 2004-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_PROJECT_IDENTIFI_SUB_H 00021 #define LIBAEGIS_PROJECT_IDENTIFI_SUB_H 00022 00023 #include <libaegis/user.h> 00024 00025 struct project_ty; // forward 00026 struct string_ty; // forward 00027 00032 class project_identifier_subset 00033 { 00034 public: 00038 virtual ~project_identifier_subset(); 00039 00043 project_identifier_subset(); 00044 00045 typedef void (*usage_t)(void); 00046 00056 virtual void command_line_parse(usage_t) = 0; 00057 00063 virtual void command_line_check(usage_t) = 0; 00064 00069 virtual project_ty *get_pp() = 0; 00070 00075 virtual user_ty::pointer get_up() = 0; 00076 00085 virtual void set_user_by_name(nstring &login) = 0; 00086 00094 virtual void parse_change_with_branch(long &change_number, 00095 usage_t usage) = 0; 00096 00105 virtual void parse_change_with_branch(long &change_number, 00106 const char *&branch_arg, usage_t usage) = 0; 00107 00114 virtual bool set() const = 0; 00115 00116 private: 00120 project_identifier_subset(const project_identifier_subset &); 00121 00125 project_identifier_subset &operator=(const project_identifier_subset &); 00126 }; 00127 00128 #endif // LIBAEGIS_PROJECT_IDENTIFI_SUB_H