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 () const
const char * type_name () const
long ftell_inner () const
void write_inner (const void *data, size_t length)
void end_of_line_inner ()
void flush_inner ()

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 34 of file cpio_child2.h.


Constructor & Destructor Documentation

virtual output_cpio_child2::~output_cpio_child2 (  )  [virtual]

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:
deeper The the underlying output to which the CPIO archive is to be written.
name The name of the archive member.

output_cpio_child2::output_cpio_child2 (  )  [private]

The default constructor. Do not use.

output_cpio_child2::output_cpio_child2 ( const output_cpio_child2  )  [private]

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:
deeper The the underlying output to which the CPIO archive is to be written.
name The name of the archive member.

nstring output_cpio_child2::filename (  )  const [protected, virtual]

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

Implements output.

const char* output_cpio_child2::type_name (  )  const [protected, virtual]

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

Implements output.

long output_cpio_child2::ftell_inner (  )  const [protected, virtual]

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

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.

void output_cpio_child2::end_of_line_inner (  )  [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.

void output_cpio_child2::flush_inner (  )  [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.

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

The assignment operator. Do not use.


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 95 of file cpio_child2.h.

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

Definition at line 101 of file cpio_child2.h.

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 107 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 113 of file cpio_child2.h.


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

Generated on Wed Mar 12 23:37:40 2008 for Aegis by  doxygen 1.5.5