Skip to content
Snippets Groups Projects
Select Git revision
  • 7ad8963cc2d7886b6f74d57fb2b61ca6145550f5
  • main default protected
  • beta_release protected
  • feature/RWTH_CPACS_Interface
  • feature_CPACS_Interface
  • feature/design_evaluator
  • XMLEditor
  • electron-app-file-loading
  • testing
  • UnicadoGUI
  • UnicadoGuiFrontend
  • settingsPage
  • projektexplorer
  • UnicadoGuiBackend
  • v0.6.0
  • 0.5.0
  • 0.4.0
  • 0.3.0
  • 0.2.0
  • 0.1.0
20 results

main.cpp

Blame
    • Kristina Mazur's avatar
      7ad8963c
      Initial version :tada: · 7ad8963c
      Kristina Mazur authored
      - Add report_generator & repo CMakeLists and CMakePreset
      - Add submodule libs, gitignore, gitmodules, git attributes
      - Add pipeline for documentation
      - Add LICENCE
      - Minor updates in report_generator.cpp to due airfoil directory changes
      7ad8963c
      History
      Initial version :tada:
      Kristina Mazur authored
      - Add report_generator & repo CMakeLists and CMakePreset
      - Add submodule libs, gitignore, gitmodules, git attributes
      - Add pipeline for documentation
      - Add LICENCE
      - Minor updates in report_generator.cpp to due airfoil directory changes
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    main.cpp 1.48 KiB
    /*  Copyright (C) 2023 Chair of Aircraft Design, Technical University Munich
        This file is part of UNICADO.
    
        UNICADO is free software: you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation, either version 3 of the License, or
        (at your option) any later version.
    
        UNICADO is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
    
        You should have received a copy of the GNU General Public License
        along with UNICADO.  If not, see <http://www.gnu.org/licenses/>.
    */
    /**
     * @file main.cpp
     * @brief Report generator.
     * @version 2.0.0
     * @date 2024-12-20
     */
    
     /* === Includes === */
    #include "report_generator.h"
    #include "toolinfo.h"
    
    int main(int argc, char** argv)
    {
        /* Add exception handling since the constructor of the module can throw. */
        try {
            ReportGenerator reporting_module(argc, argv, TOOL_NAME, TOOL_VERSION);
            return reporting_module.execute();
        }
        catch (const std::string& error) {
            std::cerr << error << std::endl;
        }
        catch (const std::exception& error) {
            std::cerr << error.what() << std::endl;
        }
        catch (...) {
            std::cerr << "Unknown error occurred." << std::endl;
        }
        return EXIT_FAILURE;
    }