mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 04:32:33 -06:00
31 lines
835 B
C++
31 lines
835 B
C++
// Filename: sedContext.h
|
|
// Created by: drose (24Oct00)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef SEDCONTEXT_H
|
|
#define SEDCONTEXT_H
|
|
|
|
#include "ppremake.h"
|
|
|
|
///////////////////////////////////////////////////////////////////
|
|
// Class : SedContext
|
|
// Description : This contains the current context of the sed process
|
|
// as it is running: the pattern space, the hold space,
|
|
// and the current line numbers, etc. It is updated as
|
|
// each line is read in and as each command is executed.
|
|
////////////////////////////////////////////////////////////////////
|
|
class SedContext {
|
|
public:
|
|
SedContext(ostream &out);
|
|
|
|
int _line_number;
|
|
bool _is_last_line;
|
|
string _pattern_space;
|
|
string _hold_space;
|
|
bool _deleted;
|
|
|
|
ostream &_out;
|
|
};
|
|
|
|
#endif
|