#ifndef DIAGRAM_BRANCHSTATEMENT_H #define DIAGRAM_BRANCHSTATEMENT_H #include "diagram/statement.h" #include #include namespace samb { class BranchStatement : public Statement { public: BranchStatement(Type t, const QString &condition, pointer next); /* accessors */ const std::map& branches() const { return _branches; } std::size_t branches_count() const { return _branchesCount; } inline const QString& condition() const { return text(); } inline void condition(const QString &condition) { return text(condition); } private: std::map _branches; std::size_t _branchesCount = 0; }; } /* namespace samb */ #endif /* DIAGRAM_BRANCHSTATEMENT_H */