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

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

#ifndef COMMON_TAR_INPUT_MODE_SET_H
#define COMMON_TAR_INPUT_MODE_SET_H

#include <tar/input/filter.h>

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

    /**
      * The constructor.
      *
      * \param deeper
      *     The input stream to apoply the filter to.
      * \param bits
      *     The bits to be set in the file mode.
      */
    tar_input_filter_mode_set(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 which bits are
      * to be set in each file header in the tar archive.
      */
00060     long bits;

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

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

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

#endif /* COMMON_TAR_INPUT_MODE_SET_H */

Generated by  Doxygen 1.6.0   Back to index