nis-util  1.0.D108
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
input_remove_escaped_newlines Class Reference

#include <remove_escaped_newlines.h>

Inheritance diagram for input_remove_escaped_newlines:
input

Public Member Functions

virtual ~input_remove_escaped_newlines ()
input_remove_escaped_newlinesoperator= (const input_remove_escaped_newlines &rhs)

Static Public Member Functions

static pointer create (const input::pointer &deeper)
static pointer create (const input_remove_escaped_newlines &rhs)

Protected Member Functions

size_t read_inner (source_location &data_locn, void *data, size_t data_size)

Private Member Functions

 input_remove_escaped_newlines (const input::pointer &deeper)
 input_remove_escaped_newlines ()
 input_remove_escaped_newlines (const input_remove_escaped_newlines &rhs)

Private Attributes

input::pointer deeper

Detailed Description

The input_remove_escaped_newlines class is used to represent the processing required to remove "\\\n" sequences from the input stream, while still reporting source file locations accurately.

Definition at line 29 of file remove_escaped_newlines.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 22 of file remove_escaped_newlines.cc.

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

Parameters:
deeperWhere to get the input to be filtered.

Definition at line 27 of file remove_escaped_newlines.cc.

The default constructor. Do not use.

The copy constructor. Do not use.

Parameters:
rhsThe right hand side of the initialization.

Member Function Documentation

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

Parameters:
deeperWhere to get the input to be filtered.

Definition at line 36 of file remove_escaped_newlines.cc.

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

Parameters:
rhsThe right hand side of the initialization.
input_remove_escaped_newlines& input_remove_escaped_newlines::operator= ( const input_remove_escaped_newlines rhs)

The assignment operator.

Parameters:
rhsThe right hand side of the assignment.
size_t input_remove_escaped_newlines::read_inner ( source_location data_locn,
void *  data,
size_t  data_size 
) [protected, virtual]

The read_inner method is called byu the underflow method to fill the buffer buf with more data.

Parameters:
data_locnThe location of the beginning of the returned data. It is the first argument because it's position is immediately before the returned data.
datapointer to the base of an array to receive the data
data_sizethe maximum number of bytes of data than can be received into the data array.
Returns:
The nunber of bytes read into data, or 0 at end of file. always <= data_size

Implements input.

Definition at line 43 of file remove_escaped_newlines.cc.


Field Documentation

The fubar instance variable is used to remember where to get the input to be filtered.

Definition at line 65 of file remove_escaped_newlines.h.


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