go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxComponentLoader.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright UMC Utrecht and contributors
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 
19 #ifndef __elxComponentLoader_h
20 #define __elxComponentLoader_h
21 
22 #include "elxComponentDatabase.h"
23 #include "xoutmain.h"
24 
25 namespace elastix
26 {
27 
41 class ComponentLoader : public itk::Object
42 {
43 public:
44 
47  typedef itk::Object Superclass;
48  typedef itk::SmartPointer< Self > Pointer;
49  typedef itk::SmartPointer< const Self > ConstPointer;
50 
52  itkNewMacro( Self );
53  itkTypeMacro( ComponentLoader, Object );
54 
58 
60  itkSetObjectMacro( ComponentDatabase, ComponentDatabaseType );
61  itkGetObjectMacro( ComponentDatabase, ComponentDatabaseType );
62 
65  virtual int LoadComponents( const char * argv0 );
66 
68  virtual void UnloadComponents( void );
69 
70 protected:
71 
74  virtual ~ComponentLoader();
75 
76  ComponentDatabasePointer m_ComponentDatabase;
77 
79  virtual int InstallSupportedImageTypes( void );
80 
81 private:
82 
84  ComponentLoader( const Self & ); // purposely not implemented
85  void operator=( const Self & ); // purposely not implemented
86 
87 };
88 
89 } //end namespace elastix
90 
91 #endif // #ifndef __elxComponentLoader_h
virtual int LoadComponents(const char *argv0)
itk::SmartPointer< Self > Pointer
itk::SmartPointer< Self > Pointer
virtual void UnloadComponents(void)
ComponentDatabase ComponentDatabaseType
Determines which components (metrics, transforms, etc.) are available.
The ComponentDatabase class is a class that stores the New() functions of all components.
itk::SmartPointer< const Self > ConstPointer
ComponentDatabasePointer m_ComponentDatabase
virtual int InstallSupportedImageTypes(void)
ComponentDatabaseType::Pointer ComponentDatabasePointer
void operator=(const Self &)


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo