genautoui

Index Home MAE > MAE Architecture > MAE Utilities > genautoui

genautoui

This command deprecated.  Use genmae instead.  This command creates a .ui file for genformcode that modifies source files for MAE messaging. After running, it creates a genauto.ui file in the current directory.

The command syntax is:

genautoui filename(s) [-msg] [-autocpp]

where,

Option

Description

filename

A source code file that has CBfn markers that genautoui reads.

-msg

After generating/updating genauto.ui file, run (if changed): genformcode msg genauto.ui msgChannel.cpp

-autocpp

After generating/updating genauto.ui file, run (if changed): genformcode autocpp genauto.ui msgChannel.cpp


Source Code Markers

genautoui looks for the keyword CBfn in a C or C++ command, which is then interprets as:

// CBfn: callbackfnmame()

genautoui then looks for a UserDevice method call immediately preceding the market line from which it extracts the action keyword.  The action keyword and callback function name are used to formulate a message processing if() clause in the handleMessage() method in the msg*.cpp file via genformcode.