GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gui_modules.gcmd.CommandThread Class Reference

Create separate thread for command. More...

Inheritance diagram for gui_modules.gcmd.CommandThread:
Collaboration diagram for gui_modules.gcmd.CommandThread:

Public Member Functions

def __init__
def __del__
def run
 Run command.
def abort
 Abort running process, used by main thread to signal an abort.

Data Fields

 cmd
 stdin
 stdout
 stderr
 module
 error
 aborted
 message_format
 startTime

Detailed Description

Create separate thread for command.

Used for commands launched on the background.

Definition at line 441 of file gcmd.py.

Constructor & Destructor Documentation

def gui_modules.gcmd.CommandThread.__init__ (   self,
  cmd,
  stdin = None,
  stdout = sys.stdout,
  stderr = sys.stderr 
)
@param cmd command (given as list)
@param stdin standard input stream 
@param stdout redirect standard output or None
@param stderr redirect standard error output or None

Definition at line 445 of file gcmd.py.

def gui_modules.gcmd.CommandThread.__del__ (   self)

Definition at line 471 of file gcmd.py.

References gui_modules.gcmd.CommandThread.message_format.

Member Function Documentation

def gui_modules.gcmd.CommandThread.abort (   self)

Abort running process, used by main thread to signal an abort.

Definition at line 551 of file gcmd.py.

References gui_modules.gcmd.CommandThread._want_abort, and gui_modules.gcmd.RunCommand().

def gui_modules.gcmd.CommandThread.run (   self)

Run command.

Definition at line 477 of file gcmd.py.

References gui_modules.gcmd.Command.cmd, and gui_modules.gcmd.CommandThread.cmd.

Field Documentation

gui_modules.gcmd.CommandThread.aborted

Definition at line 463 of file gcmd.py.

gui_modules.gcmd.CommandThread.error

Definition at line 460 of file gcmd.py.

Referenced by gui_modules.workspace.ProcessGrcFile.read().

gui_modules.gcmd.CommandThread.message_format

Definition at line 468 of file gcmd.py.

Referenced by gui_modules.gcmd.CommandThread.__del__().

gui_modules.gcmd.CommandThread.module

Definition at line 459 of file gcmd.py.

gui_modules.gcmd.CommandThread.startTime

Definition at line 484 of file gcmd.py.

gui_modules.gcmd.CommandThread.stderr

Definition at line 457 of file gcmd.py.

gui_modules.gcmd.CommandThread.stdin

Definition at line 455 of file gcmd.py.

Referenced by gui_modules.gcmd.Popen.send().

gui_modules.gcmd.CommandThread.stdout

Definition at line 456 of file gcmd.py.


The documentation for this class was generated from the following file: