Loading...
Searching...
No Matches
itkParameterFileParser.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef itkParameterFileParser_h
#define itkParameterFileParser_h
#include "itkObject.h"
#include "itkObjectFactory.h"
#include "itkMacro.h"
#include <map>
#include <string>
#include <vector>
namespace itk
{
class ParameterFileParser : public Object
{
public:
ITK_DISALLOW_COPY_AND_MOVE(ParameterFileParser);
using Self = ParameterFileParser;
using Superclass = Object;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(ParameterFileParser, Object);
using ParameterValuesType = std::vector<std::string>;
using ParameterMapType = std::map<std::string, ParameterValuesType>;
itkSetStringMacro(ParameterFileName);
itkGetStringMacro(ParameterFileName);
const ParameterMapType &
GetParameterMap() const;
void
ReadParameterFile();
std::string
ReturnParameterFileAsString();
static ParameterMapType
ReadParameterMap(const std::string & fileName);
static ParameterMapType
ConvertToParameterMap(const std::string & text);
protected:
ParameterFileParser();
~ParameterFileParser() override;
private:
std::string m_ParameterFileName{};
ParameterMapType m_ParameterMap{};
};
} // end of namespace itk
#endif // end itkParameterFileParser_h
itk::ParameterFileParser::~ParameterFileParser
~ParameterFileParser() override
itk::ParameterFileParser::ParameterMapType
std::map< std::string, ParameterValuesType > ParameterMapType
Definition itkParameterFileParser.h:97
itk::ParameterFileParser::ParameterValuesType
std::vector< std::string > ParameterValuesType
Definition itkParameterFileParser.h:96
itk::ParameterFileParser::Self
ParameterFileParser Self
Definition itkParameterFileParser.h:84
itk::ParameterFileParser::ReturnParameterFileAsString
std::string ReturnParameterFileAsString()
itk::ParameterFileParser::GetParameterMap
const ParameterMapType & GetParameterMap() const
itk::ParameterFileParser::m_ParameterFileName
std::string m_ParameterFileName
Definition itkParameterFileParser.h:132
itk::ParameterFileParser::Pointer
SmartPointer< Self > Pointer
Definition itkParameterFileParser.h:86
itk::ParameterFileParser::ReadParameterFile
void ReadParameterFile()
itk::ParameterFileParser::ParameterFileParser
ParameterFileParser()
itk::ParameterFileParser::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(ParameterFileParser)
itk::ParameterFileParser::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkParameterFileParser.h:87
itk::ParameterFileParser::Superclass
Object Superclass
Definition itkParameterFileParser.h:85
itk::ParameterFileParser::ReadParameterMap
static ParameterMapType ReadParameterMap(const std::string &fileName)
itk::ParameterFileParser::ConvertToParameterMap
static ParameterMapType ConvertToParameterMap(const std::string &text)
itk::ParameterFileParser::m_ParameterMap
ParameterMapType m_ParameterMap
Definition itkParameterFileParser.h:133
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |