CMS 3D CMS Logo

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 FWGeometryTableView FWTableView FWTriggerTableView FW3DViewBase FWGlimpseView FWLegoViewBase FWRPZView FWHLTTriggerTableView FWL1TriggerTableView FW3DView FWISpyView FWEveLegoView FWHFView

List of all members.

Public Member Functions

virtual void addTo (FWConfiguration &) const
 FWConfigurableParameterizable (unsigned int iVersion=1)
virtual void setFrom (const FWConfiguration &)
unsigned int version () const
virtual ~FWConfigurableParameterizable ()

Private Member Functions

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

Private Attributes

unsigned int m_version

Detailed Description

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

Usage: <usage>

Definition at line 31 of file FWConfigurableParameterizable.h.


Constructor & Destructor Documentation

FWConfigurableParameterizable::FWConfigurableParameterizable ( unsigned int  iVersion = 1)

Definition at line 32 of file FWConfigurableParameterizable.cc.

                                                                                  :
   m_version(iVersion)
{
}
FWConfigurableParameterizable::~FWConfigurableParameterizable ( ) [virtual]

Definition at line 42 of file FWConfigurableParameterizable.cc.

{
}
FWConfigurableParameterizable::FWConfigurableParameterizable ( const FWConfigurableParameterizable ) [private]

Member Function Documentation

void FWConfigurableParameterizable::addTo ( FWConfiguration oTo) const [virtual]

Implements FWConfigurable.

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

Definition at line 77 of file FWConfigurableParameterizable.cc.

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

Referenced by FWGUIManager::addTo().

{
   for(const_iterator it =begin(), itEnd = end();
       it != itEnd;
       ++it) {
      (*it)->addTo(oTo);
   }
}
const FWConfigurableParameterizable& FWConfigurableParameterizable::operator= ( const FWConfigurableParameterizable ) [private]
void FWConfigurableParameterizable::setFrom ( const FWConfiguration iFrom) [virtual]

Implements FWConfigurable.

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

Definition at line 62 of file FWConfigurableParameterizable.cc.

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

{
   //need a way to handle versioning
   assert(iFrom.version() == m_version);
   for(const_iterator it =begin(), itEnd = end();
       it != itEnd;
       ++it) {
      (*it)->setFrom(iFrom);
   }
}
unsigned int FWConfigurableParameterizable::version ( ) const [inline]

Definition at line 41 of file FWConfigurableParameterizable.h.

References m_version.

Referenced by FWGUIManager::addTo(), FWEveView::setFrom(), and FWTriggerTableView::setFrom().

                                {
      return m_version;
   }

Member Data Documentation

Definition at line 55 of file FWConfigurableParameterizable.h.

Referenced by setFrom(), and version().