1 #ifndef SIMPT_SHELL_STEP_SELECTION_H_INCLUDED
2 #define SIMPT_SHELL_STEP_SELECTION_H_INCLUDED
47 std::set<int>
ApplySelection(
const std::set<int> &available)
const;
58 std::set<int> m_selected_steps;
63 #endif // end_of_include_guard
bool Contains(int step) const
Checks whether the selection contains a specified step.
Namespace for SimPT shell package.
static const QRegExp g_range_regex
Regex for one range (start[-stop[:step]])
void SetSelectionText(const std::string &ranges)
Sets the selected ranges of steps.
std::set< int > ApplySelection(const std::set< int > &available) const
Applies the selection to a set of available steps.
virtual ~StepSelection()
Destructor.
StepSelection()
Constructs a selection with an empty ranges text (ie. everything is selected)
Class handling user input of ranges of steps.
static const QRegExp g_repeated_regex
Regex for a series of repeated ranges, separated by , of ;.