-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsedScript.h
More file actions
39 lines (29 loc) · 846 Bytes
/
sedScript.h
File metadata and controls
39 lines (29 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Filename: sedScript.h
// Created by: frang (03June04)
//
////////////////////////////////////////////////////////////////////
#ifndef SEDSCRIPT_H
#define SEDSCRIPT_H
#include "oconfig.h"
#include <vector>
class SedCommand;
class SedContext;
///////////////////////////////////////////////////////////////////
// Class : SedScript
// Description : This is a complete sed script: a linear list of
// commands that are to be applied for each line read
// from input.
////////////////////////////////////////////////////////////////////
class SedScript {
public:
SedScript();
~SedScript();
bool add_line(const string &line);
bool run(SedContext &context);
public:
bool _quit;
typedef vector<SedCommand *> Commands;
Commands _commands;
Commands::const_iterator _next_command;
};
#endif