blob: 43085b4fea71712f2337ddf7deca70c1107b7053 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "diagram/iterator.h"
using namespace samb;
Iterator::Iterator(Statement::Type t, const QString &condition, Statement::pointer next) :
Statement(t, condition, next),
_inner("")
{
switch (t) {
case Statement::Type::WHILE:
case Statement::Type::UNTIL:
break;
default:
throw std::invalid_argument("IteratorStatement can only be of type WHILE or UNTIL");
}
}
|