Skip to content
Snippets Groups Projects
Select Git revision
  • d3fa3c87c9debe5526afa331b6968a7693f7bc2f
  • master default protected
  • enxhi_issue460_remove_TOAR-I_access
  • michael_issue459_preprocess_german_stations
  • sh_pollutants
  • develop protected
  • release_v2.4.0
  • michael_issue450_feat_load-ifs-data
  • lukas_issue457_feat_set-config-paths-as-parameter
  • lukas_issue454_feat_use-toar-statistics-api-v2
  • lukas_issue453_refac_advanced-retry-strategy
  • lukas_issue452_bug_update-proj-version
  • lukas_issue449_refac_load-era5-data-from-toar-db
  • lukas_issue451_feat_robust-apriori-estimate-for-short-timeseries
  • lukas_issue448_feat_load-model-from-path
  • lukas_issue447_feat_store-and-load-local-clim-apriori-data
  • lukas_issue445_feat_data-insight-plot-monthly-distribution
  • lukas_issue442_feat_bias-free-evaluation
  • lukas_issue444_feat_choose-interp-method-cams
  • 414-include-crps-analysis-and-other-ens-verif-methods-or-plots
  • lukas_issue384_feat_aqw-data-handler
  • v2.4.0 protected
  • v2.3.0 protected
  • v2.2.0 protected
  • v2.1.0 protected
  • Kleinert_etal_2022_initial_submission
  • v2.0.0 protected
  • v1.5.0 protected
  • v1.4.0 protected
  • v1.3.0 protected
  • v1.2.1 protected
  • v1.2.0 protected
  • v1.1.0 protected
  • IntelliO3-ts-v1.0_R1-submit
  • v1.0.0 protected
  • v0.12.2 protected
  • v0.12.1 protected
  • v0.12.0 protected
  • v0.11.0 protected
  • v0.10.0 protected
  • IntelliO3-ts-v1.0_initial-submit
41 results

conftest.py

Blame
  • OutputHandler.cpp 5.02 KiB
    /**
     * \file        OutputHandler.cpp
     * \date        Nov 20, 2010
     * \version     v0.6
     * \copyright   <2009-2014> Forschungszentrum Jülich GmbH. All rights reserved.
     *
     * \section License
     * This file is part of JuPedSim.
     *
     * JuPedSim is free software: you can redistribute it and/or modify
     * it under the terms of the GNU Lesser General Public License as published by
     * the Free Software Foundation, either version 3 of the License, or
     * any later version.
     *
     * JuPedSim 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 Lesser General Public License
     * along with JuPedSim. If not, see <http://www.gnu.org/licenses/>.
     *
     * \section Description
     *
     *
     **/
    
    
    #include "OutputHandler.h"
    
    #include <stdio.h>
    #include <stdarg.h>
    #include <cstdlib>
    #include <cmath>
    
    using namespace std;
    
    void OutputHandler::incrementWarnings()
    {
         _nWarnings += 1;
    }
    
    int OutputHandler::GetWarnings()
    {
         return _nWarnings;
    }
    
    void OutputHandler::incrementErrors()
    {
         _nErrors += 1;
    }
    
    int OutputHandler::GetErrors()
    {
         return _nErrors;
    }
    
    void OutputHandler::Write(const string& str)
    {
         if (this != NULL)
              cout << str << endl;
    }
    
    void OutputHandler::ProgressBar(double TotalPeds, double NowPeds)
    {
         // based on this answer:
         // https://stackoverflow.com/questions/1637587/c-libcurl-console-progress-bar
         // how wide you want the progress meter to be
         int totaldotz=40;
         double fraction = NowPeds / TotalPeds;