test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
FWConfigurableParameterizable Class Reference

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

Inheritance diagram for FWConfigurableParameterizable:
FWParameterizable FWConfigurable CmsShowCommon FWProxyBuilderConfiguration FWViewBase FWViewEnergyScale FWEveView FWGeometryTableViewBase FWTableView FWTriggerTableView FW3DViewBase FWGlimpseView FWLegoViewBase FWRPZView FWGeometryTableView FWOverlapTableView FWHLTTriggerTableView FWL1TriggerTableView

Public Member Functions

virtual void addTo (FWConfiguration &) const
 
 FWConfigurableParameterizable (unsigned int iVersion=1)
 
virtual void setFrom (const FWConfiguration &)
 
unsigned int version () const
 
virtual ~FWConfigurableParameterizable ()
 
- Public Member Functions inherited from FWParameterizable
void add (FWParameterBase *)
 
const_iterator begin () const
 
const_iterator end () const
 
 FWParameterizable ()
 
virtual ~FWParameterizable ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
virtual ~FWConfigurable ()
 

Private Member Functions

 FWConfigurableParameterizable (const FWConfigurableParameterizable &)
 
const
FWConfigurableParameterizable
operator= (const FWConfigurableParameterizable &)
 

Private Attributes

unsigned int m_version
 

Additional Inherited Members

- Public Types inherited from FWParameterizable
typedef std::vector
< FWParameterBase * >
::const_iterator 
const_iterator
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 30 of file FWConfigurableParameterizable.h.

Constructor & Destructor Documentation

FWConfigurableParameterizable::FWConfigurableParameterizable ( unsigned int  iVersion = 1)

Definition at line 32 of file FWConfigurableParameterizable.cc.

32  :
33  m_version(iVersion)
34 {
35 }
FWConfigurableParameterizable::~FWConfigurableParameterizable ( )
virtual

Definition at line 42 of file FWConfigurableParameterizable.cc.

43 {
44 }
FWConfigurableParameterizable::FWConfigurableParameterizable ( const FWConfigurableParameterizable )
private

Member Function Documentation

void FWConfigurableParameterizable::addTo ( FWConfiguration oTo) const
virtual

Implements FWConfigurable.

Reimplemented in FWGeometryTableViewBase, FWEveView, FWTableView, FWProxyBuilderConfiguration, FWTriggerTableView, FWLegoViewBase, CmsShowCommon, FW3DViewBase, FWRPZView, and FWGlimpseView.

Definition at line 77 of file FWConfigurableParameterizable.cc.

References FWParameterizable::begin(), and FWParameterizable::end().

Referenced by CmsShowCommon::addTo(), FWTriggerTableView::addTo(), FWProxyBuilderConfiguration::addTo(), FWTableView::addTo(), FWEveView::addTo(), FWGeometryTableViewBase::addTo(), and FWGUIManager::addTo().

78 {
79  for(const_iterator it =begin(), itEnd = end();
80  it != itEnd;
81  ++it) {
82  (*it)->addTo(oTo);
83  }
84 }
std::vector< FWParameterBase * >::const_iterator const_iterator
const_iterator begin() const
const_iterator end() const
const FWConfigurableParameterizable& FWConfigurableParameterizable::operator= ( const FWConfigurableParameterizable )
private
void FWConfigurableParameterizable::setFrom ( const FWConfiguration iFrom)
virtual

Implements FWConfigurable.

Reimplemented in FWTableView, FWEveView, FWTriggerTableView, FW3DViewBase, FWViewEnergyScale, FWGeometryTableView, CmsShowCommon, FWProxyBuilderConfiguration, FWRPZView, FWOverlapTableView, FWLegoViewBase, and FWGlimpseView.

Definition at line 62 of file FWConfigurableParameterizable.cc.

References assert(), FWParameterizable::begin(), FWParameterizable::end(), m_version, and FWConfiguration::version().

Referenced by FWTableView::setFrom().

63 {
64  //need a way to handle versioning
65  assert(iFrom.version() == m_version);
66  for(const_iterator it =begin(), itEnd = end();
67  it != itEnd;
68  ++it) {
69  (*it)->setFrom(iFrom);
70  }
71 }
std::vector< FWParameterBase * >::const_iterator const_iterator
const_iterator begin() const
assert(m_qm.get())
unsigned int version() const
const_iterator end() const
unsigned int FWConfigurableParameterizable::version ( ) const
inline

Member Data Documentation

unsigned int FWConfigurableParameterizable::m_version
private

Definition at line 54 of file FWConfigurableParameterizable.h.

Referenced by setFrom(), and version().