Class Reference for E1039 Core & Analysis Software
FlagSave.h
Go to the documentation of this file.
1 #ifndef FLAGSAVE_H
2 #define FLAGSAVE_H
3 
4 #include <phool/PHObject.h>
5 #include <phool/phool.h>
6 
7 class PHFlag;
8 
10 class FlagSave: public PHObject
11 {
12  public:
13 
15  virtual ~FlagSave() {}
16 
18  virtual void Reset()
19  {
20  std::cout << PHWHERE << "ERROR Reset() not implemented by daughter class" << std::endl;
21  return;
22  }
23 
27  virtual void identify(std::ostream& os = std::cout) const
28  {
29  os << "identify yourself: virtual FlagSave Object" << std::endl;
30  return;
31  }
32 
34  virtual int isValid() const
35  {
36  std::cout << PHWHERE << "isValid not implemented by daughter class" << std::endl;
37  return 0;
38  }
39 
40  virtual int FillFromPHFlag(const PHFlag* /*flags*/) {return -1;}
41  virtual int PutFlagsBack(PHFlag* /*flags*/) {return -1;}
42 
43  private:
44  ClassDef(FlagSave,1)
45 
46 };
47 
48 #endif
virtual int isValid() const
isValid returns non zero if object contains valid data
Definition: FlagSave.h:34
virtual void Reset()
Clear Flag.
Definition: FlagSave.h:18
virtual void identify(std::ostream &os=std::cout) const
Definition: FlagSave.h:27
virtual int PutFlagsBack(PHFlag *)
Definition: FlagSave.h:41
virtual int FillFromPHFlag(const PHFlag *)
Definition: FlagSave.h:40
virtual ~FlagSave()
dtor
Definition: FlagSave.h:15
Definition: PHFlag.h:20
#define PHWHERE
Definition: phool.h:23