MCPcopy Create free account
hub / github.com/NatLabRockies/SAM / DispatchSSCThreads

Method DispatchSSCThreads

src/simulation.cpp:2006–2021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2004
2005
2006int 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
2023int Simulation::DispatchSSCThreads(wxThreadProgressDialog& tpd,
2024 std::vector<Simulation*>& sims,

Callers

nothing calls this directly

Calls 11

sizeMethod · 0.80
CreateMethod · 0.45
AddMethod · 0.45
RunMethod · 0.45
GetPercentMethod · 0.45
UpdateMethod · 0.45
GetNewMessagesMethod · 0.45
LogMethod · 0.45
CancelMethod · 0.45
NOkMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected