Generating exception-based component models from non-exception-based models
    1.
    发明授权
    Generating exception-based component models from non-exception-based models 有权
    从非基于异常的模型生成基于异常的组件模型

    公开(公告)号:US08612928B2

    公开(公告)日:2013-12-17

    申请号:US12755421

    申请日:2010-04-07

    IPC分类号: G06F9/45

    CPC分类号: G06F8/35 G06F8/36

    摘要: Exception-based component models can be generated from non-exception-based models. For example, a non-exception-based interface contract (such as a non-exception-based interface contract in a header file) for a consumable software component can be parsed. Additionally, a wrapper for the consumable software component can be generated from the non-exception-based interface contract. The wrapper can have an exception-based interface contract implementation, and the exception-based interface contract implementation can be a mirror equivalent of the non-exception-based interface contract. If the non-exception-based interface contract hints at one or more arguments as being out argument(s) for a function in the consumable software component, then predefined heuristics can be used to select one of those argument(s) to be used by the exception-based interface contract implementation as a return value for the function.

    摘要翻译: 基于异常的组件模型可以从非基于异常的模型生成。 例如,可以解析用于可消耗软件组件的非基于异常的接口契约(例如头文件中的基于非异常的接口契约)。 另外,可以从非基于异常的接口契约生成可消耗软件组件的包装器。 包装器可以具有基于异常的接口契约实现,并且基于异常的接口契约实现可以是与非基于异常的接口契约相当的镜像。 如果基于非异常的接口契约将一个或多个参数提示为消耗软件组件中的函数的out参数,则可以使用预定义的启发式方法来选择要由 基于异常的接口契约实现作为函数的返回值。

    GENERATING EXCEPTION-BASED COMPONENT MODELS FROM NON-EXCEPTION-BASED MODELS
    2.
    发明申请
    GENERATING EXCEPTION-BASED COMPONENT MODELS FROM NON-EXCEPTION-BASED MODELS 有权
    基于非例外模型生成基于例外的组件模型

    公开(公告)号:US20110252396A1

    公开(公告)日:2011-10-13

    申请号:US12755421

    申请日:2010-04-07

    IPC分类号: G06F9/44

    CPC分类号: G06F8/35 G06F8/36

    摘要: Exception-based component models can be generated from non-exception-based models. For example, a non-exception-based interface contract (such as a non-exception-based interface contract in a header file) for a consumable software component can be parsed. Additionally, a wrapper for the consumable software component can be generated from the non-exception-based interface contract. The wrapper can have an exception-based interface contract implementation, and the exception-based interface contract implementation can be a mirror equivalent of the non-exception-based interface contract. If the non-exception-based interface contract hints at one or more arguments as being out argument(s) for a function in the consumable software component, then predefined heuristics can be used to select one of those argument(s) to be used by the exception-based interface contract implementation as a return value for the function.

    摘要翻译: 基于异常的组件模型可以从非基于异常的模型生成。 例如,可以解析用于可消耗软件组件的非基于异常的接口契约(例如头文件中的基于非异常的接口契约)。 另外,可以从非基于异常的接口契约生成可消耗软件组件的包装器。 包装器可以具有基于异常的接口契约实现,并且基于异常的接口契约实现可以是与非基于异常的接口契约相当的镜像。 如果基于非异常的接口契约将一个或多个参数提示为消耗软件组件中的函数的out参数,则可以使用预定义的启发式方法来选择要由 基于异常的接口契约实现作为函数的返回值。