| GirToBac 0.0 Create FB Headers from GObject Introspection *.gir files

- Main Page
- Tutorial
- Data Structures
- Files

- Data Structures
- Data Structure Index
- Data Fields

All Data Structures Files Functions Variables Enumerations Macros Pages
Private Member Functions | Private Attributes
Stack Class Reference

A simple fifo stack list. More...

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

## Private Attributes

STRING | Dat = ";"
| The buffer for entries, ; separated.
INTEGER | A = 1
| Start position of next entry (-1)

## 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 add | ( | BYVAL_AS_CONST_gchar_PTR | S) |  |

private

Add entries to Stack data.

Parameters

  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 nxt | ( | ) |  |

private

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 find | ( | BYVAL_AS_CONST_gchar_PTR | T) |  |

private

Search the stack for a text.

Parameters

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

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

- GirToBac_RepData.bas