CMS 3D CMS Logo

Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes

FWGenericParameter< T > Class Template Reference

#include <Fireworks/Core/interface/FWGenericParameter.h>

Inheritance diagram for FWGenericParameter< T >:
FWParameterBase FWConfigurable FWGenericParameterWithRange< T > FWEnumParameter

List of all members.

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)
value () const

Public Attributes

sigc::signal< void, T > changed_

Private Member Functions

 FWGenericParameter (const FWGenericParameter &)
const FWGenericParameteroperator= (const FWGenericParameter &)

Private Attributes

m_value

Detailed Description

template<class T>
class FWGenericParameter< T >

Description: Provides access to a simple generic parameter.

Usage:

Definition at line 32 of file FWGenericParameter.h.


Member Typedef Documentation

template<class T >
typedef T FWGenericParameter< T >::value_type

Definition at line 35 of file FWGenericParameter.h.


Constructor & Destructor Documentation

template<class T >
FWGenericParameter< T >::FWGenericParameter ( ) [inline]

Definition at line 37 of file FWGenericParameter.h.

   : FWParameterBase(0, "invalid")
   {}
template<class T >
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)
   {}
template<class T >
template<class K >
FWGenericParameter< T >::FWGenericParameter ( FWParameterizable iParent,
const std::string &  iName,
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);
   }
template<class T >
FWGenericParameter< T >::FWGenericParameter ( const FWGenericParameter< T > &  ) [private]

Member Function Documentation

template<class T >
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()));
   }
template<class T >
const FWGenericParameter& FWGenericParameter< T >::operator= ( const FWGenericParameter< T > &  ) [private]
template<class T >
void FWGenericParameter< T >::set ( iValue) [inline]
template<class T >
virtual void FWGenericParameter< T >::setFrom ( const FWConfiguration iFrom) [inline, virtual]
template<class T >
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::doShiftOrigin(), FWHLTTriggerTableView::fillTable(), FWL1TriggerTableView::fillTable(), FWGeometryTableManager::filterOff(), FWGeometryTableManager::FWGeometryTableManager(), FWRPZView::FWRPZView(), CmsShowCommon::gamma(), FWViewEnergyScale::getPlotEt(), CmsShowCommon::getProjTrackBreaking(), CmsShowCommon::getRnrPTBMarkers(), FWEveView::isEnergyScaleGlobal(), FWTriggerTableView::isProcessValid(), FWEveView::pointLineScalesChanged(), FWEveView::populateController(), FWTriggerTableView::resetCombo(), FWEveView::saveImageTo(), FWLegoViewBase::setAutoRebin(), FWLegoViewBase::setCell2DMode(), FWEveView::setContext(), FWLegoViewBase::setContext(), CmsShowCommon::setDrawBreakMarkers(), FWRPZView::setEtaRng(), FWLegoViewBase::setFontSizein2D(), CmsShowCommon::setFrom(), FWTriggerTableView::setFrom(), CmsShowCommon::setGamma(), FWLegoViewBase::setPixelsPerBin(), FWLegoViewBase::setProjectionMode(), FWGeometryTableManager::setTableContent(), CmsShowCommon::setTrackBreakMode(), FWGlimpseView::showAxes(), FWGlimpseView::showCylinder(), FWLegoViewBase::showOverlay(), FWRPZView::showProjectionAxes(), FWGeometryTableManager::updateFilter(), and FWEveView::useGlobalEnergyScaleChanged().

                   {
      return m_value;
   }

Member Data Documentation

template<class T >
sigc::signal<void,T> FWGenericParameter< T >::changed_
template<class T >
T FWGenericParameter< T >::m_value [private]