#include #include #include using namespace RAT; void FitterComponent::SetI( const std::string& /*name*/, const int /*value*/ ) { } void FitterComponent::SetD( const std::string& /*name*/, const double /*value*/ ) { } void FitterComponent::SetS( const std::string& /*name*/, const std::string& /*value*/ ) { } void FitterComponent::SetI( const std::vector< std::pair< std::string, int > >& commands ) { try { for( std::vector< std::pair< std::string, int > >::const_iterator iTer = commands.begin(); iTer != commands.end(); ++iTer ) this->SetI( iTer->first, iTer->second ); } catch( Processor::ParamUnknown& e ) { Log::Die( "FitterComponent " + GetName() + "::SetI Parameter unknown " + e.fParam ); } catch( Processor::ParamInvalid& e ) { Log::Die( "FitterComponent " + GetName() + "::SetI Parameter invalid " + e.fMsg ); } } void FitterComponent::SetD( const std::vector< std::pair< std::string, double > >& commands ) { try { for( std::vector< std::pair< std::string, double > >::const_iterator iTer = commands.begin(); iTer != commands.end(); ++iTer ) this->SetD( iTer->first, iTer->second ); } catch( Processor::ParamUnknown& e ) { Log::Die( "FitterComponent " + GetName() + "::SetD Parameter unknown " + e.fParam ); } catch( Processor::ParamInvalid& e ) { Log::Die( "FitterComponent " + GetName() + "::SetD Parameter invalid " + e.fMsg ); } } void FitterComponent::SetS( const std::vector< std::pair< std::string, std::string > >& commands ) { try { for( std::vector< std::pair< std::string, std::string > >::const_iterator iTer = commands.begin(); iTer != commands.end(); ++iTer ) this->SetS( iTer->first, iTer->second ); } catch( Processor::ParamUnknown& e ) { Log::Die( "FitterComponent " + GetName() + "::SetS Parameter unknown " + e.fParam ); } catch( Processor::ParamInvalid& e ) { Log::Die( "FitterComponent " + GetName() + "::SetS Parameter invalid " + e.fMsg ); } }