OpenASIP
2.0
|
#include <EditPolicy.hh>
Public Member Functions | |
EditPolicy () | |
virtual | ~EditPolicy () |
EditPart * | host () const |
void | setHost (EditPart *host) |
virtual ComponentCommand * | getCommand (Request *request)=0 |
virtual bool | canHandle (Request *request) const =0 |
Protected Attributes | |
EditPart * | host_ |
Host EditPart of this EditPolicy. More... | |
Private Member Functions | |
EditPolicy & | operator= (EditPolicy &old) |
Assignment not allowed. More... | |
EditPolicy (EditPolicy &old) | |
Copying not allowed. More... | |
Determines how an EditPart acts when a Request is performed on it.
Converts a given Request to a Command if the EditPolicy supports the Request.
Definition at line 47 of file EditPolicy.hh.
EditPolicy::EditPolicy | ( | ) |
|
virtual |
|
private |
Copying not allowed.
|
pure virtual |
Tells whether this EditPolicy is able to handle a certain type of Request.
request | Request to be asked if it can be handled. |
Implemented in ProDeGCUEditPolicy, ProDeRFEditPolicy, ProDeBridgeEditPolicy, ProDeBusEditPolicy, ProDeFUEditPolicy, ProDeIUEditPolicy, ProDePortEditPolicy, ProDeSegmentEditPolicy, ProDeSocketEditPolicy, ProDeFUPortEditPolicy, ProDeIUPortEditPolicy, ProDeRFPortEditPolicy, ProDeSRPortEditPolicy, ProximBusEditPolicy, ProximFUEditPolicy, ProximIUEditPolicy, ProximPortEditPolicy, ProximRFEditPolicy, and ProximSocketEditPolicy.
|
pure virtual |
Returns the Command corresponding to the type of the Request.
request | Request to be handled. |
Implemented in ProDeGCUEditPolicy, ProDeRFEditPolicy, ProDeBridgeEditPolicy, ProDeBusEditPolicy, ProDeFUEditPolicy, ProDeIUEditPolicy, ProDePortEditPolicy, ProDeSegmentEditPolicy, ProDeSocketEditPolicy, ProDeFUPortEditPolicy, ProDeIUPortEditPolicy, ProDeRFPortEditPolicy, ProDeSRPortEditPolicy, ProximBusEditPolicy, ProximFUEditPolicy, ProximIUEditPolicy, ProximPortEditPolicy, ProximRFEditPolicy, and ProximSocketEditPolicy.
EditPart* EditPolicy::host | ( | ) | const |
Referenced by EditPart::installEditPolicy().
|
private |
Assignment not allowed.
void EditPolicy::setHost | ( | EditPart * | host | ) |
Referenced by EditPart::installEditPolicy().
|
protected |
Host EditPart of this EditPolicy.
Definition at line 74 of file EditPolicy.hh.
Referenced by ProximPortEditPolicy::canHandle(), ProDePortEditPolicy::canHandle(), ProDeSocketEditPolicy::canHandle(), ProDeSegmentEditPolicy::canHandle(), ProDePortEditPolicy::createConnectCmd(), ProDeSocketEditPolicy::createConnectCmd(), ProDeSegmentEditPolicy::createConnectCmd(), ProximIUEditPolicy::getCommand(), ProximFUEditPolicy::getCommand(), ProximBusEditPolicy::getCommand(), ProximPortEditPolicy::getCommand(), ProximRFEditPolicy::getCommand(), ProximSocketEditPolicy::getCommand(), ProDeRFPortEditPolicy::getCommand(), ProDeSRPortEditPolicy::getCommand(), ProDeFUPortEditPolicy::getCommand(), ProDeIUPortEditPolicy::getCommand(), ProDeSegmentEditPolicy::getCommand(), ProDeBusEditPolicy::getCommand(), ProDeFUEditPolicy::getCommand(), ProDeIUEditPolicy::getCommand(), ProDeBridgeEditPolicy::getCommand(), ProDePortEditPolicy::getCommand(), ProDeSocketEditPolicy::getCommand(), ProDeRFEditPolicy::getCommand(), and ProDeGCUEditPolicy::getCommand().