From RTSC-Pedia

Jump to: navigation, search
revision tip
—— LANDSCAPE orientation
[printable version]  [offline version]offline version generated on 04-Aug-2010 21:08 UTC

XDCscript - xdc.om

Top-Level object of current domain model

Contents

Description

Every script executes in the domain of some "object model". Each model has a set of global objects that are appropriate for scripts executing within the model. For example, configuration scripts (*.cfg) execute in the configuration model and can freely reference the global Program object to read or set properties of the the current program. Similarly, build scripts (package.bld and config.bld) execute in the build model and can access the global Build and Pkg objects.

The properties of the xdc.om can be used by scripts to reflect on the current model. For example, the xdc.om.$name property can be used to distinguish between the configuration model and the build model.

See Also

XDCscript - xdc.om.$curpkg A model-specific current package
XDCscript - xdc.om.$homepkg A model-specific home package
XDCscript - xdc.om.$modules Array of all modules in the current model
XDCscript - xdc.om.$name Model name
XDCscript - xdc.om.$packages Array of all packages within the current model
XDCscript - xdc.om.$root A model-specific root object
XDCscript - xdc.om.Package-Name A hash table of all loaded packages

[printable version]  [offline version]offline version generated on 04-Aug-2010 21:08 UTC
Copyright © 2008 The Eclipse Foundation. All Rights Reserved


Views
Personal tools
package reference