diff options
Diffstat (limited to 'src/diagram/BranchStatement.cpp')
-rw-r--r-- | src/diagram/BranchStatement.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/diagram/BranchStatement.cpp b/src/diagram/BranchStatement.cpp deleted file mode 100644 index 6345c1b..0000000 --- a/src/diagram/BranchStatement.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/* - * BranchStatement.cpp - * - * Created on: Nov 28, 2017 - * Author: naopross - */ - -#include "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"); - } -} |