NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
built-in.hpp
Go to the documentation of this file.
1/*****************************************************************************
2 NumeRe: Framework fuer Numerische Rechnungen
3 Copyright (C) 2014 Erik Haenel et al.
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17******************************************************************************/
18
19#define _USE_MATH_DEFINES
20#include <iostream>
21#include <fstream>
22#include <sstream>
23#include <string>
24#include <conio.h>
25#include <windows.h>
26#include <cmath>
27#include <vector>
28
29#include "ui/error.hpp"
31#include "settings.hpp"
32#include "io/output.hpp"
33#include "plugins.hpp"
34#include "ParserLib/muParser.h"
35#include "utils/tools.hpp"
37#include "maths/define.hpp"
38#include "plotting/plotdata.hpp"
39#include "script.hpp"
40#include "version.h"
42#include "maths/odesolver.hpp"
43
44#ifndef COMMANDHANDLER_HPP
45#define COMMANDHANDLER_HPP
46
47extern const std::string sVersion;
48
50{
55};
56
57/*
58 * Built-In-Funktionen
59 * -> Diese Funktionen setzen die Basisfunktionen dieses Frameworks um
60 */
61CommandReturnValues commandHandler(std::string& sCmd);
62std::string evaluateParameterValues(const std::string& sCmd);
63bool extractFirstParameterStringValue(const std::string& sCmd, std::string& sArgument);
64bool parseCmdArg(const std::string& sCmd, size_t nPos, mu::Parser& _parser, size_t& nArgument);
65
66
67#endif
68
bool extractFirstParameterStringValue(const std::string &sCmd, std::string &sArgument)
This function returns the string argument for a single parameter in the command line.
Definition: built-in.cpp:98
std::string evaluateParameterValues(const std::string &sCmd)
This function evaluates a passed parameter string, so that the values of the parameters are only valu...
Definition: built-in.cpp:221
CommandReturnValues commandHandler(std::string &sCmd)
This function is the main command handling function.
Definition: built-in.cpp:42
bool parseCmdArg(const std::string &sCmd, size_t nPos, mu::Parser &_parser, size_t &nArgument)
This function finds the numerical argument to the selected command line parameter and evaluates it.
Definition: built-in.cpp:422
CommandReturnValues
Definition: built-in.hpp:50
@ COMMAND_PROCESSED
Definition: built-in.hpp:53
@ COMMAND_HAS_RETURNVALUE
Definition: built-in.hpp:54
@ NUMERE_QUIT
Definition: built-in.hpp:51
@ NO_COMMAND
Definition: built-in.hpp:52
const std::string sVersion
Mathematical expressions parser.
Definition: muParser.h:51
Definition of the standard floating point parser.