NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
kernel.cpp File Reference
#include "wx/wx.h"
#include "../gui/terminal/terminal.hpp"
#include "core/datamanagement/database.hpp"
#include "core/io/logger.hpp"
Include dependency graph for kernel.cpp:

Go to the source code of this file.

Macros

#define KERNEL_PRINT_SLEEP   2
 
#define TERMINAL_FORMAT_FIELD_LENOFFSET   16
 
#define DEFAULT_NUM_PRECISION   7
 
#define DEFAULT_MINMAX_PRECISION   5
 

Functions

static std::string formatByteSize (double bytes)
 Formats the byte size using KB or MB as units. More...
 
static std::string drawBar (int nValue, size_t nLength, const std::string &sProgressChar, const std::string &sWhitespaceChar)
 Simple static helper function to render the actual progress bar. More...
 
void make_hline (int nLength)
 This function prints a horizontal line to the terminal using either minus or equal signs. More...
 

Variables

const std::string sVersion
 
Language _lang
 
mglGraph _fontData
 
value_type vAns
 
DefaultVariables _defVars
 
__time64_t tTimeZero = _time64(0)
 

Macro Definition Documentation

◆ DEFAULT_MINMAX_PRECISION

#define DEFAULT_MINMAX_PRECISION   5

Definition at line 29 of file kernel.cpp.

◆ DEFAULT_NUM_PRECISION

#define DEFAULT_NUM_PRECISION   7

Definition at line 28 of file kernel.cpp.

◆ KERNEL_PRINT_SLEEP

#define KERNEL_PRINT_SLEEP   2

Definition at line 26 of file kernel.cpp.

◆ TERMINAL_FORMAT_FIELD_LENOFFSET

#define TERMINAL_FORMAT_FIELD_LENOFFSET   16

Definition at line 27 of file kernel.cpp.

Function Documentation

◆ drawBar()

static std::string drawBar ( int  nValue,
size_t  nLength,
const std::string &  sProgressChar,
const std::string &  sWhitespaceChar 
)
static

Simple static helper function to render the actual progress bar.

Parameters
nValueint
nLengthsize_t
sProgressCharconst std::string&
sWhitespaceCharconst std::string&
Returns
std::string

Definition at line 2933 of file kernel.cpp.

References strfill().

Referenced by NumeReKernel::progressBar().

Here is the call graph for this function:

◆ formatByteSize()

static std::string formatByteSize ( double  bytes)
static

Formats the byte size using KB or MB as units.

Parameters
bytesdouble
Returns
std::string

Definition at line 2397 of file kernel.cpp.

References toString().

Referenced by NumeReKernel::getVariableList().

Here is the call graph for this function:

◆ make_hline()

void make_hline ( int  nLength)

This function prints a horizontal line to the terminal using either minus or equal signs.

Parameters
nLengthint
Returns
void

Definition at line 3720 of file kernel.cpp.

References NumeReKernel::nLINE_LENGTH, NumeReKernel::printPreFmt(), and strfill().

Referenced by analyzePulse(), cmd_credits(), cmd_hline(), createOutputForHist1D(), createOutputForHist2D(), createStatsOutput(), doc_Help(), doc_SearchFct(), fitDataSet(), listCommands(), listConstants(), listDeclaredVariables(), listDefinitions(), listFiles(), listFunctions(), listInstalledPlugins(), listLogicalOperators(), listUnitConversions(), NumeReKernel::MainLoop(), NumeReKernel::printVersionInfo(), and show_data().

Here is the call graph for this function:

Variable Documentation

◆ _defVars

◆ _fontData

◆ _lang

Language _lang

Definition at line 39 of file kernel.cpp.

