From f7e5909a17423ade8c0d65da2845e0e318464fff Mon Sep 17 00:00:00 2001 From: Alexey Fedoseev Date: Fri, 10 May 2024 20:36:56 +0300 Subject: [PATCH] extend Comment API --- cyberiadamlpp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cyberiadamlpp.h b/cyberiadamlpp.h index 36af545..19017bb 100644 --- a/cyberiadamlpp.h +++ b/cyberiadamlpp.h @@ -208,6 +208,7 @@ namespace Cyberiada { bool is_machine_readable() const { return !human_readable; } bool has_body() const { return !body.empty(); } + const String& get_body() const { return body; } void set_body(const String& b) { body = b; } bool has_subjects() const { return !subjects.empty(); } @@ -391,7 +392,7 @@ namespace Cyberiada { // Cyberiada action types: typedef enum { - actionTransition, + actionTransition = 0, actionEntry, actionExit } ActionType;