/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/ProxyDict/ProxyDict-00-00-01/ProxyDict/IfdIntKey.h

Go to the documentation of this file.
00001 #ifndef IFDINTKEY_HH
00002 #define IFDINTKEY_HH
00003 //--------------------------------------------------------------------------
00004 // File and Version Information:
00005 //    $Id: IfdIntKey.h,v 1.1.1.1 2005/04/21 01:18:05 zhangy Exp $
00006 //
00007 // Description:
00008 //
00009 // Author List:
00010 //    Ed Frank                        University of Pennsylvania
00011 //
00012 // History:
00013 //    Ed Frank      17 Nov 96         Creation of first version
00014 //
00015 // Bugs:
00016 //
00017 //------------------------------------------------------------------------
00018 
00019 #include "ProxyDict/IfdKey.h"
00020 #if !(defined(__GNUC__) && (__GNUC__ < 3) && (__GNUC_MINOR__ < 95)) // BABAR_IOSTREAMS_MIGRATION
00021 #include <iostream>
00022 #else                                                               // BABAR_IOSTREAMS_MIGRATION
00023 #include <iostream.h>
00024 #endif                                                              // BABAR_IOSTREAMS_MIGRATION
00025 #include <stdlib.h>
00026 
00027 
00028 class IfdIntKey : public IfdKey {
00029 public:
00030    IfdIntKey( const int i );
00031       // See also protected:IfdIntKey()
00032 
00033    virtual int operator==( const IfdKey& k ) const {
00034       return ( intKey == k.getKeyKind() ) && ( intVal == k.intVal );
00035    }
00036 
00037    virtual ~IfdIntKey() {}
00038 
00039    virtual IfdKey* clone(void) const { return new IfdIntKey( intVal ); }
00040       // Caller owns returned copy of this key.
00041 
00042 #if !(defined(__GNUC__) && (__GNUC__ < 3) && (__GNUC_MINOR__ < 95)) // BABAR_IOSTREAMS_MIGRATION
00043    virtual void print( std::ostream &o) const 
00044 #else                                                               // BABAR_IOSTREAMS_MIGRATION
00045    virtual void print( ostream &o) const 
00046 #endif                                                              // BABAR_IOSTREAMS_MIGRATION
00047      { o << "IfdIntKey(" << intVal << ")"; }
00048 
00049 protected:
00050 
00051 private:
00052   // Copy ctor and assignemnt op are not allowed.  This keeps
00053   // the class behavior like its base, IfdKey.  See that class for
00054   // more info.
00055   IfdIntKey( const IfdIntKey &);
00056   IfdIntKey& operator=( IfdIntKey &);
00057 
00058 
00059 };
00060 
00061 
00062 #endif /*  IFDINTKEY_HH */

Generated on Tue Nov 29 23:13:39 2016 for BOSS_7.0.2 by  doxygen 1.4.7