Logo Search packages:      
Sourcecode: tardy version File versions  Download package

filter.cc

/*
 *    tardy - a tar post-processor
 *    Copyright (C) 1998, 1999, 2002 Peter Miller;
 *    All rights reserved.
 *
 *    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 2 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, write to the Free Software
 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
 *
 * MANIFEST: functions to manipulate tar input filtering base class
 */

#include <ac/ctype.h>
#include <ac/string.h>

#include <mem.h>
#include <tar/input/filter.h>


00030 tar_input_filter::~tar_input_filter()
{
    delete fp;
}


00036 tar_input_filter::tar_input_filter(tar_input *arg) :
    fp(arg)
{
}


int
00043 tar_input_filter::read_data(void *buffer, int maxlen)
{
    return fp->read_data(buffer, maxlen);
}


void
00050 tar_input_filter::read_data_padding()
{
    fp->read_data_padding();
}


int
00057 tar_input_filter::read_header(tar_header &h)
{
    return fp->read_header(h);
}


void
00064 tar_input_filter::read_header_padding()
{
    fp->read_header_padding();
}


const char *
00071 tar_input_filter::filename()
    const
{
    return fp->filename();
}

Generated by  Doxygen 1.6.0   Back to index