20 #include <boost/property_tree/xml_parser.hpp>
25 using boost::property_tree::ptree;
32 : m_task_id(id), m_name(name)
36 read_xml(s, m_simulation);
40 : m_task_id(id), m_name(name)
44 read_xml(s, m_simulation);
48 read_xml(w, m_workspace);
52 : m_task_id(id), m_name(name), m_simulation(simulation)
56 SimTask::SimTask(
int id,
const ptree& simulation,
const ptree& workspace, std::string name)
57 : m_task_id(id), m_name(name), m_simulation(simulation), m_workspace(workspace)
62 :
QObject(), m_task_id(st.m_task_id), m_name(st.m_name), m_simulation(st.m_simulation),
63 m_workspace(st.m_workspace)
94 write_xml(s, m_simulation);
101 write_xml(s, m_workspace);
SimTask()
Default constructor.
virtual ~SimTask()
Destructor.
std::string ToString() const
Get the simulation in string representation (ptree xml).
boost::property_tree::ptree ToPtree() const
Returns a pTree representing the SimTask.
std::string WorkspaceToString() const
Get the workspace settings in string representation (ptree xml).
Namespace for SimPT parameter explorer package.
std::string GetExploration() const
Get the name of the exploration.
Contains all information needed for a transmitable simulation task.
int GetId() const
Get the id of the task in the exploration.
see the online Qt documentation
boost::property_tree::ptree GetWorkspace() const
Get the workspace settings in ptree representation.