- ... code.4.1
- Well, that is not
entirely correct; the code generators could indeed function, but the generated
code would have to be hard-coded in the generator's Java class. That's Just Bad,
especially for maintenance.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
- ... generator.4.2
- Note,
though, that the IDL2 generator is a subclass of the IDLGenerator abstract
base class. This base class is derived from CodeGenerator and holds the
common code for all IDL code generators.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
- ... MModuleDef).4.3
- You
must, at a minimum, create a template for MContainer, because that node is
always defined as an output node for code generation.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
- ...%(name)s.4.4
- This is not as
arbitrary as it may seem at first. Historically, the CCM Tools started out as a
Python tool, and this is the form that Python uses to retrieve values from a
hash table when printing a string.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
- ... list4.5
- See the CCM Tools web site at
http://ccmtools.sf.net/lists.php for more information.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
- ... earlier.4.6
- See the IDL3
generator base class for an example of a relatively simple language type
function implementation.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
- ...
files.4.7
- From the user perspective, the finalize function is thus
called once per run of the ccmtools-generate command.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
- ... table.4.8
- Actually, in case you were
wondering, this is where the template values from child nodes are added to the
values in the parent node's information. When the generator stores the result of
the getLocalValue function back in its internal variable hash, the value
actually gets added to the parent values in the hash table. Check out the code
generator base class for the gory details.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
- ... list.4.9
- See http://ccmtools.sf.net/lists.php for more information
about the CCM Tools mailing lists.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.