girtobac  0.4
Create FB Headers from GObject Introspection *.gir files
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
Stack Class Reference

A simple fifo stack list. More...

Collaboration diagram for Stack:

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...
 

Detailed Description

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.

Member Function Documentation

SUB Stack::add ( BYVAL_AS_CONST_gchar_PTR  S)

Add entries to Stack data.

Parameters
SThe 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.

Here is the call graph for this function:

FUNCTION_AS_STRING Stack::nxt ( )

The text of the next entry.

Returns
Retrieves 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.

Parameters
TText to search for
Returns
Text position in stack buffer (or zero)

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.

Here is the caller graph for this function:

Member Data Documentation

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.


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