#include <Fireworks/Core/interface/FWGenericParameter.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
virtual void | addTo (FWConfiguration &iTo) const |
FWGenericParameter () | |
FWGenericParameter (FWParameterizable *iParent, const std::string &iName, const T &iDefault=T()) | |
template<class K > | |
FWGenericParameter (FWParameterizable *iParent, const std::string &iName, K iCallback, const T &iDefault=T()) | |
void | set (T iValue) |
virtual void | setFrom (const FWConfiguration &iFrom) |
T | value () const |
Public Attributes | |
sigc::signal< void, T > | changed_ |
Private Member Functions | |
FWGenericParameter (const FWGenericParameter &) | |
const FWGenericParameter & | operator= (const FWGenericParameter &) |
Private Attributes | |
T | m_value |
Description: Provides access to a simple generic parameter.
Usage:
Definition at line 32 of file FWGenericParameter.h.
typedef T FWGenericParameter< T >::value_type |
Definition at line 35 of file FWGenericParameter.h.
FWGenericParameter< T >::FWGenericParameter | ( | ) | [inline] |
Definition at line 37 of file FWGenericParameter.h.
: FWParameterBase(0, "invalid") {}
FWGenericParameter< T >::FWGenericParameter | ( | FWParameterizable * | iParent, |
const std::string & | iName, | ||
const T & | iDefault = T() |
||
) | [inline] |
Definition at line 41 of file FWGenericParameter.h.
: FWParameterBase(iParent,iName), m_value(iDefault) {}
FWGenericParameter< T >::FWGenericParameter | ( | FWParameterizable * | iParent, |
const std::string & | iName, | ||
K | iCallback, | ||
const T & | iDefault = T() |
||
) | [inline] |
Definition at line 49 of file FWGenericParameter.h.
References FWGenericParameter< T >::changed_.
: FWParameterBase(iParent,iName), m_value(iDefault) { changed_.connect(iCallback); }
FWGenericParameter< T >::FWGenericParameter | ( | const FWGenericParameter< T > & | ) | [private] |
virtual void FWGenericParameter< T >::addTo | ( | FWConfiguration & | iTo | ) | const [inline, virtual] |
Implements FWConfigurable.
Definition at line 63 of file FWGenericParameter.h.
References FWConfiguration::addKeyValue(), FWGenericParameter< T >::m_value, FWParameterBase::name(), and asciidump::s.
{ std::ostringstream s; s<<m_value; iTo.addKeyValue(name(),FWConfiguration(s.str())); }
const FWGenericParameter& FWGenericParameter< T >::operator= | ( | const FWGenericParameter< T > & | ) | [private] |
void FWGenericParameter< T >::set | ( | T | iValue | ) | [inline] |
Definition at line 81 of file FWGenericParameter.h.
References FWGenericParameter< T >::changed_, and FWGenericParameter< T >::m_value.
Referenced by CmsShowCommon::addTo(), FWLongParameterSetter::doUpdate(), FWDoubleParameterSetter::doUpdate(), FWBoolParameterSetter::doUpdate(), FWStringParameterSetter::doUpdate(), FWEnumParameterSetter::doUpdate(), FWLegoViewBase::FWLegoViewBase(), FWTriggerTableView::processChanged(), FWLegoViewBase::setFrom(), FWRPZView::setFrom(), FWViewEnergyScale::SetFromCmsShowCommonConfig(), CmsShowCommon::setGeomColor(), CmsShowCommon::setGeomTransparency(), FWGeometryTableView::setPath(), CmsShowCommon::switchBackground(), and FWGeometryTableView::updateFilter().
virtual void FWGenericParameter< T >::setFrom | ( | const FWConfiguration & | iFrom | ) | [inline, virtual] |
Implements FWConfigurable.
Definition at line 73 of file FWGenericParameter.h.
References FWGenericParameter< T >::changed_, HDQMDatabaseProducer::config, FWGenericParameter< T >::m_value, FWParameterBase::name(), asciidump::s, and FWConfiguration::valueForKey().
Referenced by FWProxyBuilderConfiguration::assertParam(), and FWTriggerTableView::setFrom().
{ if (const FWConfiguration* config = iFrom.valueForKey(name()) ) { std::istringstream s(config->value()); s>>m_value; } changed_(m_value); }
T FWGenericParameter< T >::value | ( | ) | const [inline] |
Definition at line 59 of file FWGenericParameter.h.
References FWGenericParameter< T >::m_value.
Referenced by FWStringParameterSetter::build(), FWDoubleParameterSetter::build(), FWEnumParameterSetter::build(), FWBoolParameterSetter::build(), FWLongParameterSetter::build(), FWViewEnergyScale::calculateScaleFactor(), FWEveView::cameraGuideChanged(), FWRPZView::doFishEyeDistortion(), FWRPZView::doPreScaleDistortion(), FWRPZView::doShiftOriginToBeamSpot(), FWHLTTriggerTableView::fillTable(), FWL1TriggerTableView::fillTable(), FWRPZView::FWRPZView(), CmsShowCommon::gamma(), FWGeometryTableView::getAutoExpand(), FWGeometryTableView::getFilter(), FWGeometryTableView::getIgnoreVisLevelWhenFilter(), FWViewEnergyScale::getPlotEt(), CmsShowCommon::getProjTrackBreaking(), CmsShowCommon::getRnrPTBMarkers(), FWGeometryTableView::getTopNodeIdx(), FWGeometryTableView::getVisLevel(), FWGeometryTableView::getVolumeMode(), FWEveView::isEnergyScaleGlobal(), FWTriggerTableView::isProcessValid(), FWEveView::pointLineScalesChanged(), FWEveView::populateController(), FWRPZView::projectionAxesLabelSize(), FWTriggerTableView::resetCombo(), FWEveView::saveImageTo(), FWLegoViewBase::setAutoRebin(), FWLegoViewBase::setCell2DMode(), FWEveView::setContext(), FWLegoViewBase::setContext(), CmsShowCommon::setDrawBreakMarkers(), FWRPZView::setEtaRng(), FWLegoViewBase::setFontSizein2D(), CmsShowCommon::setFrom(), FWGeometryTableView::setFrom(), FWTriggerTableView::setFrom(), CmsShowCommon::setGamma(), FWLegoViewBase::setPixelsPerBin(), FWLegoViewBase::setProjectionMode(), CmsShowCommon::setTrackBreakMode(), FWGlimpseView::showAxes(), FWGlimpseView::showCylinder(), FWLegoViewBase::showOverlay(), FWRPZView::showProjectionAxes(), FWGeometryTableView::updateFilter(), FWEveView::useGlobalEnergyScaleChanged(), and FWProxyBuilderConfiguration::value().
{ return m_value; }
sigc::signal<void,T> FWGenericParameter< T >::changed_ |
Definition at line 87 of file FWGenericParameter.h.
Referenced by FWProxyBuilderConfiguration::assertParam(), CmsShowCommon::CmsShowCommon(), FW3DViewBase::FW3DViewBase(), FWEveView::FWEveView(), FWGenericParameter< T >::FWGenericParameter(), FWGeometryTableView::FWGeometryTableView(), FWGlimpseView::FWGlimpseView(), FWLegoViewBase::FWLegoViewBase(), FWRPZView::FWRPZView(), FWTriggerTableView::FWTriggerTableView(), FWViewEnergyScale::FWViewEnergyScale(), FWGenericParameter< T >::set(), FWRPZView::setContext(), FW3DViewBase::setContext(), and FWGenericParameter< T >::setFrom().
T FWGenericParameter< T >::m_value [private] |
Definition at line 95 of file FWGenericParameter.h.
Referenced by FWGenericParameter< T >::addTo(), FWGenericParameter< T >::set(), FWGenericParameter< T >::setFrom(), and FWGenericParameter< T >::value().