output_text_encode Class Reference

#include <text_encode.h>

Inheritance diagram for output_text_encode:

output List of all members.

Public Member Functions

virtual ~output_text_encode ()
 output_text_encode (const output_smart_pointer &deeper, bool use_dle=true, bool nul_guarantee=true)
void write_inner (const void *data, size_t length)
rcstring filename ()
void flush_inner ()
void utime (struct utimbuf &utb)

Private Member Functions

void line_character (unsigned char)
void write_one_line ()
 output_text_encode ()
 output_text_encode (const output_text_encode &)
output_text_encodeoperator= (const output_text_encode &)

Private Attributes

output_smart_pointer deeper
int line_number
unsigned address
int column
bool non_white
bool use_dle
bool nul_guarantee
rcstring_accumulator line_accumulator

Detailed Description

The output_text_encode class is used to represent a filter which translates Unix text files into UCSD p-System text files.

Definition at line 33 of file text_encode.h.


Constructor & Destructor Documentation

virtual output_text_encode::~output_text_encode (  )  [virtual]

The destructor.

output_text_encode::output_text_encode ( const output_smart_pointer deeper,
bool  use_dle = true,
bool  nul_guarantee = true 
)

The constructor.

Parameters:
deeper The destination for this filter to write the encoded data to.
use_dle wherther or not to use DLE space encoding
nul_guarantee whether or not to ensure there is always at least one NUL at the end of every 1KB text block.

output_text_encode::output_text_encode (  )  [private]

The default constructor. Do not use.

output_text_encode::output_text_encode ( const output_text_encode  )  [private]

The copy constructor. Do not use.


Member Function Documentation

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

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

Implements output.

rcstring output_text_encode::filename (  )  [virtual]

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

Implements output.

void output_text_encode::flush_inner (  )  [virtual]

The flush_inner method is called by the flush method once all the data has been written.

Implements output.

void output_text_encode::utime ( struct utimbuf &  utb  )  [virtual]

The utime method mau be used to change the access and modification times of this file.

Parameters:
utb The buffer containing the times to set.

Implements output.

void output_text_encode::line_character ( unsigned  char  )  [private]

void output_text_encode::write_one_line (  )  [private]

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

The assignment operator. Do not use.


Member Data Documentation

output_smart_pointer output_text_encode::deeper [private]

The deeper instance variable is used to remember the destination for this filter to write the encoded data to.

Definition at line 73 of file text_encode.h.

int output_text_encode::line_number [private]

Definition at line 75 of file text_encode.h.

unsigned output_text_encode::address [private]

Definition at line 77 of file text_encode.h.

int output_text_encode::column [private]

Definition at line 79 of file text_encode.h.

bool output_text_encode::non_white [private]

Definition at line 81 of file text_encode.h.

bool output_text_encode::use_dle [private]

The use_dle instance variable is used to remember whether or not use use DLE space encoding.

Definition at line 87 of file text_encode.h.

bool output_text_encode::nul_guarantee [private]

The nul_guarantee instance variable is used to remember whether or not to ensure there is always at least one NUL at the end of every 1KB text block.

Definition at line 94 of file text_encode.h.

rcstring_accumulator output_text_encode::line_accumulator [private]

The line_accumulator instance variable is used to remember the current line under construction.

Definition at line 100 of file text_encode.h.


The documentation for this class was generated from the following file:
Generated on Sun Feb 25 01:27:13 2007 for UCSDp-SystemCrossCompiler by  doxygen 1.5.1