Aegis  4.25.D505
Public Member Functions | Private Member Functions | Private Attributes
input_tar Class Reference

#include <tar.h>

Inheritance diagram for input_tar:
input_ty

Public Member Functions

virtual ~input_tar ()
 input_tar (input &deeper)
input child (nstring &archive_name, bool &executable)
nstring name ()
off_t length ()
ssize_t read_inner (void *data, size_t nbytes)
off_t ftell_inner ()

Private Member Functions

nstring read_data_as_string (size_t hsize)
void padding ()
 input_tar ()
 input_tar (const input_tar &arg)
input_taroperator= (const input_tar &arg)

Private Attributes

input deeper

Detailed Description

The input_tar class is used to represent a tar archive.

Definition at line 28 of file tar.h.


Constructor & Destructor Documentation

virtual input_tar::~input_tar ( ) [virtual]

The destructor.

input_tar::input_tar ( input deeper)

The constructor.

Parameters:
deeperthe data sourec for this filter.
input_tar::input_tar ( ) [private]

The default constructor.

input_tar::input_tar ( const input_tar arg) [private]

The copy constructor.


Member Function Documentation

input input_tar::child ( nstring archive_name,
bool &  executable 
)

The child method is used to obtain the next archive element.

Parameters:
archive_nameUse to return the name of the file in the archive to the caller.
executableUse to return the executability of the file to the caller.
Returns:
NULL at end of file, or a valid input instance to read the file contents the file contents from.
off_t input_tar::ftell_inner ( ) [virtual]

The ftell_inner method is used to determine the unbuffered current position within the input.

Implements input_ty.

off_t input_tar::length ( ) [virtual]

The length method is used to determine the length of the input. May return -1 if the length is unknown.

Implements input_ty.

nstring input_tar::name ( ) [virtual]

The name method is used to determine the name of the input.

Implements input_ty.

input_tar& input_tar::operator= ( const input_tar arg) [private]

The assignment operator.

void input_tar::padding ( ) [private]
nstring input_tar::read_data_as_string ( size_t  hsize) [private]
ssize_t input_tar::read_inner ( void *  data,
size_t  nbytes 
) [virtual]

The read_inner method is used to read unbuffered data from the given input stream. At most nbytes bytes will be read into data. The number of bytes actually read will be returned. At end-of-file, a value <= 0 will be returned, and data will be unchanged. All file read errors or format errors are fatal, and will cause the method to not return.

Parameters:
dataWhere to put the results of the read.
nbytesThe maximum number of bytes to read.
Returns:
The actual number of bytes read, or zero for end-of-file.

Implements input_ty.


Field Documentation

The depeer instance variable is used to remember the data source for this filter.

Definition at line 75 of file tar.h.


The documentation for this class was generated from the following file: