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

mode_clear.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/mode_clear.cc
 */

#ifndef COMMON_TAR_INPUT_MODE_CLEAR_H
#define COMMON_TAR_INPUT_MODE_CLEAR_H

#include <tar/input/filter.h>

/**
  * The tar_input_filter_mode_clear class is used to represent a filter
  * which clears bits in the file protection mode in tar archive file
  * headers.
  */
00033 class tar_input_filter_mode_clear:
    public tar_input_filter
{
public:
    /**
      * The destructor.
      */
    virtual ~tar_input_filter_mode_clear();

    /**
      * The constructor.
      *
      * \param deeper
      *     The input stream to apply the filter to.
      * \param bits
      *     The bits to be cleared.
      */
    tar_input_filter_mode_clear(tar_input *deeper, long bits);

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

private:
    /**
      * The bits instance variable is used to remember the bits to be
      * cleard from the file mode in each file header.
      */
00060     long bits;

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

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

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

#endif /* COMMON_TAR_INPUT_MODE_CLEAR_H */

Generated by  Doxygen 1.6.0   Back to index