libbbb  1.2.1
Groups common code used in some applications and libraries.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
bbb::RexScriptBlock Class Referenceabstract

A block of file content. More...

#include <rexscriptblock.h>

+ Inheritance diagram for bbb::RexScriptBlock:

Public Member Functions

 RexScriptBlock (RexScript *rex)
 constructor
 
virtual ~RexScriptBlock (void)
 destructor;
 
virtual bool appendLine (const QString &s_line)=0
 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...
 
- 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
 
List2Denext (void) const
 return next item
 
List2Deprev (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

RexScriptrex_
 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 List2Deit_N
 pointer to next element in list
 
class List2Deit_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
 

Detailed Description

A block of file content.

Member Function Documentation

virtual bool bbb::RexScriptBlock::blockEnd ( RexScript rexs)
inlinevirtual

informed that block ended

Returns
true if no error was found, false to breat execution

Reimplemented in RexSBLoop, RexSBIf, and bbb::RexSBCallBack.


The documentation for this class was generated from the following files: