#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"); } }