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

filename.h

//
//    srecord - manipulate eprom load files
//    Copyright (C) 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/filename.cc
//

#ifndef COMMON_TAR_INPUT_FILENAME_H
#define COMMON_TAR_INPUT_FILENAME_H

#pragma interface "tar_input_filename"

#include <file/input.h>
#include <tar/input.h>

/**
  * The tar_input_filename class is used to represent tar input from a
  * single file.
  */
00035 class tar_input_filename:
      public tar_input
{
public:
      /**
        * The destructor.
        */
      virtual ~tar_input_filename();

      /**
        * The constructor.
        */
      tar_input_filename(const rcstring &);

      // see base class for documentation
      int read_data(void *, int);

      // see base class for documentation
      int read_header(tar_header &);

      // see base class for documentation
      const char *filename() const;

private:
      /**
        * The `name' instance variable is used to remember the name
        * of the file being read.
        */
00063       rcstring name;

      /**
        * The `length' instance variable is used to remember how many
        * bytes of input are to be read from the file.
        */
00069       int length;

      /**
        * The `source' instance variable is used to remember the input
        * file state (position, file descriptor, etc).
        */
00075       file_input *source;

      /**
        * The default constructor.
        */
      tar_input_filename();

      /**
        * The copy constructor.
        */
      tar_input_filename(const tar_input_filename &);

      /**
        * The assignment operator.
        */
      tar_input_filename &operator=(const tar_input_filename &);
};

#endif // COMMON_TAR_INPUT_FILENAME_H

Generated by  Doxygen 1.6.0   Back to index