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

user_number.h

/*
 *    tardy - a tar post-processor
 *    Copyright (C) 1998, 1999 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: interface definition for common/tar/input/user_number.cc
 */

#ifndef COMMON_TAR_INPUT_USER_NUMBER_H
#define COMMON_TAR_INPUT_USER_NUMBER_H

#include <tar/input/filter.h>

/**
  * The tar_input_filter_user_number class is used to represent a filter
  * which replaces the User ID in tar archive file headers.
  */
00032 class tar_input_filter_user_number:
    public tar_input_filter
{
public:
    /**
      * The destructor.
      */
    virtual ~tar_input_filter_user_number();

    /**
      * the constructor.
      *
      * \param deeper
      *     The input stream to be filtered.
      * \param uid
      *     The User ID to be inserted into each file header.
      */
    tar_input_filter_user_number(tar_input *deeper, long uid);

    // See base class for documentation.
    virtual int read_header(tar_header &);

private:
    /**
      * The uid instance variable is used to remember the User ID to be
      * inserted into each file header in the tar archive.
      */
00059     long uid;

    /**
      * The default constructor.  Do not use.
      */
    tar_input_filter_user_number();

    /**
      * The copy constructor.  Do not use.
      */
    tar_input_filter_user_number(const tar_input_filter_user_number &);

    /**
      * The assignment operator.  Do not use.
      */
    tar_input_filter_user_number &operator = (
      const tar_input_filter_user_number &);
};

#endif /* COMMON_TAR_INPUT_USER_NUMBER_H */

Generated by  Doxygen 1.6.0   Back to index