15 #ifndef __elxConfiguration_H__
16 #define __elxConfiguration_H__
18 #include "itkObject.h"
55 typedef itk::SmartPointer< Self >
Pointer;
80 itkGetStringMacro( ParameterFileName );
81 itkSetStringMacro( ParameterFileName );
101 itkSetMacro( ElastixLevel,
unsigned int );
102 itkGetConstMacro( ElastixLevel,
unsigned int );
105 itkSetMacro( TotalNumberOfElastixLevels,
unsigned int );
106 itkGetConstMacro( TotalNumberOfElastixLevels,
unsigned int );
134 const std::string & parameterName )
const
144 const unsigned int entry_nr,
const bool printThisErrorMessage )
146 std::string errorMessage =
"";
148 parameterValue, parameterName, entry_nr,
149 printThisErrorMessage, errorMessage );
150 if( errorMessage !=
"" )
152 xl::xout[
"error" ] << errorMessage;
162 const unsigned int entry_nr )
164 std::string errorMessage =
"";
166 parameterValue, parameterName, entry_nr, errorMessage );
167 if( errorMessage !=
"" )
169 xl::xout[
"error" ] << errorMessage;
179 const std::string & prefix,
180 const unsigned int entry_nr,
const int default_entry_nr,
181 const bool printThisErrorMessage )
const
183 std::string errorMessage =
"";
185 parameterValue, parameterName, prefix, entry_nr, default_entry_nr,
186 printThisErrorMessage, errorMessage );
187 if( errorMessage !=
"" )
189 xl::xout[
"error" ] << errorMessage;
199 const std::string & prefix,
200 const unsigned int entry_nr,
const int default_entry_nr )
const
202 std::string errorMessage =
"";
204 parameterValue, parameterName, prefix, entry_nr, default_entry_nr,
206 if( errorMessage !=
"" )
208 xl::xout[
"error" ] << errorMessage;
218 const std::string & parameterName,
219 const unsigned int entry_nr_start,
220 const unsigned int entry_nr_end,
221 const bool printThisErrorMessage )
const
223 std::string errorMessage =
"";
225 parameterValues, parameterName, entry_nr_start, entry_nr_end,
226 printThisErrorMessage, errorMessage );
227 if( errorMessage !=
"" )
229 xl::xout[
"error" ] << errorMessage;
265 #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)
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
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
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
std::map< std::string, std::string > CommandLineArgumentMapType