QuitStatement Struct Reference
A sed quit statement, usually specified like this:
More...
#include <muSED.h>
List of all members.
Public Member Functions |
LineRangeActivationState | activationState () |
bool | active (ScriptRuntimeContext *context, Statement *statement) |
| return true if the patternBuffer, line number, and isLast_ flag in the specified context match the requirements of the filters.
|
void | adoptChild (Statement *newbie) |
| Take ownership of a new statement and schedule it for delete when *this is destructed.
|
void | clear () |
std::string | debugPrefix () const |
virtual std::string | debugString () const |
virtual std::string | debugStringPrefix () const |
bool | execute (ScriptRuntimeContext *context) |
| Invoke context->Print().
|
| QuitStatement (Statement *parent, int fc, Filter const &f1, Filter const &f2, bool filtersInverted, bool printCurrent) |
void | setActivationState (LineRangeActivationState newState) |
virtual | ~QuitStatement () |
Static Public Member Functions |
static void | debugPrint (Statement *p) |
template<class StringIterator1 , class StringIterator2 , class CompiledScript > |
static Statement * | parse (Statement *parent, int filterCount, Filter const &f1, Filter const &f2, bool inverted, StringIterator1 &firstChar, StringIterator2 const &lastChar, size_t line, CompiledScript &script) |
Public Attributes |
ActivationMap | childStatementActivationMap_ |
std::list< Statement * > | childStatements_ |
Filter | filter1_ |
Filter | filter2_ |
int | filters_ |
bool | inverted_ |
Statement * | parentStatement_ |
bool | printCurrent_ |
| print current line before ending script
|
Detailed Description
A sed quit statement, usually specified like this:
Terminate the execution of the entire script on all of it's input. The 'q' command, prints the current line and stops the script but the 'Q' command does not print the current line before stopping.
Definition at line 1263 of file muSED.h.
Constructor & Destructor Documentation
Member Function Documentation
return true if the patternBuffer, line number, and isLast_ flag in the specified context match the requirements of the filters.
- Parameters:
-
[in] | context | The runtime context in which to determine if the current statement, as defined both by the statement pointer and by line number information in the context, is active. |
[in] | statement | The statement about to be executed on the current line of input as defined by the line number and is last flag in the context. |
Note that the runtime context keeps track of the activation status of statements, by the statement pointer, based on the filters in a filterable statement. Whenever you have a range filter, the activate function manages the activation state.
Definition at line 316 of file muSED.cxx.
void adoptChild |
( |
Statement * |
newbie |
) |
[inherited] |
Take ownership of a new statement and schedule it for delete when *this is destructed.
Definition at line 444 of file muSED.h.
void clear |
( |
|
) |
[inherited] |
std::string debugPrefix |
( |
|
) |
const [inherited] |
static void debugPrint |
( |
Statement * |
p |
) |
[static, inherited] |
std::string debugString |
( |
|
) |
const [virtual] |
std::string debugStringPrefix |
( |
|
) |
const [virtual, inherited] |
static Statement* parse |
( |
Statement * |
parent, |
|
|
int |
filterCount, |
|
|
Filter const & |
f1, |
|
|
Filter const & |
f2, |
|
|
bool |
inverted, |
|
|
StringIterator1 & |
firstChar, |
|
|
StringIterator2 const & |
lastChar, |
|
|
size_t |
line, |
|
|
CompiledScript & |
script | |
|
) |
| | [static] |
Member Data Documentation
print current line before ending script
Definition at line 1281 of file muSED.h.
The documentation for this struct was generated from the following files: