Diana Software
QId.hh
Go to the documentation of this file.
1 
2 #ifndef _QID_HH_
3 #define _QID_HH_
4 
5 #include "QDiana.hh"
6 
12 class QId
13 {
14 public:
15  QId(): fId(-1) {}
16  QId(int id): fId(id) {}
17  virtual ~QId() {}
18  void SetId(int id) { fId = id; }
19  int GetId() const { return fId; }
20 
21 private:
22  int fId;
23 };
24 #endif
base class for anything having an id
Definition: QId.hh:13
QId(int id)
Definition: QId.hh:16
int GetId() const
Definition: QId.hh:19
virtual ~QId()
Definition: QId.hh:17
void SetId(int id)
Definition: QId.hh:18
QId()
Definition: QId.hh:15
int fId
Definition: QId.hh:22