CParamTranslator Class Referenceabstract

#include <mia/core/paramtranslator.hh>

Inheritance diagram for CParamTranslator:
[legend]

Public Member Functions

void add_parameter (const std::string &name, CParameter *param)
 
void check_parameters ()
 
 CParamTranslator (const char *name)
 
virtual void do_get_help_xml (CXMLElement &root) const
 
const std::string get_descr () const
 
void get_help (std::ostream &os) const
 
void get_help_xml (CXMLElement &root) const
 
const char * get_name () const
 
void get_short_help (std::ostream &os) const
 
void set_parameters (const CParsedOptions &options)
 
virtual ~CParamTranslator ()
 

Protected Member Functions

CParamListget_parameters ()
 

Detailed Description

Definition at line 34 of file paramtranslator.hh.

Constructor & Destructor Documentation

CParamTranslator::CParamTranslator ( const char *  name)
virtual CParamTranslator::~CParamTranslator ( )
virtual

Member Function Documentation

void CParamTranslator::add_parameter ( const std::string &  name,
CParameter param 
)

Add a parameter to the parameter list. If the name of the parameter already exists this function throws an invalid_argument exception.

Parameters
nameName of the new parameter
paramthe actual parameter

Referenced by TImageCombinerFilterPlugin< Image >::TImageCombinerFilterPlugin().

void CParamTranslator::check_parameters ( )

This function checks, whether all requzired parameters have really been set. It throws an invalid_argument

Referenced by TFactory< P >::create().

virtual void CParamTranslator::do_get_help_xml ( CXMLElement root) const
virtual
const std::string CParamTranslator::get_descr ( ) const
Returns
the description of the translator
void CParamTranslator::get_help ( std::ostream &  os) const
void CParamTranslator::get_help_xml ( CXMLElement root) const
const char* CParamTranslator::get_name ( ) const
Returns
the name of the translator
CParamList& CParamTranslator::get_parameters ( )
protected
void CParamTranslator::get_short_help ( std::ostream &  os) const
void CParamTranslator::set_parameters ( const CParsedOptions options)

Set the parameter according to the given option map. If the parameter name does not exists, the function will throw an invalid_argument exception. Depending on the parameter type setting it might also throw an invalid_argument exception.

Parameters
optionsthe options map

Referenced by TFactory< P >::create().


The documentation for this class was generated from the following file: