| 2004 | |
| 2005 | |
| 2006 | int Simulation::DispatchSSCThreads(SimulationDialog& tpd, |
| 2007 | std::vector<Simulation*>& sims, |
| 2008 | int nthread, wxString& fn) |
| 2009 | { |
| 2010 | int ret = 0; |
| 2011 | |
| 2012 | std::ifstream test(fn.ToStdString().c_str()); |
| 2013 | std::string json_str((std::istreambuf_iterator<char>(test)), std::istreambuf_iterator<char>()); |
| 2014 | auto p_data = json_to_ssc_data(json_str.c_str()); |
| 2015 | |
| 2016 | ret = DispatchSSCThreads(tpd.Dialog(), sims, nthread, p_data); |
| 2017 | |
| 2018 | ssc_data_free(p_data); |
| 2019 | |
| 2020 | return ret; |
| 2021 | } |
| 2022 | |
| 2023 | int Simulation::DispatchSSCThreads(wxThreadProgressDialog& tpd, |
| 2024 | std::vector<Simulation*>& sims, |