nis-util
1.0.D108
|
#include <remove_escaped_newlines.h>
Public Member Functions | |
virtual | ~input_remove_escaped_newlines () |
input_remove_escaped_newlines & | operator= (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 |
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.
The destructor.
Definition at line 22 of file remove_escaped_newlines.cc.
input_remove_escaped_newlines::input_remove_escaped_newlines | ( | const input::pointer & | deeper | ) | [private] |
The constructor. It is private on purpose, use the create class method instead.
deeper | Where to get the input to be filtered. |
Definition at line 27 of file remove_escaped_newlines.cc.
The default constructor. Do not use.
input_remove_escaped_newlines::input_remove_escaped_newlines | ( | const input_remove_escaped_newlines & | rhs | ) | [private] |
The copy constructor. Do not use.
rhs | The right hand side of the initialization. |
input_remove_escaped_newlines::pointer input_remove_escaped_newlines::create | ( | const input::pointer & | deeper | ) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
deeper | Where to get the input to be filtered. |
Definition at line 36 of file remove_escaped_newlines.cc.
static pointer input_remove_escaped_newlines::create | ( | const input_remove_escaped_newlines & | rhs | ) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
rhs | The right hand side of the initialization. |
input_remove_escaped_newlines& input_remove_escaped_newlines::operator= | ( | const input_remove_escaped_newlines & | rhs | ) |
The assignment operator.
rhs | The 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.
data_locn | The location of the beginning of the returned data. It is the first argument because it's position is immediately before the returned data. |
data | pointer to the base of an array to receive the data |
data_size | the maximum number of bytes of data than can be received into the data array. |
Implements input.
Definition at line 43 of file remove_escaped_newlines.cc.
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.