| 3165 | } |
| 3166 | |
| 3167 | void 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 | |
| 3190 | void Application::notifyRecomputeWorker() |
| 3191 | { |
nothing calls this directly
no test coverage detected