MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / runApplication

Method runApplication

src/App/Application.cpp:3167–3188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3165}
3166
3167void Application::runApplication()
3168{
3169 // process all files given through command line interface
3170 processCmdLineFiles();
3171
3172 if (mConfig["RunMode"] == "Cmd") {
3173 // Run the commandline interface
3174 Base::Interpreter().runCommandLine("FreeCAD Console mode");
3175 }
3176 else if (mConfig["RunMode"] == "Internal") {
3177 // run internal script
3178 Base::Console().log("Running internal script:\n");
3179 Base::Interpreter().runString(Base::ScriptFactory().ProduceScript(mConfig["ScriptFileName"].c_str()));
3180 }
3181 else if (mConfig["RunMode"] == "Exit") {
3182 // getting out
3183 Base::Console().log("Exiting on purpose\n");
3184 }
3185 else {
3186 Base::Console().log("Unknown Run mode (%d) in main()?!?\n\n", mConfig["RunMode"].c_str());
3187 }
3188}
3189
3190void Application::notifyRecomputeWorker()
3191{

Callers

nothing calls this directly

Calls 5

runCommandLineMethod · 0.80
runStringMethod · 0.80
ProduceScriptMethod · 0.80
logMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected