首页 / base / oaBuildInfo

oaBuildInfo

模块: oapy._oa._base 导入: from oapy._oa import _base

概览

oaBuildInfooapy 中可用,可通过 _base 模块访问。

本页汇总 oaBuildInfo 当前在 oapy 中可用的 Python 接口。

详细说明

The oaBuildInfo class implements a utility class for registering and querying build information for libraries and executables。 When OpenAccess is built, each library and executable registers its own oaBuildInfo object。 Applications can query by name for a specific oaBuildInfo object or can get the list of all registered packages。 The build process defines the build name, time, and number, which helps identify the OpenAccess code in use。 This information can be important when considering data compatibility。 See Compatibility for OpenAccess Applications and Data in the Programmers Guide for more information。

构造函数

_base.oaBuildInfo(packageNameIn, buildNameIn, buildTimeIn, buildNumberIn, majorReleaseNum=OA_MAJOR_RELEASE_NUM, minorReleaseNum=OA_MINOR_RELEASE_NUM)

obj = _base.oaBuildInfo(packageNameIn, buildNameIn, buildTimeIn, buildNumberIn, majorReleaseNum=OA_MAJOR_RELEASE_NUM, minorReleaseNum=OA_MINOR_RELEASE_NUM)

方法总览

状态 Python 调用
obj.getPackageName()
obj.getBuildName()
obj.getBuildTime()
obj.getBuildNumber()
obj.getMajorReleaseNum()
obj.getMinorReleaseNum()
_base.oaBuildInfo.find(packageName)
_base.oaBuildInfo.getPackages(packagesIn)
_base.oaBuildInfo.getPackages()
_base.oaBuildInfo.getNumPackages()
_base.oaBuildInfo.getPlatformName()
_base.oaBuildInfo.getAppBuildName()

方法说明

obj.getPackageName()

绑定状态: 已绑定

Python 调用: obj.getPackageName()

This function returns the package name associated with this oaBuildInfo object。

Python 示例

from oapy._oa import _base

# assume obj is a oaBuildInfo
obj.getPackageName()

obj.getBuildName()

绑定状态: 已绑定

Python 调用: obj.getBuildName()

This function returns the build name associated with this oaBuildInfo object。

Python 示例

from oapy._oa import _base

# assume obj is a oaBuildInfo
obj.getBuildName()

obj.getBuildTime()

绑定状态: 已绑定

Python 调用: obj.getBuildTime()

This function returns the build time string associated with this oaBuildInfo object。

Python 示例

from oapy._oa import _base

# assume obj is a oaBuildInfo
obj.getBuildTime()

obj.getBuildNumber()

绑定状态: 已绑定

Python 调用: obj.getBuildNumber()

This function returns the build number associated with this oaBuildInfo object。

Python 示例

from oapy._oa import _base

# assume obj is a oaBuildInfo
obj.getBuildNumber()

obj.getMajorReleaseNum()

绑定状态: 已绑定

Python 调用: obj.getMajorReleaseNum()

This function returns the major release number associated with this oaBuildInfo object。

Python 示例

from oapy._oa import _base

# assume obj is a oaBuildInfo
obj.getMajorReleaseNum()

obj.getMinorReleaseNum()

绑定状态: 已绑定

Python 调用: obj.getMinorReleaseNum()

This function returns the minor release number associated with this oaBuildInfo object。

Python 示例

from oapy._oa import _base

# assume obj is a oaBuildInfo
obj.getMinorReleaseNum()

_base.oaBuildInfo.find(packageName)

绑定状态: 已绑定

Python 调用: _base.oaBuildInfo.find(packageName)

This function searches the list of build packages for a package with the specified name。 NULL is returned if no such package is registered。

参数

  • packageName: The name of the build package to find。

Python 示例

from oapy._oa import _base

_base.oaBuildInfo.find(packageName)

_base.oaBuildInfo.getPackages(packagesIn)

绑定状态: 已绑定

Python 调用: _base.oaBuildInfo.getPackages(packagesIn)

This function returns a pointer to the list of registered packages that have registered build information。 This list can be traversed as follows: oaBuildInfo *packages = oaBuildInfo::getPackages (); for ( oaUInt4 i = 0; i < oaBuildInfo::getNumPackages (); i++) { oaBuildInfo pkg = packages[i]; 。 }。

Python 示例

from oapy._oa import _base

_base.oaBuildInfo.getPackages(packagesIn)

_base.oaBuildInfo.getPackages()

绑定状态: 已绑定

Python 调用: _base.oaBuildInfo.getPackages()

This function returns the array of oaBuildInfo pointers stored by this class。

参数

  • packagesIn: The array of oaBuildInfo pointers in which to return the list of packages。

Python 示例

from oapy._oa import _base

_base.oaBuildInfo.getPackages()

_base.oaBuildInfo.getNumPackages()

绑定状态: 已绑定

Python 调用: _base.oaBuildInfo.getNumPackages()

This function returns the number of registered build packages。

Python 示例

from oapy._oa import _base

_base.oaBuildInfo.getNumPackages()

_base.oaBuildInfo.getPlatformName()

绑定状态: 已绑定

Python 调用: _base.oaBuildInfo.getPlatformName()

This static function returns the platform name string associated with this oaBuildInfo object。 For a complete list of the OpenAccess supported platforms, refer to the OpenAccess 2.2 Installation and Configuration Notes 。

Python 示例

from oapy._oa import _base

_base.oaBuildInfo.getPlatformName()

_base.oaBuildInfo.getAppBuildName()

绑定状态: 已绑定

Python 调用: _base.oaBuildInfo.getAppBuildName()

This function returns the OpenAccess build name that the application is compiled against。

Python 示例

from oapy._oa import _base

_base.oaBuildInfo.getAppBuildName()