|
Milo
0.1
Milo:EquationManipulationProgram
|
#include <iostream>#include <vector>#include <map>#include "milo.h"#include "ui.h"#include "panel.h"
Classes | |
| class | AsciiGraphics |
| class | AsciiApp |
Typedefs | |
| using | func_ptr = void(*)(const string &s) |
Functions | |
| static void | parse (const string &eqn_str) |
| EqnPanel class object. More... | |
| static void | xml_in (const string &fname) |
| static void | xml_out (const string &) |
| static void | test (const string &) |
| static void | eqn_out (const string &) |
| static void | art (const string &) |
| static void | normalize (const string &) |
| static void | simplify (const string &) |
| static void | keys (const string &keys) |
| static void | geometry (const string ¶ms) |
| static void | help (const string &) |
| int | main (int argc, char *argv[]) |
Variables | |
| AsciiApp | app |
| Graphics & | gc = app.getGraphics() |
| EqnPanel | panel |
| Asciigraphics class objects. | |
| const unordered_map< string, func_ptr > | test_funcs |
This file allows you to test the equation engine of milo.
| using func_ptr = void (*)(const string& s) |
Pointer to function from command line argument.
|
static |
Output current equation as ascii art to standard output.
|
static |
Output current equation in ascii to standard output.
|
static |
Set geometry of internal ascii screen
|
static |
Output help to standard output.
|
static |
Add keys as input to equation.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Command line milo test main function. Takes name of test for argument plus argument passed to text if needed. More than one test command maybe passed on command line for serial tests.
| argc | Number of arguments. |
| argv | Array of argugments. |
|
static |
Normalize current equation.
|
static |
EqnPanel class object.
Load parsed equation string into global equation object.
| eqn_str | String with text version of equation. |
|
static |
Simplify current equation.
|
static |
Test output of current equation.
|
static |
Load filename with xml version of equation
| fname | Name of file with xml |
|
static |
Output current equation in xml to standard output.
| const unordered_map<string, func_ptr> test_funcs |
Associate command with an internal function. ':' means it takes argument.
1.8.11