Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
berryNamedHandleObject.cpp
Go to the documentation of this file.
1
/*===================================================================
2
3
BlueBerry Platform
4
5
Copyright (c) German Cancer Research Center,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
17
#include "
berryNamedHandleObject.h
"
18
19
#include "
berryCommandExceptions.h
"
20
21
namespace
berry
22
{
23
24
NamedHandleObject::NamedHandleObject
(
const
QString&
id
) :
25
HandleObject
(id)
26
{
27
28
}
29
30
QString
NamedHandleObject::GetDescription
()
const
31
{
32
if
(!this->
IsDefined
())
33
{
34
throw
NotDefinedException(
35
"Cannot get a description from an undefined object. "
//$NON-NLS-1$
36
+
id
);
37
}
38
39
return
description
;
40
}
41
42
QString
NamedHandleObject::GetName
()
const
43
{
44
if
(!this->
IsDefined
())
45
{
46
throw
NotDefinedException(
47
"Cannot get the name from an undefined object. "
+
id
);
48
}
49
50
return
name
;
51
}
52
53
}
berry
Definition:
QmitkPropertyItemModel.h:27
berry::NamedHandleObject::GetName
virtual QString GetName() const
Definition:
berryNamedHandleObject.cpp:42
berry::HandleObject::IsDefined
bool IsDefined() const
Definition:
berryHandleObject.cpp:55
berryCommandExceptions.h
berry::NamedHandleObject::GetDescription
virtual QString GetDescription() const
Definition:
berryNamedHandleObject.cpp:30
berryNamedHandleObject.h
berry::NamedHandleObject::name
QString name
Definition:
berryNamedHandleObject.h:49
berry::NamedHandleObject::description
QString description
Definition:
berryNamedHandleObject.h:43
berry::HandleObject
Definition:
berryHandleObject.h:52
berry::NamedHandleObject::NamedHandleObject
NamedHandleObject(const QString &id)
Definition:
berryNamedHandleObject.cpp:24
git
MITK
Plugins
org.blueberry.core.commands
src
common
berryNamedHandleObject.cpp
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1