def _class_class(self, type): assert(type.isStruct) if type.isArray: match = re.match("ArrayOf(.*)", type.name); return makeGlobalSymbol("", "", match.group(1) + "Array") else: return makeGlobalSymbol("", "", type.name + "Struct")
def _actionName(self, action): if self._actionNames[action.name] == 1: return action.name else: return makeGlobalSymbol("", action.namespace, action.name)
def _enum_value(self, type, value, bIsUnknown = False): if bIsUnknown: return makeGlobalSymbol(type.name, "", "Unknown") else: return makeGlobalSymbol(type.name, "", value)
def _enum_enum(self, type): return makeGlobalSymbol("", "", type.name)
def _write_uri_accessor_macro(self, action_loc, extraIndent = 0): self._write_with_ns_indent('''\ #define %s (HDK_MOD_GetMethod(%s(), %s)->pszSOAPAction) ''' % (makeGlobalSymbol("", action_loc.action.namespace, action_loc.action.name, nameSuffix = "_URI"), self._module.module_fn(), self._module.action_value(action_loc)), extraIndent)