#include <cpio_child2.h>
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_child2 & | operator= (const output_cpio_child2 &) |
Private Attributes | |
output::pointer | deeper |
nstring | name |
output_memory::mpointer | buffer |
time_t | mtime |
Definition at line 34 of file cpio_child2.h.
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.
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.
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.
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] |
const char* output_cpio_child2::type_name | ( | ) | const [protected, virtual] |
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] |
void output_cpio_child2::end_of_line_inner | ( | ) | [protected, virtual] |
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.
output::pointer output_cpio_child2::deeper [private] |
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.
nstring output_cpio_child2::name [private] |
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.