36 const std::string& input_file =
"",
37 bool num_steps_set =
false,
unsigned int num_steps = 0)
38 : m_input_file(input_file), m_input_file_set(input_file_set),
39 m_num_steps(num_steps), m_num_steps_set(num_steps_set),
40 m_project_name(project)
45 const std::string
GetLeaf()
const {
return m_input_file; }
60 std::string m_input_file;
61 bool m_input_file_set;
62 unsigned int m_num_steps;
64 std::string m_project_name;
68 std::ostream& operator<<(std::ostream& os,
const CliSimulationTask& task)
70 os <<
"CliTask: project = " << task.GetProjectName() << std::endl
71 <<
" is_input_file_set = " << std::boolalpha << task.IsLeafSet()
72 <<
", input_file = " << task.GetLeaf() << std::endl
73 <<
" is_num_steps_set = " << std::boolalpha << task.IsNumStepsSet()
74 <<
", number of steps = " << task.GetNumSteps();
81 #endif // include guard
bool IsLeafSet() const
Plain getter.
const std::string GetProjectName() const
Plain getter.
Namespace for SimPT shell package.
bool IsNumStepsSet() const
const std::string GetLeaf() const
Plain getter.
unsigned int GetNumSteps() const
Plain getter.
A CliTask represents an invocation of the program from the command line.
CliSimulationTask(const std::string &project, bool input_file_set=false, const std::string &input_file="", bool num_steps_set=false, unsigned int num_steps=0)
Straight constructor.