sdbus++: add enumeration parsing

Change-Id: I6d02574942b38adbe2dc537f5279721cde2c8bc7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/tools/example/net/poettering/Calculator.interface.yaml b/tools/example/net/poettering/Calculator.interface.yaml
index 3c70cbc..7932aed 100644
--- a/tools/example/net/poettering/Calculator.interface.yaml
+++ b/tools/example/net/poettering/Calculator.interface.yaml
@@ -50,6 +50,11 @@
       default: 0
       description: >
         The result of the most recent calculation.
+    - name: Status
+      type: enum[self.State]
+      default: Success
+      description: >
+        The current state of the Calculator.
 signals:
     - name: Cleared
       description: >
@@ -59,4 +64,14 @@
         - type: int64
           description: >
             Value of LastReset prior to Clear.
-
+enumerations:
+    - name: State
+      description: >
+        Identifies if the service has encountered an error or not.
+      values:
+        - name: Success
+          description: >
+            No error has been encountered.
+        - name: Error
+          description: >
+            The service has encountered an error.