girtobac
0.4
Create FB Headers from GObject Introspection *.gir files
|
A simple fifo stack list. More...
Public Member Functions | |
SUB | add (BYVAL_AS_CONST_gchar_PTR) |
Add entries to Stack data. More... | |
FUNCTION_AS_STRING | nxt () |
The text of the next entry. More... | |
FUNCTION_AS_INTEGER | find (BYVAL_AS_CONST_gchar_PTR T) |
Search the stack for a text. More... | |
Public Attributes | |
STRING | Dat = ";" |
The buffer for entries, ; separated. More... | |
INTEGER | A = 1 |
Start position of next entry (-1) More... | |
A simple fifo stack list.
This is a simple first in first out stack. It's used to store the symbols for the ordered part of the header (passX). The entries are separated by ; characters.
Definition at line 121 of file girtobac_RepData.bas.
SUB Stack::add | ( | BYVAL_AS_CONST_gchar_PTR | S | ) |
Add entries to Stack data.
S | The text to add |
This SUB gets called to add a word to the Stack. It adds the text and the separator character ';'. It's possible to add more than one word, but the text must not contain the separator character. Here it's used for symbol names (without white-spaces).
Definition at line 139 of file girtobac_RepData.bas.
FUNCTION_AS_STRING Stack::nxt | ( | ) |
The text of the next entry.
The stack is meant to add symbols in the required order (read from the configuration file) and retrieve the symbol names later on in the given order, each entry once. To retrieve the entries a second time the position counter needs to get re-initialized (A = 2).)
Definition at line 154 of file girtobac_RepData.bas.
FUNCTION_AS_INTEGER Stack::find | ( | BYVAL_AS_CONST_gchar_PTR | T | ) |
Search the stack for a text.
T | Text to search for |
This function is used to find a text in the text buffer. On found the text position gets returned (zero otherwise).)
Definition at line 168 of file girtobac_RepData.bas.
STRING Stack::Dat = ";" |
The buffer for entries, ; separated.
Definition at line 122 of file girtobac_RepData.bas.
INTEGER Stack::A = 1 |
Start position of next entry (-1)
Definition at line 123 of file girtobac_RepData.bas.