CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
FWEnumParameter Class Reference

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

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

Public Member Functions

bool addEntry (Long_t id, const std::string &txt)
 
const std::map< Long_t, std::string > & entryMap () const
 
 FWEnumParameter ()
 
 FWEnumParameter (FWParameterizable *iParent, const std::string &iName, const long &iDefault=0, long iMin=-1, long iMax=-1)
 
template<class K >
 FWEnumParameter (FWParameterizable *iParent, const std::string &iName, K iCallback, const long &iDefault=0, long iMin=-1, long iMax=-1)
 
- Public Member Functions inherited from FWGenericParameterWithRange< T >
 FWGenericParameterWithRange (void)
 
 FWGenericParameterWithRange (FWParameterizable *iParent, const std::string &iName, const T &iDefault=T(), T iMin=-1, T iMax=-1)
 
template<class K >
 FWGenericParameterWithRange (FWParameterizable *iParent, const std::string &iName, K iCallback, const T &iDefault=T(), T iMin=-1, T iMax=-1)
 
T max () const
 
T min () const
 
- Public Member Functions inherited from FWGenericParameter< T >
void addTo (FWConfiguration &iTo) const override
 
 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)
 
void setFrom (const FWConfiguration &iFrom) override
 
T value () const
 
- Public Member Functions inherited from FWParameterBase
 FWParameterBase (FWParameterizable *iParent, const std::string &iName)
 
const std::string & name () const
 
 ~FWParameterBase () override
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
virtual ~FWConfigurable ()
 

Private Member Functions

 FWEnumParameter (const FWEnumParameter &)=delete
 
const FWEnumParameteroperator= (const FWEnumParameter &)=delete
 

Private Attributes

std::map< Long_t, std::string > m_enumEntries
 

Additional Inherited Members

- Public Types inherited from FWGenericParameter< T >
typedef T value_type
 
- Public Attributes inherited from FWGenericParameter< T >
sigc::signal< void, Tchanged_
 

Detailed Description

Description: Specialization of FWLongParameter to allow drop-down menu GUI.

Usage: <usage>

Definition at line 29 of file FWEnumParameter.h.

Constructor & Destructor Documentation

FWEnumParameter::FWEnumParameter ( )
inline

Definition at line 33 of file FWEnumParameter.h.

Referenced by entryMap().

33  : FWLongParameter()
34  {}
FWParameters::Long FWLongParameter
Definition: FWParameters.h:35
FWEnumParameter::FWEnumParameter ( FWParameterizable iParent,
const std::string &  iName,
const long &  iDefault = 0,
long  iMin = -1,
long  iMax = -1 
)
inline

Definition at line 36 of file FWEnumParameter.h.

40  :
41  FWLongParameter(iParent, iName, iDefault, iMin, iMax)
42  {}
FWParameters::Long FWLongParameter
Definition: FWParameters.h:35
template<class K >
FWEnumParameter::FWEnumParameter ( FWParameterizable iParent,
const std::string &  iName,
iCallback,
const long &  iDefault = 0,
long  iMin = -1,
long  iMax = -1 
)
inline

Definition at line 45 of file FWEnumParameter.h.

50  :
51  FWLongParameter(iParent, iName, iCallback, iDefault, iMin, iMax)
52  {}
FWParameters::Long FWLongParameter
Definition: FWParameters.h:35
FWEnumParameter::FWEnumParameter ( const FWEnumParameter )
privatedelete

Member Function Documentation

bool FWEnumParameter::addEntry ( Long_t  id,
const std::string &  txt 
)
inline

Definition at line 60 of file FWEnumParameter.h.

References m_enumEntries.

Referenced by CmsShowCommon::CmsShowCommon(), FW3DViewBase::FW3DViewBase(), FWEveView::FWEveView(), FWGeometryTableView::FWGeometryTableView(), FWLegoViewBase::FWLegoViewBase(), and FWViewEnergyScale::FWViewEnergyScale().

61  {
62  return m_enumEntries.insert(std::make_pair(id, txt)).second;
63  }
std::map< Long_t, std::string > m_enumEntries
const std::map<Long_t, std::string>& FWEnumParameter::entryMap ( ) const
inline

Definition at line 65 of file FWEnumParameter.h.

References FWEnumParameter(), m_enumEntries, and operator=().

Referenced by FWEnumParameterSetter::build().

65 { return m_enumEntries; }
std::map< Long_t, std::string > m_enumEntries
const FWEnumParameter& FWEnumParameter::operator= ( const FWEnumParameter )
privatedelete

Referenced by entryMap().

Member Data Documentation

std::map<Long_t, std::string> FWEnumParameter::m_enumEntries
private

Definition at line 72 of file FWEnumParameter.h.

Referenced by addEntry(), and entryMap().