OpenASIP  2.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CommandThread Class Reference

#include <CommandThread.hh>

Inheritance diagram for CommandThread:
Inheritance graph
Collaboration diagram for CommandThread:
Collaboration graph

Public Member Functions

 CommandThread (const std::string &cmd)
 
virtual ~CommandThread ()
 
virtual ExitCode Entry ()
 

Private Member Functions

 CommandThread (const CommandThread &)
 Copying not allowed. More...
 
CommandThreadoperator= (const CommandThread &)
 Assignment not allowed. More...
 

Private Attributes

std::string cmd_
 Command to be executed. More...
 

Detailed Description

Class for running command in its own thread.

Definition at line 43 of file CommandThread.hh.

Constructor & Destructor Documentation

◆ CommandThread() [1/2]

CommandThread::CommandThread ( const std::string &  cmd)
explicit

Constructor.

Parameters
cmdCommand to be runned by thread.

Definition at line 44 of file CommandThread.cc.

44  : wxThread(), cmd_(cmd) {
45 }

◆ ~CommandThread()

CommandThread::~CommandThread ( )
virtual

Destructor.

Definition at line 50 of file CommandThread.cc.

50  {
51 }

◆ CommandThread() [2/2]

CommandThread::CommandThread ( const CommandThread )
private

Copying not allowed.

Member Function Documentation

◆ Entry()

wxThread::ExitCode CommandThread::Entry ( )
virtual

Entry point of the thread.

Returns
Thread exit code.

Definition at line 59 of file CommandThread.cc.

59  {
61  return 0;
62 }

References cmd_, and FileSystem::runShellCommand().

Here is the call graph for this function:

◆ operator=()

CommandThread& CommandThread::operator= ( const CommandThread )
private

Assignment not allowed.

Member Data Documentation

◆ cmd_

std::string CommandThread::cmd_
private

Command to be executed.

Definition at line 57 of file CommandThread.hh.

Referenced by Entry().


The documentation for this class was generated from the following files:
FileSystem::runShellCommand
static bool runShellCommand(const std::string command)
CommandThread::cmd_
std::string cmd_
Command to be executed.
Definition: CommandThread.hh:57