Accumulates block content and delivers it. More...
#include <rexscriptblock.h>
Public Member Functions | |
RexSBCallBack (RexScript *rex, blockRoutine call_back, const QString &s_end="END") | |
constructor | |
virtual | ~RexSBCallBack (void) |
destructor; | |
virtual bool | appendLine (const QString &s_line) |
adds a line; returns true if line was added, false if block ended | |
virtual void | error (int line) |
helper for reporting errors from block | |
virtual bool | blockEnd (RexScript *rexs) |
informed that block ended More... | |
const QStringList & | content (void) const |
the list of lines | |
const Amorph & | userData (void) const |
user data | |
void | setUserData (void *p) |
change user data | |
void | setUserData (double d) |
change user data | |
void | setUserData (int i) |
change user data | |
Public Member Functions inherited from bbb::RexScriptBlock | |
RexScriptBlock (RexScript *rex) | |
constructor | |
virtual | ~RexScriptBlock (void) |
destructor; | |
Public Member Functions inherited from List2De | |
List2De () | |
constructor; creates a simple, hanging element | |
List2De (List2Dh *p_father) | |
constructor; appends this item to the chain managed by p_father | |
List2De * | next (void) const |
return next item | |
List2De * | prev (void) const |
return previous item | |
int | index (const List2Dh *p_father) const |
gets the index of a particular item inside the father | |
void | insAfter (List2Dh *p_father, class List2De *pNew) |
insert an item after this item | |
void | insBefore (List2Dh *p_father, class List2De *pNew) |
insert an item before this item | |
void | extract (List2Dh *p_father) |
extract this item from the chain | |
void | dbgDump (void) const |
print the content of this object to debug output | |
Protected Attributes | |
blockRoutine | kb_ |
to be called when the block ends | |
QString | s_end_ |
string to be matched to end the block | |
QStringList | sl_content_ |
the content of this block | |
Amorph | user_data_ |
user data | |
Protected Attributes inherited from bbb::RexScriptBlock | |
RexScript * | rex_ |
the parent script | |
int | file_idx_ |
index of the file that started the block | |
int | line_idx_ |
index of the line that started the block | |
Protected Attributes inherited from List2De | |
class List2De * | it_N |
pointer to next element in list | |
class List2De * | it_P |
pointer to previous element in list | |
Friends | |
class | bbb::RexScript |
Additional Inherited Members | |
Protected Member Functions inherited from List2De | |
void | setNext (class List2De *p_new) |
change internal next behind its back | |
void | setPrev (class List2De *p_new) |
change internal previous behind its back | |
Accumulates block content and delivers it.
|
virtual |
informed that block ended
Reimplemented from bbb::RexScriptBlock.