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

#include <Request.hh>

Inheritance diagram for Request:
Inheritance graph
Collaboration diagram for Request:
Collaboration graph

Public Types

enum  RequestType {
  NONE, MODIFY_REQUEST, DELETE_REQUEST, CONNECT_REQUEST,
  COPY_REQUEST, STATUS_REQUEST, DETAILS_REQUEST
}
 Data type for determining the type of a Request. More...
 

Public Member Functions

 Request (RequestType type)
 
virtual ~Request ()
 
void setType (RequestType type)
 
RequestType type () const
 

Private Member Functions

Requestoperator= (Request &old)
 Assignment not allowed. More...
 
 Request (Request &old)
 Copying not allowed. More...
 

Private Attributes

RequestType type_
 Determines type of this Request. More...
 

Detailed Description

Used to communicate with EditPart objects.

Type of the Request determines the function an EditPart should perform.

Definition at line 43 of file Request.hh.

Member Enumeration Documentation

◆ RequestType

Data type for determining the type of a Request.

Enumerator
NONE 

No type.

MODIFY_REQUEST 

Modfify request.

DELETE_REQUEST 

Delete request.

CONNECT_REQUEST 

Connect request.

COPY_REQUEST 

Copy request.

STATUS_REQUEST 

Status request.

DETAILS_REQUEST 

Detailed info request.

Definition at line 46 of file Request.hh.

46  {
47  NONE, ///< No type.
48  MODIFY_REQUEST, ///< Modfify request.
49  DELETE_REQUEST, ///< Delete request.
50  CONNECT_REQUEST, ///< Connect request.
51  COPY_REQUEST, ///< Copy request.
52  STATUS_REQUEST, ///< Status request.
53  DETAILS_REQUEST ///< Detailed info request.
54  };

Constructor & Destructor Documentation

◆ Request() [1/2]

Request::Request ( RequestType  type)
explicit

The Constructor.

Parameters
typeType of the Request.

Definition at line 41 of file Request.cc.

41 : type_(type) {}

◆ ~Request()

Request::~Request ( )
virtual

The Destructor.

Definition at line 46 of file Request.cc.

46 {}

◆ Request() [2/2]

Request::Request ( Request old)
private

Copying not allowed.

Member Function Documentation

◆ operator=()

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

Assignment not allowed.

◆ setType()

void Request::setType ( RequestType  type)

◆ type()

RequestType Request::type ( ) const

Member Data Documentation

◆ type_

RequestType Request::type_
private

Determines type of this Request.

Definition at line 69 of file Request.hh.


The documentation for this class was generated from the following files:
Request::type
RequestType type() const
Request::NONE
@ NONE
No type.
Definition: Request.hh:47
Request::DELETE_REQUEST
@ DELETE_REQUEST
Delete request.
Definition: Request.hh:49
Request::CONNECT_REQUEST
@ CONNECT_REQUEST
Connect request.
Definition: Request.hh:50
Request::type_
RequestType type_
Determines type of this Request.
Definition: Request.hh:69
Request::DETAILS_REQUEST
@ DETAILS_REQUEST
Detailed info request.
Definition: Request.hh:53
Request::COPY_REQUEST
@ COPY_REQUEST
Copy request.
Definition: Request.hh:51
Request::MODIFY_REQUEST
@ MODIFY_REQUEST
Modfify request.
Definition: Request.hh:48
Request::STATUS_REQUEST
@ STATUS_REQUEST
Status request.
Definition: Request.hh:52