Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
The Message Log Utility

This example will demonstrate the construction and use of the message log utility.

Within the APG applications and objects there are many times the need to maintain a log of messages. This object is a simple, but consistent method for logging multiple messages, whether error messages or warning messages or otherwise, with an iterator for retrieving them.

See vUtilPrintMsgs() for a utility that will display all messages in a message log object.

Application requirements.

  • application code must include header files:
    • ../../utilities/utilities.h
  • application compilation must include source code from the directories:
    • ../../library
    • ../../utilities
  • application compilation must define macros:
    • (none)

The compiled example will execute the following cases. Run the application with no arguments for application usage.

  • case 1: Display application information. (type names, type sizes and defined macros)
  • case 2: Illustrate the use of the message log object.
APG Version 7.0 is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.