Modify generating event actions

Move to constructing the entire event action parameter string within the
python code in prep for additional special parameters.

Change-Id: I517ad859813e348cd6781cc9be11ab92fa6cac09
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/gen-fan-zone-defs.py b/control/gen-fan-zone-defs.py
index fcd3f02..aa6ae9c 100755
--- a/control/gen-fan-zone-defs.py
+++ b/control/gen-fan-zone-defs.py
@@ -60,9 +60,9 @@
 %endif
 %for i, p in enumerate(a['parameters']):
 %if (i+1) != len(a['parameters']):
-    static_cast<${p['type']}>(${p['value']}),
+    ${p},
 %else:
-    static_cast<${p['type']}>(${p['value']}))
+    ${p})
 %endif
 %endfor
 ),
@@ -295,26 +295,21 @@
         if ('parameters' in eAction) and \
            (eAction['parameters'] is not None):
             for p in eAction['parameters']:
-                param = {}
+                param = "static_cast<"
                 if type(eActions[p]) is not dict:
                     if p == 'property':
-                        param['value'] = str(eActions[p]).lower()
-                        param['type'] = str(
-                            e['property']['type']).lower()
+                        param += (str(e['property']['type']).lower() + ">(" +
+                            str(eActions[p]).lower() + ")")
                     else:
                         # Default type to 'size_t' when not given
-                        param['value'] = str(eActions[p]).lower()
-                        param['type'] = 'size_t'
-                    params.append(param)
+                        param += ("size_t>(" + str(eActions[p]).lower() + ")")
                 else:
-                    param['type'] = str(eActions[p]['type']).lower()
+                    param += (str(eActions[p]['type']).lower() + ">(")
                     if p != 'map':
-                        param['value'] = str(
-                            eActions[p]['value']).lower()
+                        param += (str(eActions[p]['value']).lower() + ")")
                     else:
-                        emap = convertToMap(str(eActions[p]['value']))
-                        param['value'] = param['type'] + emap
-                    params.append(param)
+                        param += (convertToMap(str(eActions[p]['value'])) + ")")
+                params.append(param)
         actions['parameters'] = params
         action.append(actions)
     event['action'] = action