18 #ifndef __elxConfiguration_H__ 19 #define __elxConfiguration_H__ 21 #include "itkObject.h" 58 typedef itk::SmartPointer< Self >
Pointer;
83 itkGetStringMacro( ParameterFileName );
84 itkSetStringMacro( ParameterFileName );
93 virtual int Initialize(
const CommandLineArgumentMapType & _arg );
95 virtual int Initialize(
const CommandLineArgumentMapType & _arg,
104 itkSetMacro( ElastixLevel,
unsigned int );
105 itkGetConstMacro( ElastixLevel,
unsigned int );
108 itkSetMacro( TotalNumberOfElastixLevels,
unsigned int );
109 itkGetConstMacro( TotalNumberOfElastixLevels,
unsigned int );
137 const std::string & parameterName )
const 147 const unsigned int entry_nr,
const bool printThisErrorMessage )
149 std::string errorMessage =
"";
151 parameterValue, parameterName, entry_nr,
152 printThisErrorMessage, errorMessage );
153 if( errorMessage !=
"" )
155 xl::xout[
"error" ] << errorMessage;
165 const unsigned int entry_nr )
167 std::string errorMessage =
"";
169 parameterValue, parameterName, entry_nr, errorMessage );
170 if( errorMessage !=
"" )
172 xl::xout[
"error" ] << errorMessage;
182 const std::string & prefix,
183 const unsigned int entry_nr,
const int default_entry_nr,
184 const bool printThisErrorMessage )
const 186 std::string errorMessage =
"";
188 parameterValue, parameterName, prefix, entry_nr, default_entry_nr,
189 printThisErrorMessage, errorMessage );
190 if( errorMessage !=
"" )
192 xl::xout[
"error" ] << errorMessage;
202 const std::string & prefix,
203 const unsigned int entry_nr,
const int default_entry_nr )
const 205 std::string errorMessage =
"";
207 parameterValue, parameterName, prefix, entry_nr, default_entry_nr,
209 if( errorMessage !=
"" )
211 xl::xout[
"error" ] << errorMessage;
221 const std::string & parameterName,
222 const unsigned int entry_nr_start,
223 const unsigned int entry_nr_end,
224 const bool printThisErrorMessage )
const 226 std::string errorMessage =
"";
228 parameterValues, parameterName, entry_nr_start, entry_nr_end,
229 printThisErrorMessage, errorMessage );
230 if( errorMessage !=
"" )
232 xl::xout[
"error" ] << errorMessage;
268 #endif // end #ifndef __elxConfiguration_H__ BaseComponent Superclass2
std::map< std::string, ParameterValuesType > ParameterMapType
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)
virtual bool GetPrintErrorMessages(void)
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
itk::SmartPointer< const Self > ConstPointer
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
ParameterFileParserPointer m_ParameterFileParser
itk::SmartPointer< Self > Pointer
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
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
std::map< std::string, std::string > CommandLineArgumentMapType