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 #include "mitkAction.h"
00019
00020 namespace mitk {
00021
00025 Action::Action( int actionId )
00026 :m_ActionId( actionId ), m_PropertiesList(NULL)
00027 {}
00028
00029 Action::~Action()
00030 {}
00031
00035 void Action::AddProperty(const char* propertyKey, BaseProperty* property )
00036 {
00037 if (m_PropertiesList.IsNull())
00038 m_PropertiesList = PropertyList::New();
00039 m_PropertiesList->SetProperty( propertyKey, property );
00040 }
00041
00042
00046 int Action::GetActionId() const
00047 {
00048 return m_ActionId;
00049 }
00050
00051
00055 mitk::BaseProperty* Action::GetProperty( const char *propertyKey ) const
00056 {
00057 if (m_PropertiesList.IsNotNull())
00058 return m_PropertiesList->GetProperty( propertyKey );
00059 else
00060 return NULL;
00061 }
00062
00063 }