blob: 2835f3521ad5d9634a16fcc255dbfa54675d7d45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "diagram/BranchStatement.hpp"
using namespace samb;
BranchStatement::BranchStatement(Type t, const std::string& 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");
}
}
|