Emitter: Difference between revisions
Appearance
Moved from netlabs.org |
mNo edit summary |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
Emitter is a subclass of | Emitter is a subclass of [[SOMTEmitC]] class. Emitter used to produce output file using template file from object graph of [[the SOM Interface Definition Language]] file. Physically 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 | '''emit''' function creates emitter object (from emitter class, which based on SOMTEmitC) and calls '''somtGenerateSections''' method. | ||
Usually emitter file can be generated using '''newemit.cmd''' script (can be found at Hobbes in SOMObjects toolkit). | |||
newemit -C <className> <file_stem> | |||
[[Category:SOM Classes]] |
Latest revision as of 19:28, 14 March 2018
Emitter is a subclass of SOMTEmitC class. Emitter used to produce output file using template file from object graph of the SOM Interface Definition Language file. Physically 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.
Usually emitter file can be generated using newemit.cmd script (can be found at Hobbes in SOMObjects toolkit).
newemit -C <className> <file_stem>