blob: 6511c6cde93c3c426bc35a00486ceafbe40d4850 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "diagram/branchstatement.h"
using namespace samb;
BranchStatement::BranchStatement(Type t, const QString &condition, pointer next) :
Statement(t, condition, next)
{
switch (t) {
case Statement::Type::DECISION:
case Statement::Type::SWITCH:
break;
default:
throw std::invalid_argument("BranchStatement can only be of type DECISION or SWITCH");
}
}
|