UserData.h
Go to the documentation of this file.
1 #ifndef _fwk_UserData_h_
2 #define _fwk_UserData_h_
3 
14 namespace fwk {
15 
45 //#warning DV: this class has to be revised. you can not call delete of the static pointer in dtor!!!
46  // DV: unless it is made utl::Singleton
47 
48  class UserData {
49 
50  public:
52  virtual ~UserData() { delete fUserDataSingleInstance; }
53 
54  // example of setting/getting user structures
55  // const MyData& GetMyData() const;
56  // void SetMyData(const MyData& mydata);
57 
58  protected:
59  UserData();
60 
61  private:
63 
64  };
65 
66 }
67 
68 
69 #endif
70 
71 // Configure (x)emacs for this file ...
72 // Local Variables:
73 // mode: c++
74 // compile-command: "make -C .. -k"
75 // End:
Container to hold extra-event user data.
Definition: UserData.h:48
virtual ~UserData()
Definition: UserData.h:52
static UserData * fUserDataSingleInstance
Definition: UserData.h:62
UserData & GetInstance()
Definition: UserData.cc:17

, generated on Tue Sep 26 2023.