VPTissue Reference Manual
SimTask.h
Go to the documentation of this file.
1 #ifndef SIMPT_PAREX_SIM_TASK_H_
2 #define SIMPT_PAREX_SIM_TASK_H_
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
22 #include <string>
23 #include <boost/property_tree/ptree.hpp>
24 #include <QObject>
25 
26 namespace SimPT_Parex {
27 
31 class SimTask: public QObject
32 {
33  Q_OBJECT
34 public:
36  SimTask();
37 
39  SimTask(int, std::string tree, std::string name);
40 
42  SimTask(int, std::string tree, std::string workspace, std::string name);
43 
45  SimTask(int, const boost::property_tree::ptree& simulation, std::string name);
46 
48  SimTask(int, const boost::property_tree::ptree& simulation,
49  const boost::property_tree::ptree& workspace, std::string name);
50 
53  SimTask(const SimTask&);
54 
56  virtual ~SimTask();
57 
59  std::string GetExploration() const;
60 
62  int GetId() const;
63 
65  boost::property_tree::ptree GetWorkspace() const;
66 
68  boost::property_tree::ptree ToPtree() const;
69 
71  std::string ToString() const;
72 
74  std::string WorkspaceToString() const;
75 
76 private:
77  int m_task_id;
78  std::string m_name;
79  boost::property_tree::ptree m_simulation;
80  boost::property_tree::ptree m_workspace;
81 };
82 
83 } // namespace
84 
85 #endif // end-of-include-guard
SimTask()
Default constructor.
Definition: SimTask.cpp:27
virtual ~SimTask()
Destructor.
Definition: SimTask.cpp:67
std::string ToString() const
Get the simulation in string representation (ptree xml).
Definition: SimTask.cpp:91
boost::property_tree::ptree ToPtree() const
Returns a pTree representing the SimTask.
Definition: SimTask.cpp:86
std::string WorkspaceToString() const
Get the workspace settings in string representation (ptree xml).
Definition: SimTask.cpp:98
Namespace for SimPT parameter explorer package.
Definition: Client.cpp:52
std::string GetExploration() const
Get the name of the exploration.
Definition: SimTask.cpp:71
Contains all information needed for a transmitable simulation task.
Definition: SimTask.h:31
int GetId() const
Get the id of the task in the exploration.
Definition: SimTask.cpp:76
see the online Qt documentation
boost::property_tree::ptree GetWorkspace() const
Get the workspace settings in ptree representation.
Definition: SimTask.cpp:81