Exemplo n.º 1
0
    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")
Exemplo n.º 2
0
    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")
Exemplo n.º 3
0
 def _actionName(self, action):
     if self._actionNames[action.name] == 1:
         return action.name
     else:
         return makeGlobalSymbol("", action.namespace, action.name)
Exemplo n.º 4
0
 def _actionName(self, action):
     if self._actionNames[action.name] == 1:
         return action.name
     else:
         return makeGlobalSymbol("", action.namespace, action.name)
Exemplo n.º 5
0
    def _enum_value(self, type, value, bIsUnknown = False):

        if bIsUnknown:
            return makeGlobalSymbol(type.name, "", "Unknown")
        else:
            return makeGlobalSymbol(type.name, "", value)
Exemplo n.º 6
0
    def _enum_enum(self, type):

        return makeGlobalSymbol("", "", type.name)
Exemplo n.º 7
0
    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)
Exemplo n.º 8
0
    def _enum_value(self, type, value, bIsUnknown = False):

        if bIsUnknown:
            return makeGlobalSymbol(type.name, "", "Unknown")
        else:
            return makeGlobalSymbol(type.name, "", value)
Exemplo n.º 9
0
    def _enum_enum(self, type):

        return makeGlobalSymbol("", "", type.name)
Exemplo n.º 10
0
    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)