15 #ifndef __elxConfiguration_H__
16 #define __elxConfiguration_H__
18 #include "itkObject.h"
80 itkGetStringMacro( ParameterFileName );
81 itkSetStringMacro( ParameterFileName );
98 itkSetMacro( ElastixLevel,
unsigned int );
99 itkGetConstMacro( ElastixLevel,
unsigned int );
102 itkSetMacro( TotalNumberOfElastixLevels,
unsigned int );
103 itkGetConstMacro( TotalNumberOfElastixLevels,
unsigned int );
131 const std::string & parameterName )
const
140 const unsigned int entry_nr,
const bool printThisErrorMessage )
142 std::string errorMessage =
"";
144 parameterValue, parameterName, entry_nr,
145 printThisErrorMessage, errorMessage );
146 if ( errorMessage !=
"" )
157 const unsigned int entry_nr )
159 std::string errorMessage =
"";
161 parameterValue, parameterName, entry_nr, errorMessage );
162 if ( errorMessage !=
"" )
173 const std::string & prefix,
174 const unsigned int entry_nr,
const int default_entry_nr,
175 const bool printThisErrorMessage )
const
177 std::string errorMessage =
"";
179 parameterValue, parameterName, prefix, entry_nr, default_entry_nr,
180 printThisErrorMessage, errorMessage );
181 if ( errorMessage !=
"" )
192 const std::string & prefix,
193 const unsigned int entry_nr,
const int default_entry_nr )
const
195 std::string errorMessage =
"";
197 parameterValue, parameterName, prefix, entry_nr, default_entry_nr,
199 if ( errorMessage !=
"" )
210 const std::string & parameterName,
211 const unsigned int entry_nr_start,
212 const unsigned int entry_nr_end,
213 const bool printThisErrorMessage )
const
215 std::string errorMessage =
"";
217 parameterValues, parameterName, entry_nr_start, entry_nr_end,
218 printThisErrorMessage, errorMessage );
219 if ( errorMessage !=
"" )
258 #endif // end #ifndef __elxConfiguration_H__
BaseComponent Superclass2
bool ReadParameter(T ¶meterValue, const std::string ¶meterName, const std::string &prefix, const unsigned int entry_nr, const int default_entry_nr, const bool printThisErrorMessage) const
bool ReadParameter(T ¶meterValue, const std::string ¶meterName, const unsigned int entry_nr)
bool ReadParameter(T ¶meterValue, const std::string ¶meterName, const unsigned int entry_nr, const bool printThisErrorMessage)
std::map< std::string, std::string > CommandLineArgumentMapType
virtual bool GetPrintErrorMessages(void)
SmartPointer< Self > Pointer
std::vcl_size_t CountNumberOfParameterEntries(const std::string ¶meterName) const
bool ReadParameter(std::vector< T > ¶meterValues, const std::string ¶meterName, const unsigned int entry_nr_start, const unsigned int entry_nr_end, const bool printThisErrorMessage) const
virtual int BeforeAllTransformix(void)
unsigned int m_TotalNumberOfElastixLevels
unsigned int m_ElastixLevel
The BaseComponent class is a class that all elastix components should inherit from.
virtual bool IsInitialized(void) const
Implements functionality to get parameters from a parameter map.
bool ReadParameter(T ¶meterValue, const std::string ¶meterName, const std::string &prefix, const unsigned int entry_nr, const int default_entry_nr) const
ParameterMapInterfacePointer m_ParameterMapInterface
Implements functionality to read a parameter file.
itk::ParameterMapInterface ParameterMapInterfaceType
CommandLineArgumentMapType::value_type CommandLineEntryType
std::string m_ParameterFileName
void operator=(const Self &)
itk::ParameterFileParser ParameterFileParserType
itk::SmartPointer< Self > Pointer
ParameterFileParserPointer m_ParameterFileParser
virtual int Initialize(const CommandLineArgumentMapType &_arg)
CommandLineArgumentMapType m_CommandLineArgumentMap
A class that deals with user given parameters and command line arguments.
const std::string GetCommandLineArgument(const std::string &key) const
SmartPointer< Self > Pointer
virtual int BeforeAll(void)
virtual void PrintParameterFile(void) const
void SetCommandLineArgument(const std::string &key, const std::string &value)
ParameterFileParserType::Pointer ParameterFileParserPointer
ParameterMapInterfaceType::Pointer ParameterMapInterfacePointer
itk::SmartPointer< const Self > ConstPointer