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 FWGeometryTableViewBase FWTableView FWTriggerTableView FW3DViewBase FWGlimpseView FWLegoViewBase FWRPZView FWGeometryTableView FWOverlapTableView FWHLTTriggerTableView FWL1TriggerTableView

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 33 of file FWConfigurableParameterizable.cc.

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

Definition at line 43 of file FWConfigurableParameterizable.cc.

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

Member Function Documentation

void FWConfigurableParameterizable::addTo ( FWConfiguration oTo) const [virtual]
const FWConfigurableParameterizable& FWConfigurableParameterizable::operator= ( const FWConfigurableParameterizable ) [private]
void FWConfigurableParameterizable::setFrom ( const FWConfiguration iFrom) [virtual]

Implements FWConfigurable.

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

Definition at line 63 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().