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

#include <cpio.h>

Inheritance diagram for output_cpio:
output

Public Member Functions

virtual ~output_cpio ()
 output_cpio (const output::pointer &deeper, time_t mtime)
output::pointer child (const nstring &name, long len)

Protected Member Functions

nstring filename (void) const
nstring type_name (void) const
long ftell_inner (void) const
void write_inner (const void *data, size_t length)
void end_of_line_inner (void)

Private Member Functions

 output_cpio ()
 output_cpio (const output_cpio &)
output_cpiooperator= (const output_cpio &)

Private Attributes

output::pointer deeper
time_t mtime

Detailed Description

The output_cpio class is used to represent a container class which produces cpio(7) fomatted output streams.

Definition at line 32 of file cpio.h.


Constructor & Destructor Documentation

virtual output_cpio::~output_cpio ( ) [virtual]

The destructor.

output_cpio::output_cpio ( const output::pointer deeper,
time_t  mtime 
)

The constructor.

Parameters:
deeperThe underlying output to which the CPIO archive is to be written.
mtimeThe time stamp to attach to all archive members
output_cpio::output_cpio ( ) [private]

The default constructor.

output_cpio::output_cpio ( const output_cpio ) [private]

The copy constructor. Do not use.


Member Function Documentation

output::pointer output_cpio::child ( const nstring name,
long  len 
)

The child method is used to create a child archive.

Parameters:
nameThe name of the file in the archive.
lenThe length of the archive. Use -1 if you don't know and it will be stached into memory until the length is known.
void output_cpio::end_of_line_inner ( void  ) [protected, virtual]

The end_of_line_inner method is used to ensure that the current output position is at the beginning of a line, without taking the buffering into account.

Implements output.

nstring output_cpio::filename ( void  ) const [protected, virtual]

The filename method is used to obtain the filename of this output.

Implements output.

long output_cpio::ftell_inner ( void  ) const [protected, virtual]

The ftell_inner method is used to determine the current file position, without taking the buffering into account.

Implements output.

output_cpio& output_cpio::operator= ( const output_cpio ) [private]

The assignment operator. Do not use.

nstring output_cpio::type_name ( void  ) const [protected, virtual]

The type_name method is used to determine the name of this output device or file or type.

Implements output.

void output_cpio::write_inner ( const void *  data,
size_t  length 
) [protected, virtual]

The write_inner method is used write data to the output, without taking the buffering into account.

Implements output.


Field Documentation

The deeper instance variable is used to remember the underlying output to which the CPIO archive is to be written.

Definition at line 84 of file cpio.h.

time_t output_cpio::mtime [private]

The mtime instance variable is used to remember the time to attach to all archive members.

Definition at line 90 of file cpio.h.


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