00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 1999, 2002, 2005, 2006, 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 AEDIST_OUTPUT_CPIO_H 00021 #define AEDIST_OUTPUT_CPIO_H 00022 00023 #include <common/ac/time.h> 00024 00025 #include <libaegis/output.h> 00026 00027 struct string_ty; // forward 00028 00033 class output_cpio: 00034 public output 00035 { 00036 public: 00040 virtual ~output_cpio(); 00041 00051 output_cpio(const output::pointer &deeper, time_t mtime); 00052 00062 output::pointer child(const nstring &name, long len); 00063 00064 protected: 00065 // See base class for documentation. 00066 nstring filename() const ; 00067 00068 // See base class for documentation. 00069 const char *type_name() const; 00070 00071 // See base class for documentation. 00072 long ftell_inner() const; 00073 00074 // See base class for documentation. 00075 void write_inner(const void *data, size_t length); 00076 00077 // See base class for documentation. 00078 void end_of_line_inner(); 00079 00080 private: 00085 output::pointer deeper; 00086 00091 time_t mtime; 00092 00096 output_cpio(); 00097 00101 output_cpio(const output_cpio &); 00102 00106 output_cpio &operator=(const output_cpio &); 00107 }; 00108 00109 #endif // AEDIST_OUTPUT_CPIO_H