diff options
author | Nao Pross <naopross@thearcway.org> | 2017-12-18 23:01:33 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2017-12-18 23:01:33 +0100 |
commit | 62bd9aa4da85ef87c4d9a9bb7911f8a4e0ac9986 (patch) | |
tree | b7187831bb1908ad2d34eadf831bf63bfd3343b1 /src/diagram/iteratorstatement.cpp | |
parent | Add mainwindow.ui (diff) | |
download | OrbitingYeti-62bd9aa4da85ef87c4d9a9bb7911f8a4e0ac9986.tar.gz OrbitingYeti-62bd9aa4da85ef87c4d9a9bb7911f8a4e0ac9986.zip |
Moved to QtCreator project with QMake
Diffstat (limited to 'src/diagram/iteratorstatement.cpp')
-rw-r--r-- | src/diagram/iteratorstatement.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/diagram/iteratorstatement.cpp b/src/diagram/iteratorstatement.cpp new file mode 100644 index 0000000..675d8eb --- /dev/null +++ b/src/diagram/iteratorstatement.cpp @@ -0,0 +1,16 @@ +#include "diagram/IteratorStatement.hpp" + +using namespace samb; + +IteratorStatement::IteratorStatement(Statement::Type t, const std::string& condition, Statement::pointer next) + : Statement(t, condition, next), m_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"); + } +} |