Anonymous avatar Anonymous committed bdb6cb6

Add m_isPayload member to indicate whether file change is Tag or Payload

Comments (0)

Files changed (2)

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.2 2007-07-30 19:06:50 gemmeren Exp $
+ *  $Id: FileIncident.h,v 1.3 2008-01-09 23:12:43 gemmeren Exp $
  **/
 
 #include "GaudiKernel/Incident.h"
 class FileIncident : public Incident {
 public:
    /// standard constructor
-   FileIncident(const std::string& fileName, const std::string& source, const std::string& type);
+   FileIncident(const std::string& source,
+	   const std::string& type,
+	   const std::string& fileName,
+	   bool isPayload = false);
    FileIncident(const FileIncident& rhs);
    virtual ~FileIncident();
 
    /// Overloaded Assignment Operator
    const FileIncident& operator=(const FileIncident& rhs);
    const std::string& fileName() const;
+   bool isPayload() const;
 
 private:
    std::string m_fileName;
+   bool m_isPayload;
 };
 
-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& rhs) : Incident(rhs), m_fileName(rhs.m_fileName) {}
+inline FileIncident::FileIncident(const std::string& source,
+	const std::string& type,
+	const std::string& fileName,
+	bool isPayload) : Incident(source, type), m_fileName(fileName), m_isPayload(isPayload) {}
+inline FileIncident::FileIncident(const FileIncident& rhs) : Incident(rhs),
+	m_fileName(rhs.m_fileName),
+	m_isPayload(rhs.m_isPayload) {}
 inline FileIncident::~FileIncident() {}
 
 inline const FileIncident& FileIncident::operator=(const FileIncident& rhs) {
    if (this != &rhs) {
       Incident::operator=(rhs);
       m_fileName = rhs.m_fileName;
+      m_isPayload = rhs.m_isPayload;
    }
    return(rhs);
 }
 
 inline const std::string& FileIncident::fileName() const { return(m_fileName); }
+inline bool FileIncident::isPayload() const { return(m_isPayload); }
 
 #endif
+2008-01-09  Peter van Gemmeren  <gemmeren@anl.gov>
+
+	* tagging AthenaPoolKernel-00-00-06
+	* FileIncident.h: Add m_isPayload member to indicate whether file change is Tag or Payload(Input)
+
 2007-07-30  Peter van Gemmeren  <gemmeren@anl.gov>
 
 	* tagging AthenaPoolKernel-00-00-05
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.