ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FlagSave.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FlagSave.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef FFAOBJECTS_FLAGSAVE_H
4 #define FFAOBJECTS_FLAGSAVE_H
5 
6 #include <phool/PHObject.h>
7 #include <phool/phool.h>
8 
9 class PHFlag;
10 
12 class FlagSave : public PHObject
13 {
14  public:
16  ~FlagSave() override {}
17 
19  void Reset() override
20  {
21  std::cout << PHWHERE << "ERROR Reset() not implemented by daughter class" << std::endl;
22  return;
23  }
24 
28  void identify(std::ostream& os = std::cout) const override
29  {
30  os << "identify yourself: virtual FlagSave Object" << std::endl;
31  return;
32  }
33 
35  int isValid() const override
36  {
37  std::cout << PHWHERE << "isValid not implemented by daughter class" << std::endl;
38  return 0;
39  }
40 
41  virtual int FillFromPHFlag(const PHFlag* /*flags*/) { return -1; }
42  virtual int PutFlagsBack(PHFlag* /*flags*/) { return -1; }
43 
44  private:
45  ClassDefOverride(FlagSave, 1)
46 };
47 
48 #endif