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_BRANCH_H 00021 #define LIBAEGIS_PROJECT_IDENTIFI_SUB_BRANCH_H 00022 00023 #include <libaegis/project/identifi_sub.h> 00024 00030 class project_identifier_subset_branch: 00031 public project_identifier_subset 00032 { 00033 public: 00037 virtual ~project_identifier_subset_branch(); 00038 00042 project_identifier_subset_branch(project_identifier_subset &); 00043 00044 // See base class for documentation. 00045 void command_line_parse(usage_t); 00046 00047 // See base class for documentation. 00048 void command_line_check(usage_t); 00049 00050 // See base class for documentation. 00051 project_ty* get_pp(); 00052 00053 user_ty::pointer get_up(); 00054 00063 void set_user_by_name(nstring &login); 00064 00065 // See base class for documentation. 00066 void parse_change_with_branch(long &change_number, usage_t usage); 00067 00068 // See base class for documentation. 00069 void parse_change_with_branch(long &change_number, const char *&branch, 00070 usage_t usage); 00071 00072 // See base class for documentation. 00073 bool set() const; 00074 00075 private: 00080 project_identifier_subset &deeper; 00081 00086 project_ty *pp_with_branch; 00087 00092 const char *branch; 00093 00098 bool grandparent; 00099 00104 bool trunk; 00105 00109 project_identifier_subset_branch(); 00110 00114 project_identifier_subset_branch(const project_identifier_subset_branch &); 00115 00119 project_identifier_subset_branch &operator=( 00120 const project_identifier_subset_branch &); 00121 }; 00122 00123 #endif // LIBAEGIS_PROJECT_IDENTIFI_SUB_BRANCH_H