|
Aegis
4.25.D505
|
#include <context.h>
Public Member Functions | |
| ~patch_context_ty () | |
| patch_context_ty (input &arg) | |
| string_ty * | getline (int n) |
| void | discard (int n) |
| nstring | get_file_name () |
Private Member Functions | |
| patch_context_ty () | |
| patch_context_ty (const patch_context_ty &) | |
| patch_context_ty & | operator= (const patch_context_ty &) |
Private Attributes | |
| input | in |
| string_list_ty | buffer |
The patch_context_ty class is used to represent a line buffered input stream, with the ability to fetch individual lines of input.
The destructor.
| patch_context_ty::patch_context_ty | ( | input & | arg | ) |
The constructor.
| arg | The input stream to read and buffer. |
| patch_context_ty::patch_context_ty | ( | ) | [private] |
The default constructor. Do not use.
| patch_context_ty::patch_context_ty | ( | const patch_context_ty & | ) | [private] |
The copy constructor. Do not use.
| void patch_context_ty::discard | ( | int | n | ) |
The discard method is used to consume some lines of inout.
| n | The number of lines to discard from the front of the buffer. |
| nstring patch_context_ty::get_file_name | ( | ) | [inline] |
| string_ty* patch_context_ty::getline | ( | int | n | ) |
The getline method is used to grab the line with the given numkber (zero based).
| n | The line number to fatch (zero based), relative to the current position. |
| patch_context_ty& patch_context_ty::operator= | ( | const patch_context_ty & | ) | [private] |
The assignment operator. Do not use.
string_list_ty patch_context_ty::buffer [private] |
input patch_context_ty::in [private] |
1.7.6.1