diff options
author | Niklas Halle <niklas@niklashalle.net> | 2020-08-23 17:40:25 +0200 |
---|---|---|
committer | Niklas Halle <niklas@niklashalle.net> | 2020-08-23 17:40:25 +0200 |
commit | b5b8de1b3005ff6c6e3659d32b851a85f6671d88 (patch) | |
tree | 6f2a54196a3b2c2d29dfaeaf7e6a8b9e43f33ba6 /include/AnnotationTypes.hpp | |
parent | b3e3f3f50e49c6d21032e44565a93ed96d99801b (diff) | |
download | n_core-b5b8de1b3005ff6c6e3659d32b851a85f6671d88.tar.gz n_core-b5b8de1b3005ff6c6e3659d32b851a85f6671d88.zip |
added some helper functions and a nice enum for annotation handling, as well as an more complex reply example (multi annotaion, link annotation
Diffstat (limited to 'include/AnnotationTypes.hpp')
-rw-r--r-- | include/AnnotationTypes.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
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 |