Jump to content

SOM:Interface Definition Language: Difference between revisions

From NikiWiki
EJoJo (talk | contribs)
No edit summary
No edit summary
Line 1: Line 1:
Interface Definition Language (IDL) is core of [http://en.wikipedia.org/wiki/System_Object_Model System Object Model]. All classes has definetion of its interface via IDL. With help of [[SOM Compiler]] IDL file can be translated to various formats, including various language bindings. For example, to produce C header you can run
The Interface Definition Language (IDL) is the core of the [http://en.wikipedia.org/wiki/System_Object_Model System Object Model]. Every class has a definition of its interface via IDL. With the help of the [[SOM Compiler]], an IDL file can be translated to various formats, including various language bindings. For example, to produce a C header you can run
  sc -s"h" somcls.idl
  sc -s"h" somcls.idl
to produce DEF file you can run
to produce a DEF file you can run
  sc -s"def" somcls.idl
  sc -s"def" somcls.idl
[[SOM Compiler]] uses [[emitter]] to produce corresponding language binding. You can create new bindings using [[Emitter Framework]].
The [[SOM Compiler]] uses an [[emitter]] to produce the corresponding language binding. You can create new bindings using the [[Emitter Framework]].

Revision as of 15:39, 28 November 2004

The Interface Definition Language (IDL) is the core of the System Object Model. Every class has a definition of its interface via IDL. With the help of the SOM Compiler, an IDL file can be translated to various formats, including various language bindings. For example, to produce a C header you can run

sc -s"h" somcls.idl

to produce a DEF file you can run

sc -s"def" somcls.idl

The SOM Compiler uses an emitter to produce the corresponding language binding. You can create new bindings using the Emitter Framework.