Aegis  4.25.D505
/home/archives/aegis/branch.4/branch.25/delta28933.505/libaegis/output/cpio.h
Go to the documentation of this file.
00001 //
00002 // aegis - project change supervisor
00003 // Copyright (C) 1999, 2002, 2005, 2006, 2008, 2011, 2012 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 (at
00008 // 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 GNU
00013 // 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 <http://www.gnu.org/licenses/>.
00017 //
00018 
00019 #ifndef AEDIST_OUTPUT_CPIO_H
00020 #define AEDIST_OUTPUT_CPIO_H
00021 
00022 #include <common/ac/time.h>
00023 
00024 #include <libaegis/output.h>
00025 
00026 struct string_ty; // forward
00027 
00032 class output_cpio:
00033     public output
00034 {
00035 public:
00039     virtual ~output_cpio();
00040 
00050     output_cpio(const output::pointer &deeper, time_t mtime);
00051 
00061     output::pointer child(const nstring &name, long len);
00062 
00063 protected:
00064     // See base class for documentation.
00065     nstring filename(void) const;
00066 
00067     // See base class for documentation.
00068     nstring type_name(void) const;
00069 
00070     // See base class for documentation.
00071     long ftell_inner(void) const;
00072 
00073     // See base class for documentation.
00074     void write_inner(const void *data, size_t length);
00075 
00076     // See base class for documentation.
00077     void end_of_line_inner(void);
00078 
00079 private:
00084     output::pointer deeper;
00085 
00090     time_t mtime;
00091 
00095     output_cpio();
00096 
00100     output_cpio(const output_cpio &);
00101 
00105     output_cpio &operator=(const output_cpio &);
00106 };
00107 
00108 #endif // AEDIST_OUTPUT_CPIO_H
00109 // vim: set ts=8 sw=4 et :