This documenta- tion describes the current state of development.
Note that interfaces and functionality may still change.

Prokee Modules:
  A
  B
  C
  D
  E
  F
  G
  I
  L
  M
  N
  O
  P
  R
  S
  T
  U
  W

     open all    |    close all

GUI Elements:
  B
  C
  I
  M
  P
  R
  S
  T

     open all    |    close all

GUI Interactions:
  B
  F
  H
  S

     open all    |    close all

GUI Layouts:
  L

     open all    |    close all

Games/Demos:
  M

     open all    |    close all

Third Party Libraries:
  P
  F
  Z

     open all    |    close all

Information about this Website / Informationen zu dieser Webseite:
In case of any questions, or comments, please feel free to contact me via email at apoll500@gmail.com.

Module bmc_extract [Version: v01]

This documentation describes the Prokee module interface.


Static Methods:
reset
int bmc_extract::reset(const char *target_filename)
extract
int bmc_extract::extract(const char *source_filename,const char *target_filename)
extract_file
int bmc_extract::extract_file(const char *source_filename,const char *target_filename)

Motivation

In some cases it is more convenient to put DEF-Blocks (for bmc) directly into source files. When writing DEF-Blocks within a C/C++ file, the blocks have to be put inside of C/C++-comments.

Because bmc can not read DEF-Blocks directly from a C/C++ source file, we provide the following work-around.
This module copies all DEF-blocks from inside of special comments of C/C++ files (or other source files) into an aditional file which then can be interpreted by bmc. Actually the module does not only copy DEF-blocks (which would require parsing them), but copies all the content from within special comments. The special comments are C-block-comments marked with the word 'bmc' in the first line, as described below.

bmc Comments


The red marked part will be copied.
The ... in the example above stand for none or any number of stars and spaces.

Syntax specfication: '/' '*' { {' '} {'*'} } 'b' 'm' 'c' < content > '*' '/'

Blöcke des Quellcodes exportieren:

1) Den nachfolgenden C/C++ Codeblock einbinden:

CODE=?\n

oder:
CODE=?;

Das Kommando muss entweder mit ';' oder mit einem Zeilenumbruch '\n' enden.

2) Einen oder mehrere (bis zu 9) nachfolgende C/C++ Codeblöcke einbinden:

CODE=?n

wobei n ∈{1,2,...,9}

3) Einen zusätzlichen Codeblock benennen und einbinden:

CODE=?X

wobei X ∈{A,B,...,Z}

4) Einen zusätzlichen benannten Codeblock einbinden (hier für X:=A):

CODE2="@CODE_A";

oder (zusätzlich eine eindeutige id vergeben, falls mehrere benannte zus. Blöcke unter einer Funktion/Methode eingebunden werden sollen)
CODE2
{
    "@CODE_A";
    id="1";
}


Static Methods

   reset


Resets the target file. This discardes all contents of the target file.

Signature:
int bmc_extract::reset(const char *target_filename)

Parameters:
Type Name Direction Description
const char *target_filename[IN]Filename of the target file.

Return value:
unspecified

Code: toggle

   extract


Extracts bmc-documentation from a source file and appends it to another file.

Signature:
int bmc_extract::extract(const char *source_filename,const char *target_filename)

Parameters:
Type Name Direction Description
const char *source_filename[IN]Filename of the source file.
const char *target_filename[IN]Filename of the target file.

Return value:
unspecified

Remarks:
This method allows source_filename to be a path to a directory. If so, the method searches through all files in this directory and all its subdirectories.

Code: toggle

   extract_file


Extracts bmc-documentation from a source file and appends it to another file.

Signature:
int bmc_extract::extract_file(const char *source_filename,const char *target_filename)

Parameters:
Type Name Direction Description
const char *source_filename[IN]Filename of the source file.
const char *target_filename[IN]Filename of the target file.

Return value:
unspecified

Code: toggle


Copyright © 2017 - 2019 by Andreas Pollhammer