Geometrize  1.0
An application for geometrizing images into geometric primitives
commandlineparser.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <vector>
5 
6 #include <QStringList>
7 
8 class QApplication;
9 
10 namespace geometrize
11 {
12 
13 namespace cli
14 {
15 
21 bool shouldRunInSelfTestMode(const QStringList& arguments);
22 
28 std::vector<std::string> getSelfTestModeScriptDirectories(const QStringList& arguments);
29 
35 bool shouldRunInConsoleMode(const QStringList& arguments);
36 
42 std::string getOverrideLocaleCode(const QStringList& arguments);
43 
50 int runApp(QApplication& app);
51 
52 }
53 
54 }
geometrize::script::createImageTaskEngine
std::unique_ptr< chaiscript::ChaiScript > createImageTaskEngine()
createImageTaskEngine Creates a Chaiscript engine for an image task window script console.
Definition: chaiscriptcreator.cpp:52
geometrize::util::readFileAsString
std::string readFileAsString(const std::string &filePath)
readFileAsString Reads a file, returning a string containing the contents.
Definition: util.cpp:155
commandlineparser.h
chaiscriptcreator.h
geometrize::cli::shouldRunInConsoleMode
bool shouldRunInConsoleMode(const QStringList &arguments)
shouldRunInConsoleMode Checks whether the application should run in console mode for the given argume...
Definition: commandlineparser.cpp:92
taskutil.h
geometrize::strings::Strings::getShortApplicationDescription
static QString getShortApplicationDescription()
getApplicationDescription Gets a short description of the application.
Definition: strings.cpp:14
scriptrunner.h
functionaltestrunner.h
geometrize
Definition: commandlineparser.cpp:73
geometrize::script::runScript
void runScript(const std::string &code, chaiscript::ChaiScript &runner)
runScript Evaluates the provided script code.
Definition: scriptrunner.cpp:16
strings.h
geometrize::cli::runApp
int runApp(QApplication &app)
runApp Runs the application in console mode. Note that since Windows does not support dual-mode appli...
Definition: commandlineparser.cpp:110
geometrize::cli::getSelfTestModeScriptDirectories
std::vector< std::string > getSelfTestModeScriptDirectories(const QStringList &arguments)
getSelfTestModeScriptDirectories Gets a vector of the directories containing scripts to run in self-t...
Definition: commandlineparser.cpp:85
geometrize::cli::getOverrideLocaleCode
std::string getOverrideLocaleCode(const QStringList &arguments)
getOverrideLocaleCode Gets the override locale code that the application should start up with.
Definition: commandlineparser.cpp:99
util.h
geometrize::cli::shouldRunInSelfTestMode
bool shouldRunInSelfTestMode(const QStringList &arguments)
shouldRunInSelfTestMode Checks whether the application should run in automated self-test/functional t...
Definition: commandlineparser.cpp:78