// // aegis - project change supervisor // Copyright (C) 2014 Peter Miller // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or (at // your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // General Public License for more details. // // You should have received a copy of the GNU General Public License along // with this program. If not, see . // #include oformat_path_prefix::~oformat_path_prefix() { } oformat_path_prefix::oformat_path_prefix( const oformat::pointer &a_deeper, const nstring &a_prefix ) : oformat(output::pointer(), -1), deeper(a_deeper), prefix(a_prefix + "/") { } oformat_path_prefix::pointer oformat_path_prefix::create(const oformat::pointer &a_deeper, const nstring &a_prefix) { return pointer(new oformat_path_prefix(a_deeper, a_prefix)); } void oformat_path_prefix::emit_project_name(const nstring &name) { deeper->emit_project_name(name); } void oformat_path_prefix::emit_change_number(const nstring &name) { deeper->emit_change_number(name); } void oformat_path_prefix::emit_change_set_meta_data(cstate_ty *csp) { deeper->emit_change_set_meta_data(csp); } void oformat_path_prefix::emit_patch(const nstring &file_name, const input_pointer &value) { deeper->emit_patch(prefix + file_name, value); } void oformat_path_prefix::emit_source(const nstring &file_name, const input_pointer &value, bool executable) { deeper->emit_source(prefix + file_name, value, executable); } // vim: set ts=8 sw=4 et :