Referenced by MemoryManager::addTable(), analyzePulse(), append_data(), applyFitAlgorithm(), autoSave(), boneDetection(), FlowCtrl::calc(), calculate1dFFT(), calculate2dFFT(), calculateChiMap(), calculateSplines(), NumeReKernel::checkInternalStates(), NumeRe::CleanDocumentation(), clear_cache(), cmd_audio(), cmd_audioread(), cmd_clear(), cmd_copy(), cmd_credits(), cmd_datagrid(), cmd_define(), cmd_delete(), cmd_find(), cmd_ifndefined(), cmd_load(), cmd_move(), cmd_plotting(), cmd_redefine(), cmd_regularize(), cmd_remove(), cmd_rename(), cmd_resample(), cmd_retouch(), cmd_seek(), cmd_set(), cmd_smooth(), cmd_start(), cmd_stfa(), cmd_workpath(), FlowCtrl::compile(), confirmOperation(), createOutputForHist1D(), createOutputForHist2D(), createPlotForHist1D(), Plot::createPlotOrAnimation(), createPlotsForHist2D(), createStatsFile(), createStatsOutput(), Plot::createSubPlotSet(), createTeXExport(), differentiate(), Plot::displayMessage(), doc_Help(), doc_HelpAsHTML(), doc_SearchFct(), editObject(), FlowCtrl::eval(), FlowCtrl::evalForkFlowCommands(), FlowCtrl::evalHeader(), FlowCtrl::evalRangeBasedHeader(), Script::evaluateInstallInformation(), ProcedureVarFactory::evaluateProcedureArguments(), NumeReKernel::evaluateStrings(), executeCommand(), fastFourierTransform(), fastWaveletTransform(), NumeRe::DataBase::findRecordsUsingRelevance(), fitDataSet(), FlowCtrl::for_loop(), Output::format(), NumeRe::CallTipProvider::getCommand(), NumeRe::CallTipProvider::getConstant(), getDataForFit(), TableColumn::getDefaultColumnHead(), getErrorType(), getFitAnalysis(), getFitOptionsTable(), NumeRe::CallTipProvider::getFunction(), Documentation::getHelpArticle(), NumeRe::CallTipProvider::getMethod(), Script::getNextScriptCommandFromScript(), NumeRe::CallTipProvider::getOption(), getPathForSetting(), NumeRe::CallTipProvider::getPredef(), NumeReDebugger::getStackTrace(), getStatFieldName(), NumeReKernel::handleComposeBlock(), NumeReKernel::handleFlowControls(), Script::handleInstallInformation(), NumeReKernel::handleProcedureWrite(), integrate(), integrate2d(), NumeReKernel::issueWarning(), Language::Language(), listCommands(), listConstants(), listDeclaredVariables(), listDefinitions(), listDirectory(), listFiles(), listFunctions(), listInstalledPlugins(), listLogicalOperators(), listUnitConversions(), FunctionDefinitionManager::load(), load_data(), NumeReKernel::MainLoop(), newObject(), Includer::openIncludedFile(), mu::ParserError::ParserError(), Plot::Plot(), plugin_random(), Output::print(), Output::print_legal(), NumeReKernel::printVersionInfo(), NumeReKernel::progressBar(), FlowCtrl::range_based_for_loop(), NumeRe::NumeReDataFile::readHeader(), removeFile(), NumeReKernel::resetAfterError(), Script::returnCommand(), rotateTable(), FunctionDefinitionManager::save(), Settings::save(), NumeReKernel::saveData(), saveDataObject(), FlowCtrl::setCommand(), NumeReDebugger::showBreakPoint(), Odesolver::solve(), solveLGS(), solveLGSSymbolic(), NumeReKernel::StartUp(), strfnc_getkeyval(), strfnc_regex(), strfnc_weekday(), swapTables(), taylor(), NumeReDebugger::throwException(), toString(), undefineFunctions(), NumeReKernel::uninstallPlugin(), FlowCtrl::while_loop(), NumeRe::LaTeXTable::writeFile(), NumeRe::TextDataFile::writeHeader(), NumeRe::LaTeXTable::writeHeader(), Script::writeProcedure(), and Procedure::writeProcedure().

◆ sVersion

const std::string sVersion
extern

◆ tTimeZero

__time64_t tTimeZero = _time64(0)

Definition at line 43 of file kernel.cpp.

◆ vAns

value_type vAns
extern