dotgen TCL engine command
dotgen genom
Those commands implement access to genom program parameters or general information.
dotgen genom program
-
Return the absolute path to the GenoM executable currently running.
dotgen genom cmdline
-
Returns a string containing the options passed to the
genom3
program. dotgen genom version
-
Returns the full version string of the
genom3
program. dotgen genom templates
-
Return the list of all currently available templates name.
dotgen genom debug
-
Returns a boolean indicating whether genom was invoked in debugging mode or not.
dotgen genom verbose
-
Returns a boolean indicating whether genom was invoked in verbose mode or not.
dotgen template
Those commands return information about the template currently being parsed.
dotgen template name
-
Return the current template name.
dotgen template dir
-
Return a path to the template source directory (the directory holding the template.tcl file).
dotgen template builtindir
-
Return a path to the genom builtin templates source directory.
dotgen template tmpdir
-
Return a path to the temporary directory where the template engine writes its temporary files.
dotgen input
Those commands return information about the current genom input file (.gen file).
dotgen input notice
-
Return the copyright notice (as text) found in the .gen file. This notice can actually be any text and is the content of the special comment starting with the three caracters
/
*
/
, near the beginning of the .gen file. dotgen input deps
-
Return the comprehensive list of input files processed so far. This includes the input
.gen
file itself, plus any other file required, directly or indirectly, via a#include
directive. This list is typically used to generate dependency information in a Makefile. dotgen input path
-
Return the directory from which input files are read. This corresponds to the -C option passed to
genom3
, or the empty string if no such option was given.
dotgen parse {file|string} 'data'
Parse additional .gen
data either from a file or from a string. When
parsing is successful, the corresponding objects are exported to the
backend.
'file|string' |
Specify if parsing from a file or from a string. |
'data' |
When parsing from a file, data is the file name. When parsing from a string, data is the string to be parsed. |
dotgen types ['pattern']
This command returns the list of type
objects
that are defined in the current .gen
file. This list may be
filtered with the optional 'pattern' argument. Each element of the returned
list is a type command that can be used to access detailed information about
that particular type object.
'pattern' |
Filter the type names with 'pattern'. The filter may contain a glob-like
pattern (with |
dotgen components ['pattern']
This command returns the list of
components
that are defined in the
current .gen
file. This list may be filtered with the optional 'pattern'
argument. Each element of the returned list is a component command that can
be used to access detailed information about each particular component
object.
'pattern' |
Filter the component name. The filter may contain a glob-like pattern (with
|
A list of component objects of class component
.
dotgen interfaces ['pattern']
This command returns the list of interfaces that are defined in the current
.gen
file. This list may be filtered with the optional 'pattern'
argument. Each element of the returned list is an interface command that can
be used to access detailed information about each particular interface
object.
- 'pattern'
-
Filter the interface name. The filter may contain a glob-like pattern (with
*
or?
wildcards). Only the components whose name match the pattern will be returned.
A list of interface objects of class interface
.