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

user_name.h

/*
 *    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: interface definition for common/tar/input/user_name.cc
 */

#ifndef COMMON_TAR_INPUT_USER_NAME_H
#define COMMON_TAR_INPUT_USER_NAME_H

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

/**
  * The tar_input_filter_user_name class is used to represent a filter
  * which replaces the user name in tar archive file headers.
  */
00033 class tar_input_filter_user_name:
    public tar_input_filter
{
public:
    /**
      * The destructor.
      */
    virtual ~tar_input_filter_user_name();

    /**
      * The constructor.
      *
      * \param deeper
      *     The input stream to be filtered.
      * \param name
      *     The use name to be inserted into file headers.
      */
    tar_input_filter_user_name(tar_input *deeper, const rcstring &name);

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

private:
    /**
      * The name instance variable is used to remember the user name to
      * be inserted into each file header in the tare archive.
      */
00060     rcstring name;

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

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

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

#endif /* COMMON_TAR_INPUT_USER_NAME_H */

Generated by  Doxygen 1.6.0   Back to index