From b5b8de1b3005ff6c6e3659d32b851a85f6671d88 Mon Sep 17 00:00:00 2001 From: Niklas Halle Date: Sun, 23 Aug 2020 17:40:25 +0200 Subject: added some helper functions and a nice enum for annotation handling, as well as an more complex reply example (multi annotaion, link annotation --- include/AnnotationTypes.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/AnnotationTypes.hpp (limited to 'include/AnnotationTypes.hpp') diff --git a/include/AnnotationTypes.hpp b/include/AnnotationTypes.hpp new file mode 100644 index 0000000..d61de08 --- /dev/null +++ b/include/AnnotationTypes.hpp @@ -0,0 +1,23 @@ +#if ( !defined(ANNOTATIONTYPES_HPP) || defined(GENERATE_ENUM_STRINGS) ) + +#if (!defined(GENERATE_ENUM_STRINGS)) +#define ANNOTATIONTYPES_HPP +#endif + +#include "Enum2String.hpp" + +/////////////////////////////// +// The enum declaration +/////////////////////////////// +namespace Reply { + BEGIN_ENUM(AnnotationType) { + DECL_ENUM_ELEMENT(none), + DECL_ENUM_ELEMENT(bold), + DECL_ENUM_ELEMENT(italics), + DECL_ENUM_ELEMENT(strikethrough), + DECL_ENUM_ELEMENT(underline), + DECL_ENUM_ELEMENT(link), + } END_ENUM(AnnotationType) +} + +#endif // (!defined(ANNOTATIONTYPES_HPP) || defined(GENERATE_ENUM_STRINGS)) \ No newline at end of file -- cgit v1.2.3-54-g00ecf