函数封装是一种函数的功能,它把一个程序员写的一个或者多个功能通过函数、类的方式封装起来,对外只提供一个简单的函数接口。当程序员在写程序的过程中需要执行同样的操作时,程序员(调用者)不需要写同样的函数来调用,直接可以从函数库里面调用。程序员也可以从网络上下载的功能函数,然后封装到编译器的库函数中,当需要执行这一功能的函数时,直接调用即可。而程序员不必知道函数内部如何实现的,只需要知道这个函数或者类提供什么功能。
您将编写一个使用本机函数的 SPL 应用程序,这些本机函数封装 MATLAB 编译器生成的函数。
You will write the SPL application that uses the native functions that wrap the functions generated by the MATLAB compiler.
request_module 函数封装了 usermode-helper API 的功能并提供了简单的接口。
The function request_module encapsulates the functionality of the usermode-helper API and provides a simple interface.
将实时数据、空间拓扑数据、设备属性数据以及对这些数据操作的函数封装为空间实体类,建立了空间实体对象。
The realtime datum, spatial topological datum, datum of facility property, and the function of operating the datum are enveloped in class of spatial entity, and then set up object of spatial entity.
应用推荐