CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/Fireworks/Core/src/FWRepresentationCheckerBase.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     Core
00004 // Class  :     FWRepresentationCheckerBase
00005 //
00006 // Implementation:
00007 //     <Notes on implementation>
00008 //
00009 // Original Author:  Chris Jones
00010 //         Created:  Tue Nov 11 14:08:50 EST 2008
00011 // $Id: FWRepresentationCheckerBase.cc,v 1.3 2010/06/02 22:36:36 chrjones Exp $
00012 //
00013 
00014 // system include files
00015 
00016 // user include files
00017 #include "Fireworks/Core/interface/FWRepresentationCheckerBase.h"
00018 
00019 
00020 //
00021 // constants, enums and typedefs
00022 //
00023 
00024 //
00025 // static data member definitions
00026 //
00027 
00028 //
00029 // constructors and destructor
00030 //
00031 FWRepresentationCheckerBase::FWRepresentationCheckerBase(const std::string& iPurpose, 
00032                                                          unsigned int iBitPackedViews,
00033                                                          bool iRepresentsSubPart) :
00034    m_purpose(iPurpose), m_bitPackedViews(iBitPackedViews), m_representsSubPart(iRepresentsSubPart)
00035 {
00036 }
00037 
00038 // FWRepresentationCheckerBase::FWRepresentationCheckerBase(const FWRepresentationCheckerBase& rhs)
00039 // {
00040 //    // do actual copying here;
00041 // }
00042 
00043 FWRepresentationCheckerBase::~FWRepresentationCheckerBase()
00044 {
00045 }
00046 
00047 //
00048 // assignment operators
00049 //
00050 // const FWRepresentationCheckerBase& FWRepresentationCheckerBase::operator=(const FWRepresentationCheckerBase& rhs)
00051 // {
00052 //   //An exception safe implementation is
00053 //   FWRepresentationCheckerBase temp(rhs);
00054 //   swap(rhs);
00055 //
00056 //   return *this;
00057 // }
00058 
00059 //
00060 // member functions
00061 //
00062 
00063 //
00064 // const member functions
00065 //
00066 const std::string&
00067 FWRepresentationCheckerBase::purpose() const
00068 {
00069    return m_purpose;
00070 }
00071 
00072 unsigned int 
00073 FWRepresentationCheckerBase::bitPackedViews() const
00074 {
00075    return m_bitPackedViews;
00076 }
00077 
00078 bool FWRepresentationCheckerBase::representsSubPart() const
00079 {
00080    return m_representsSubPart;
00081 }
00082 //
00083 // static member functions
00084 //