Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Objective Toolkit User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

16.7 Formula Engine

Objective Toolkit now includes a Lex (Flex)-based formula evaluation engine. By instantiating objects of the toolkit-defined class SRFormulaScanner, developers can easily add formula evaluation functionality to their applications.

16.7.1 Features of the Formula Scanner

The formula scanner:

16.7.2 Use of the Formula Engine Class

Use of the formula engine class is straightforward.

  1. In any source file in which you wish to incorporate formula evaluation functionality, include the following toolkit-supplied header files, as follows:

  2. Declare an instance of the formula engine class, as follows:

  3. Set the formula, tell the formula engine to evaluate it, and extract the answer (or an error message), as follows:


See the sample included with the product for an example of how the formula engine can be used.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.