Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Core
Install
elxInstallFunctions.h
Go to the documentation of this file.
1
/*======================================================================
2
3
This file is part of the elastix software.
4
5
Copyright (c) University Medical Center Utrecht. All rights reserved.
6
See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7
details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notices for more information.
12
13
======================================================================*/
14
15
#ifndef __elxInstallFunctions_h
16
#define __elxInstallFunctions_h
17
18
#include "
elxComponentDatabase.h
"
19
20
namespace
elastix
21
{
22
23
42
template
<
class
TAnyItkObject>
43
class
InstallFunctions
44
{
45
public
:
46
48
typedef
InstallFunctions
Self
;
49
typedef
TAnyItkObject
AnyItkObjectType
;
50
52
typedef
ComponentDatabase::ObjectType
ObjectType
;
53
typedef
ComponentDatabase::ObjectPointer
ObjectPointer
;
54
58
typedef
ComponentDatabase::IndexType
IndexType
;
59
61
typedef
ComponentDatabase::ComponentDescriptionType
ComponentDescriptionType
;
62
64
static
ObjectPointer
Creator
(
void
)
65
{
66
return
dynamic_cast<
ObjectType
*
>
( AnyItkObjectType::New().GetPointer() );
67
}
68
72
static
int
InstallComponent
(
73
const
ComponentDescriptionType
& name,
74
IndexType
i,
ComponentDatabase
* cdb )
75
{
76
return
cdb->
SetCreator
( name, i,
Self::Creator
);
77
}
78
79
};
// end class InstallFunctions
80
81
82
}
// end namespace elastix
83
84
85
#endif // end #ifndef __elxInstallFunctions_h
86
Generated on 27-06-2013 for elastix by
1.8.3.1