OpenASIP 2.2
Loading...
Searching...
No Matches
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}
#define assert(condition)
void setStatusText(std::string status)
static ProximMachineStateWindow * machineStateWindow()

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: