aboutsummaryrefslogtreecommitdiffstats
path: root/src/Enum2String.cpp
diff options
context:
space:
mode:
authorNiklas Halle <niklas@niklashalle.net>2020-08-23 17:40:25 +0200
committerNiklas Halle <niklas@niklashalle.net>2020-08-23 17:40:25 +0200
commitb5b8de1b3005ff6c6e3659d32b851a85f6671d88 (patch)
tree6f2a54196a3b2c2d29dfaeaf7e6a8b9e43f33ba6 /src/Enum2String.cpp
parentb3e3f3f50e49c6d21032e44565a93ed96d99801b (diff)
downloadn_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 'src/Enum2String.cpp')
-rw-r--r--src/Enum2String.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Enum2String.cpp b/src/Enum2String.cpp
new file mode 100644
index 0000000..e64b6ea
--- /dev/null
+++ b/src/Enum2String.cpp
@@ -0,0 +1,9 @@
+/// The strings associated with the enums are generated here
+/////////////////////////////////////////////////////////////////////
+#include <string>
+
+#include "AnnotationTypes.hpp"
+
+#define GENERATE_ENUM_STRINGS // Start string generation
+#include "AnnotationTypes.hpp"
+#undef GENERATE_ENUM_STRINGS // Stop string generation \ No newline at end of file