GRASS Programmer's Manual
6.4.2(2012)
|
Data Structures | |
class | grassTask |
This class holds the structures needed for filling by the parser. More... | |
class | processTask |
A ElementTree handler for the –interface-description output, as defined in grass-interface.dtd. More... |
Functions | |
def | get_interface_description |
Returns the XML description for the GRASS cmd. | |
def | parse_interface |
Parse interface of given GRASS module. | |
def | command_info |
Returns meta information for any GRASS command as dictionary with entries for description, keywords, usage, flags, and parameters, e.g. |
def python.task.command_info | ( | cmd | ) |
Returns meta information for any GRASS command as dictionary with entries for description, keywords, usage, flags, and parameters, e.g.
Definition at line 464 of file task.py.
References python.task.parse_interface().
def python.task.get_interface_description | ( | cmd | ) |
Returns the XML description for the GRASS cmd.
The DTD must be located in $GISBASE/etc/grass-interface.dtd, otherwise the parser will not succeed.
cmd | command (name of GRASS module) |
Definition at line 421 of file task.py.
Referenced by python.task.parse_interface().
def python.task.parse_interface | ( | name, | |
parser = processTask , |
|||
blackList = None |
|||
) |
Parse interface of given GRASS module.
name | name of GRASS module to be parsed |
Definition at line 449 of file task.py.
References python.core.decode(), python.task.get_interface_description(), and python.core.parser().
Referenced by python.task.command_info().