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

#include <cpio_child2.h>

Inheritance diagram for output_cpio_child2:
output

Public Member Functions

virtual ~output_cpio_child2 ()

Static Public Member Functions

static pointer create (const output::pointer &deeper, const nstring &name, time_t mtime)

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)
void flush_inner (void)

Private Member Functions

 output_cpio_child2 (const output::pointer &deeper, const nstring &name, time_t mtime)
 output_cpio_child2 ()
 output_cpio_child2 (const output_cpio_child2 &)
output_cpio_child2operator= (const output_cpio_child2 &)

Private Attributes

output::pointer deeper
nstring name
output_memory::mpointer buffer
time_t mtime

Detailed Description

The output_cpio_child2 class is used to represent a CPIO archive member of unknown length. It will be cached in memory until the length is known.

Definition at line 33 of file cpio_child2.h.


Constructor & Destructor Documentation

The destructor.

output_cpio_child2::output_cpio_child2 ( const output::pointer deeper,
const nstring name,
time_t  mtime 
) [private]

The constructor. It is private on purpose, use the "create" class method instead.

Parameters:
deeperThe the underlying output to which the CPIO archive is to be written.
nameThe name of the archive member.
mtimeThe time to insert into meta data.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

static pointer output_cpio_child2::create ( const output::pointer deeper,
const nstring name,
time_t  mtime 
) [static]

The create class method is used to create new dynamically allocated instances of this class.

Parameters:
deeperThe the underlying output to which the CPIO archive is to be written.
nameThe name of the archive member.
mtimeThe time to insert into the meta data.
void output_cpio_child2::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_child2::filename ( void  ) const [protected, virtual]

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

Implements output.

void output_cpio_child2::flush_inner ( void  ) [protected, virtual]

The flush_inner method is called by the flush method once all the data has been written. The default implementation does nothing.

Reimplemented from output.

long output_cpio_child2::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_child2& output_cpio_child2::operator= ( const output_cpio_child2 ) [private]

The assignment operator. Do not use.

nstring output_cpio_child2::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_child2::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 buffer instance variable is used to remember the data written to the archive member, so that we can obtain its length.

Reimplemented from output.

Definition at line 110 of file cpio_child2.h.

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

Definition at line 98 of file cpio_child2.h.

time_t output_cpio_child2::mtime [private]

The mtime instance variable is used to remember the time stamp to attach to the file in the archive.

Definition at line 116 of file cpio_child2.h.

The name instance variable is used to remember the name of the archive member.

Definition at line 104 of file cpio_child2.h.


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