Jump to content

SOM:Emitter: Difference between revisions

From NikiWiki
Prokushev (talk | contribs)
mNo edit summary
Prokushev (talk | contribs)
No edit summary
Line 1: Line 1:
Emitter is a subclass of '''[[SOMTEmitC]]''' class. Emitter used to produce output file using [[template]] file from object graph of [[SOM:Interface Definition Language|Interface Definition Language]] file. Phisically emitter represented as DLL with name EMIT<identificator>.DLL. For C headers emith.dll emitter DLL is used. For C++ headers emitxh.dll emitter DLL is used. Emitter DLL contains only one entry with ordinal 1 and name 'emit'.
Emitter is a subclass of '''[[SOMTEmitC]]''' class. Emitter used to produce output file using [[template]] file from object graph of [[SOM:Interface Definition Language|Interface Definition Language]] file. Phisically emitter represented as DLL with name EMIT<identificator>.DLL. For C headers emith.dll emitter DLL is used. For C++ headers emitxh.dll emitter DLL is used. Emitter DLL contains only one entry with ordinal 1 and name '''emit'''.


  SOMEXTERN FILE * SOMLINK emit(char *file, Entry * cls, Stab * stab);
  SOMEXTERN FILE * SOMLINK emit(char *file, Entry * cls, Stab * stab);
'''emit''' function creates emitter object (from emitter class, which based on '''[[SOMTEmitC]]''') and calls '''somtGenerateSections''' method.
Usualy emitter file can be generated using '''newemit.cmd''' script (can be found at hobbes in SOMObjects toolkit).
newemit -C <className> <file_stem>

Revision as of 10:38, 5 November 2004

Emitter is a subclass of SOMTEmitC class. Emitter used to produce output file using template file from object graph of Interface Definition Language file. Phisically emitter represented as DLL with name EMIT<identificator>.DLL. For C headers emith.dll emitter DLL is used. For C++ headers emitxh.dll emitter DLL is used. Emitter DLL contains only one entry with ordinal 1 and name emit.

SOMEXTERN FILE * SOMLINK emit(char *file, Entry * cls, Stab * stab);

emit function creates emitter object (from emitter class, which based on SOMTEmitC) and calls somtGenerateSections method.

Usualy emitter file can be generated using newemit.cmd script (can be found at hobbes in SOMObjects toolkit).

newemit -C <className> <file_stem>