GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
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. More... | |
def | parse_interface |
Parse interface of given GRASS module. More... | |
def | command_info |
Returns meta information for any GRASS command as dictionary with entries for description, keywords, usage, flags, and parameters, e.g. More... | |
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 474 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 429 of file task.py.
References python.core.decode().
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 459 of file task.py.
References python.core.decode(), python.task.get_interface_description(), and python.core.parser().
Referenced by python.task.command_info().