Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef OPERATIONACTOR_H_HEADER_INCLUDED_C16E28BD
00020 #define OPERATIONACTOR_H_HEADER_INCLUDED_C16E28BD
00021
00022 #include "mitkCommon.h"
00023
00024 namespace mitk
00025 {
00026
00027 class Operation;
00028 class OperationEvent;
00029
00031 #define mitkCheckOperationTypeMacro(OperationType, operation, newOperationName) \
00032 mitk::OperationType *newOperationName= dynamic_cast<mitk::OperationType *>(operation);\
00033 if (newOperationName == NULL)\
00034 {\
00035 itkWarningMacro("Recieved wrong type of operation!");\
00036 return;\
00037 }\
00038
00039
00040
00041
00042
00043 class MITK_CORE_EXPORT OperationActor
00044 {
00045 public:
00046 virtual ~OperationActor() {};
00047 virtual void ExecuteOperation(Operation* operation) = 0;
00048 };
00049 }
00050
00051
00052 #endif