From RTSC-Pedia
revision tip
LANDSCAPE orientation[printable version] [offline version] | offline version generated on 02-Oct-2009 22:10 UTC |
XDCscript - Module-Object.create
Create a new Instance object managed by this unit
Contents |
Synopsis
| var «inst» = «Mod».create(«params») |
where «Mod» is a module object and «params» are creation parameters specific to this module.
Description
A special method that returns a new Instance object, «inst», managed by the module «Mod».
Example
| var Defaults = xdc.useModule("xdc.runtime.Defaults"); var LoggerBuf = xdc.useModule("xdc.runtime.LoggerBuf"); /* create and initialize a LoggerBuf Params object */ var params = new LoggerBuf.Params; params.numEntries = 128; /* create new LoggerBuf instance object and assign it as the default logger */ Defaults.common$.logger = Logger.create(params); |
[printable version] [offline version] | offline version generated on 02-Oct-2009 22:10 UTC |
Copyright © 2008 The Eclipse Foundation. All Rights Reserved