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

#include <ProximComponentStatusCmd.hh>

Inheritance diagram for ProximComponentStatusCmd:
Inheritance graph
Collaboration diagram for ProximComponentStatusCmd:
Collaboration graph

Public Member Functions

 ProximComponentStatusCmd (std::string status)
 
virtual ~ProximComponentStatusCmd ()
 
virtual bool Do ()
 
- Public Member Functions inherited from ComponentCommand
 ComponentCommand ()
 
virtual ~ComponentCommand ()
 
wxWindow * parentWindow ()
 
void setParentWindow (wxWindow *window)
 

Private Attributes

std::string status_
 

Detailed Description

Command for showing component status in the ProximMachineStatus Window.

Definition at line 42 of file ProximComponentStatusCmd.hh.

Constructor & Destructor Documentation

◆ ProximComponentStatusCmd()

ProximComponentStatusCmd::ProximComponentStatusCmd ( std::string  status)

The Constructor.

Parameters
partMachine component to be displayed in the status widgets of the MachineWindow.

Definition at line 44 of file ProximComponentStatusCmd.cc.

45  :
47  status_(status) {
48 
49 }

◆ ~ProximComponentStatusCmd()

ProximComponentStatusCmd::~ProximComponentStatusCmd ( )
virtual

The Destructor.

Definition at line 55 of file ProximComponentStatusCmd.cc.

55  {
56 }

Member Function Documentation

◆ Do()

bool ProximComponentStatusCmd::Do ( )
virtual

Executes the command.

Implements ComponentCommand.

Definition at line 63 of file ProximComponentStatusCmd.cc.

63  {
64 
65  ProximMachineStateWindow* machineWindow =
67 
68  assert(machineWindow != NULL);
69 
70  machineWindow->setStatusText(status_);
71  return true;
72 }

References assert, ProximToolbox::machineStateWindow(), ProximMachineStateWindow::setStatusText(), and status_.

Here is the call graph for this function:

Member Data Documentation

◆ status_

std::string ProximComponentStatusCmd::status_
private

Definition at line 48 of file ProximComponentStatusCmd.hh.

Referenced by Do().


The documentation for this class was generated from the following files:
ProximMachineStateWindow::setStatusText
void setStatusText(std::string status)
Definition: ProximMachineStateWindow.cc:274
ProximMachineStateWindow
Definition: ProximMachineStateWindow.hh:56
ComponentCommand::ComponentCommand
ComponentCommand()
Definition: ComponentCommand.cc:38
assert
#define assert(condition)
Definition: Application.hh:86
ProximToolbox::machineStateWindow
static ProximMachineStateWindow * machineStateWindow()
Definition: ProximToolbox.cc:123
ProximComponentStatusCmd::status_
std::string status_
Definition: ProximComponentStatusCmd.hh:48