OpenASIP  2.0
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
EditPolicy Class Referenceabstract

#include <EditPolicy.hh>

Inheritance diagram for EditPolicy:
Inheritance graph
Collaboration diagram for EditPolicy:
Collaboration graph

Public Member Functions

 EditPolicy ()
 
virtual ~EditPolicy ()
 
EditParthost () const
 
void setHost (EditPart *host)
 
virtual ComponentCommandgetCommand (Request *request)=0
 
virtual bool canHandle (Request *request) const =0
 

Protected Attributes

EditParthost_
 Host EditPart of this EditPolicy. More...
 

Private Member Functions

EditPolicyoperator= (EditPolicy &old)
 Assignment not allowed. More...
 
 EditPolicy (EditPolicy &old)
 Copying not allowed. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ EditPolicy() [1/2]

EditPolicy::EditPolicy ( )

The Constructor.

Definition at line 41 of file EditPolicy.cc.

41  : host_(NULL) {
42 }

◆ ~EditPolicy()

EditPolicy::~EditPolicy ( )
virtual

The Destructor.

Definition at line 47 of file EditPolicy.cc.

47  {
48 }

◆ EditPolicy() [2/2]

EditPolicy::EditPolicy ( EditPolicy old)
private

Copying not allowed.

Member Function Documentation

◆ canHandle()

virtual bool EditPolicy::canHandle ( Request request) const
pure virtual

◆ getCommand()

virtual ComponentCommand* EditPolicy::getCommand ( Request request)
pure virtual

◆ host()

EditPart* EditPolicy::host ( ) const

◆ operator=()

EditPolicy& EditPolicy::operator= ( EditPolicy old)
private

Assignment not allowed.

◆ setHost()

void EditPolicy::setHost ( EditPart host)

Member Data Documentation

◆ host_

EditPart* EditPolicy::host_
protected

The documentation for this class was generated from the following files:
EditPolicy::host_
EditPart * host_
Host EditPart of this EditPolicy.
Definition: EditPolicy.hh:74