nis-util
1.0.D108
|
#include <file.h>
Public Member Functions | |
virtual | ~input_file () |
Static Public Member Functions | |
static input::pointer | create (const rcstring &filename) |
Private Member Functions | |
input_file (const rcstring &filename) | |
size_t | read_inner (source_location &data_locn, void *data, size_t data_size) |
input_file () | |
input_file (const input_file &rhs) | |
input_file & | operator= (const input_file &rhs) |
Private Attributes | |
rcstring | filename |
int | line_number |
int | fd |
The input_file class is used to represent the processing required to read input from a file.
input_file::~input_file | ( | ) | [virtual] |
input_file::input_file | ( | const rcstring & | filename | ) | [private] |
input_file::input_file | ( | ) | [private] |
The default constructor. Do not use.
input_file::input_file | ( | const input_file & | rhs | ) | [private] |
The copy constructor. Do not use.
rhs | The right hand side of the initialization. |
input::pointer input_file::create | ( | const rcstring & | filename | ) | [static] |
input_file& input_file::operator= | ( | const input_file & | rhs | ) | [private] |
The assignment operator. Do not use.
rhs | The right hand side of the assignment. |
size_t input_file::read_inner | ( | source_location & | data_locn, |
void * | data, | ||
size_t | data_size | ||
) | [private, 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.
int input_file::fd [private] |
rcstring input_file::filename [private] |
int input_file::line_number [private] |
The line_number instance variable is used to remember the line number we are up to, relative to the read_inner method.