Anonymous avatar Anonymous committed 7d73e81

Adding Assignment Operator

Comments (0)

Files changed (4)

AthenaPoolKernel/FileIncident.h

-#ifndef EVENTSELECTORATHENAPOOL_FILEINCIDENT_H
-#define EVENTSELECTORATHENAPOOL_FILEINCIDENT_H
+#ifndef ATHENAPOOLKERNEL_FILEINCIDENT_H
+#define ATHENAPOOLKERNEL_FILEINCIDENT_H
 
 /** @file FileIncident.h
  *  @brief This file contains the class definition for the FileIncident class.
  *  @author Peter van Gemmeren <gemmeren@anl.gov>
- *  $Id: FileIncident.h,v 1.1 2007-07-13 17:05:01 schaffer Exp $
+ *  $Id: FileIncident.h,v 1.2 2007-07-30 19:06:50 gemmeren Exp $
  **/
+
 #include "GaudiKernel/Incident.h"
 
 #include <string>
 public:
    /// standard constructor
    FileIncident(const std::string& fileName, const std::string& source, const std::string& type);
-   FileIncident(const FileIncident& f);
+   FileIncident(const FileIncident& rhs);
    virtual ~FileIncident();
 
+   /// Overloaded Assignment Operator
+   const FileIncident& operator=(const FileIncident& rhs);
    const std::string& fileName() const;
 
 private:
 
 inline FileIncident::FileIncident(const std::string& fileName, const std::string& source, const std::string& type) :
 	Incident(source, type), m_fileName(fileName) {}
-inline FileIncident::FileIncident(const FileIncident& f) : Incident(f), m_fileName(f.m_fileName) {}
+inline FileIncident::FileIncident(const FileIncident& rhs) : Incident(rhs), m_fileName(rhs.m_fileName) {}
 inline FileIncident::~FileIncident() {}
+
+inline const FileIncident& FileIncident::operator=(const FileIncident& rhs) {
+   if (this != &rhs) {
+      Incident::operator=(rhs);
+      m_fileName = rhs.m_fileName;
+   }
+   return(rhs);
+}
+
 inline const std::string& FileIncident::fileName() const { return(m_fileName); }
+
 #endif

AthenaPoolKernel/IMetaDataTool.h

-#ifndef EVENTSELECTORATHENAPOOL_IMETADATATOOL_H
-#define EVENTSELECTORATHENAPOOL_IMETADATATOOL_H
+#ifndef ATHENAPOOLKERNEL_IMETADATATOOL_H
+#define ATHENAPOOLKERNEL_IMETADATATOOL_H
 
 /** @file IMetaDataTool.h
  *  @brief This file contains the class definition for the IMetaDataTool class.
  *  @author Peter van Gemmeren <gemmeren@anl.gov>
- *  $Id: IMetaDataTool.h,v 1.1 2007-07-13 17:05:02 schaffer Exp $
+ *  $Id: IMetaDataTool.h,v 1.2 2007-07-30 19:06:50 gemmeren Exp $
  **/
 
 #include "GaudiKernel/IAlgTool.h"
+2007-07-30  Peter van Gemmeren  <gemmeren@anl.gov>
+
+	* tagging AthenaPoolKernel-00-00-05
+	* Adding Assignment Operator
+
 2007-07-23  RD Schaffer  <R.D.Schaffer@cern.ch>
 
 	* tagging AthenaPoolKernel-00-00-04
 
 use AtlasPolicy    AtlasPolicy-* 
 use GaudiInterface GaudiInterface-01-* External
-
-
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.