|
| void | initJimulator (std::string argv0) |
| | Initialises Jimulator in a separate child process. More...
|
| |
| void | initCompilerPipes (KoMo2Model *mainModel) |
| | Initialises the communication pipes between the compiler process & the main KoMo2 GUI. More...
|
| |
| const std::string | getAbsolutePathToRootDirectory (const char *const arg) |
| | get the absolute path to the directory of the binary. More...
|
| |
| const int | initialiseCommandLine (const Glib::RefPtr< Gio::ApplicationCommandLine > &cmd, const Glib::RefPtr< Gtk::Application > &app) |
| | Sets up and parses custom command line arguments. To add more command line arguments, create a new boolean and a new Glib::OptionEntry object, and then add a longname, shortname, and description, then add it to the group. Then pass the boolean into the handleCommandLine function. More...
|
| |
| const bool | receivedCompilerOutput (GIOChannel *source, GIOCondition condition, gpointer data) |
| | This callback function is called when the compiler communication pipe receives a change in state (meaning the compiler process has sent some data). This function will then send that data to the integrated terminal within KoMo2. More...
|
| |
|
void | readProgramVariables (const std::string argv0) |
| | Reads the program variables from the "variables.json" file and populates global variables with the values read.
|
| |
| int | main (int argc, char *argv[]) |
| | The program entry point. More...
|
| |
| const int | handleCommandLine (const bool isVersion, const bool isHelp, const bool isMnemonics) |
| | Handles if a command line flag is set. More...
|
| |
|
|
int | emulator_PID = -1 |
| | This variable will store the PID of the Jimulator process.
|
| |
|
int | communicationFromJimulator [2] |
| | The pipe which will be used by KoMo2 to read from Jimulator (i.e. Jimulator will write to it, KoMo2 will read)
|
| |
|
int | communicationToJimulator [2] |
| | The pipe which will be used by KoMo2 to write to Jimulator (i.e. Jimulator will read from it, KoMo2 will write)
|
| |
|
int | compilerCommunication [2] |
| | The pipe that handles communication between the compiler process and KoMo2.
|
| |
|
int | writeToJimulator |
| | Stores the file descriptor used for writing to Jimulator.
|
| |
|
int | readFromJimulator |
| | Stores the file descriptor used for reading from Jimulator.
|
| |
|
std::string | version = "1.0.0" |
| | Version information read from variables.json is stored here.
|
| |
|
std::string | manual = "https://github.com/LawrenceWarren/KoMo2#user-manual" |
| | Manual information read from variables.json is stored here.
|
| |
|
std::string | help = "Please view the user manual (" + manual + ") for help." |
| | Help information read from variables.json is stored here.
|
| |
|
int | refresh = 200 |
| | Refresh rate information read from variables.json is stored here.
|
| |
|
void * | model |
| | Used as a reference to the master KoMo2Model.
|
| |
The entry point of the program. Should have as little logic as possible.
- Author
- Lawrence Warren (lawre.nosp@m.ncew.nosp@m.arren.nosp@m.2@gm.nosp@m.ail.c.nosp@m.om)
- Version
- 1.0.0
- Date
- 10-04-2021
LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details at https://www.gnu.org/copyleft/gpl.html
Definition in file main.cpp.
| const int initialiseCommandLine |
( |
const Glib::RefPtr< Gio::ApplicationCommandLine > & |
cmd, |
|
|
const Glib::RefPtr< Gtk::Application > & |
app |
|
) |
| |
Sets up and parses custom command line arguments. To add more command line arguments, create a new boolean and a new Glib::OptionEntry object, and then add a longname, shortname, and description, then add it to the group. Then pass the boolean into the handleCommandLine function.
- Parameters
-
| cmd | The apps command line object. |
| app | The GTK application itself. |
- Returns
- int status code.
Definition at line 287 of file main.cpp.