OpenASIP 2.2
Loading...
Searching...
No Matches
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.
 
CommandThreadoperator= (const CommandThread &)
 Assignment not allowed.
 

Private Attributes

std::string cmd_
 Command to be executed.
 

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}
std::string cmd_
Command to be executed.

◆ ~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}
static bool runShellCommand(const std::string command)

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: