Add resolve callout rule support to YAML parser

The callout to resolve is specified in the YAML.

Change-Id: If613fae1959c6a54279b2a50c7d858f3e7d831b9
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/src/pdmgen.py b/src/pdmgen.py
index 693b149..9ed27cd 100755
--- a/src/pdmgen.py
+++ b/src/pdmgen.py
@@ -699,6 +699,21 @@
             indent=indent)
 
 
+class ResolveCallout(Callback, Renderer):
+    '''Handle the 'resolve callout' callback config file directive.'''
+
+    def __init__(self, *a, **kw):
+        self.callout = kw.pop('callout')
+        super(ResolveCallout, self).__init__(**kw)
+
+    def construct(self, loader, indent):
+        return self.render(
+            loader,
+            'resolve_errors.mako.cpp',
+            c=self,
+            indent=indent)
+
+
 class Method(ConfigEntry, Renderer):
     '''Handle the method callback config file directive.'''
 
@@ -869,6 +884,7 @@
                 'elog': Elog,
                 'group': GroupOfCallbacks,
                 'method': Method,
+                'resolve callout': ResolveCallout,
             },
             'condition': {
                 'count': CountCondition,