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

#include <ProximSetMachineWinStatusCmd.hh>

Inheritance diagram for ProximSetMachineWinStatusCmd:
Inheritance graph
Collaboration diagram for ProximSetMachineWinStatusCmd:
Collaboration graph

Public Member Functions

 ProximSetMachineWinStatusCmd (EditPart *part)
 
virtual ~ProximSetMachineWinStatusCmd ()
 
virtual bool Do ()
 
- Public Member Functions inherited from ComponentCommand
 ComponentCommand ()
 
virtual ~ComponentCommand ()
 
wxWindow * parentWindow ()
 
void setParentWindow (wxWindow *window)
 

Private Attributes

EditPartpart_
 

Detailed Description

Command for setting the machine window status bar text.

Definition at line 44 of file ProximSetMachineWinStatusCmd.hh.

Constructor & Destructor Documentation

◆ ProximSetMachineWinStatusCmd()

ProximSetMachineWinStatusCmd::ProximSetMachineWinStatusCmd ( EditPart part)

The Constructor.

Definition at line 43 of file ProximSetMachineWinStatusCmd.cc.

44  :
46  part_(part) {
47 
48 }

◆ ~ProximSetMachineWinStatusCmd()

ProximSetMachineWinStatusCmd::~ProximSetMachineWinStatusCmd ( )
virtual

The Destructor.

Definition at line 54 of file ProximSetMachineWinStatusCmd.cc.

54  {
55 }

Member Function Documentation

◆ Do()

bool ProximSetMachineWinStatusCmd::Do ( )
virtual

Executes the command.

Returns
True, if the command was succesfully executed, false otherwise.

Implements ComponentCommand.

Definition at line 65 of file ProximSetMachineWinStatusCmd.cc.

65  {
66 
67  ProximMachineStateWindow* machineWindow =
69 
70  if (machineWindow == NULL) {
71  // Machine Window does not exist.
72  return false;
73  }
74 
75  TTAMachine::Bus* bus = dynamic_cast<Bus*>(part_->model());
76 
77  assert(bus != NULL);
78 
79  const Program& program = ProximToolbox::program();
80 
81  Instruction
82 }

References assert, ProximToolbox::machineStateWindow(), EditPart::model(), part_, ProximToolbox::program(), and program.

Here is the call graph for this function:

Member Data Documentation

◆ part_

EditPart* ProximSetMachineWinStatusCmd::part_
private

Definition at line 51 of file ProximSetMachineWinStatusCmd.hh.

Referenced by Do().


The documentation for this class was generated from the following files:
TTAMachine::Bus
Definition: Bus.hh:53
ProximToolbox::program
static const TTAProgram::Program & program()
Definition: ProximToolbox.cc:88
ProximMachineStateWindow
Definition: ProximMachineStateWindow.hh:56
ComponentCommand::ComponentCommand
ComponentCommand()
Definition: ComponentCommand.cc:38
assert
#define assert(condition)
Definition: Application.hh:86
ProximSetMachineWinStatusCmd::part_
EditPart * part_
Definition: ProximSetMachineWinStatusCmd.hh:51
EditPart::model
TTAMachine::MachinePart * model() const
ProximToolbox::machineStateWindow
static ProximMachineStateWindow * machineStateWindow()
Definition: ProximToolbox.cc:123
program
find Finds info of the inner loops in the program
Definition: InnerLoopFinder.cc:80