1 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.4 |
// $Id: ProcIDRef.h,v 1.3 2008/12/10 11:26:52 loizides Exp $
|
3 |
bendavid |
1.1 |
//
|
4 |
|
|
// ProcIDRef
|
5 |
|
|
//
|
6 |
loizides |
1.4 |
// Implementation of a process id that can be stored in the
|
7 |
|
|
// FastArray (and then used in the RefArray).
|
8 |
bendavid |
1.1 |
//
|
9 |
|
|
// Authors: C.Loizides, J.Bendavid
|
10 |
|
|
//--------------------------------------------------------------------------------------------------
|
11 |
|
|
|
12 |
|
|
#ifndef MITANA_DATACONT_PROCIDREF
|
13 |
|
|
#define MITANA_DATACONT_PROCIDREF
|
14 |
|
|
|
15 |
|
|
#include <TObject.h>
|
16 |
|
|
#include <TProcessID.h>
|
17 |
|
|
|
18 |
|
|
namespace mithep
|
19 |
|
|
{
|
20 |
|
|
class ProcIDRef : public TObject
|
21 |
|
|
{
|
22 |
|
|
public:
|
23 |
loizides |
1.4 |
ProcIDRef() : fProcID(0) {}
|
24 |
|
|
ProcIDRef(TProcessID *pid) : fProcID(pid) {}
|
25 |
|
|
~ProcIDRef() { fProcID = 0; }
|
26 |
bendavid |
1.1 |
|
27 |
loizides |
1.2 |
TProcessID *Pid() const { return fProcID; }
|
28 |
loizides |
1.4 |
void SetPid(TProcessID *pid) { fProcID = pid; }
|
29 |
|
|
|
30 |
bendavid |
1.1 |
protected:
|
31 |
loizides |
1.2 |
TProcessID *fProcID; //!ptr to the Process Unique Identifier
|
32 |
bendavid |
1.1 |
|
33 |
loizides |
1.3 |
ClassDef(ProcIDRef, 1) // Implementation of our own TProcIDRef
|
34 |
bendavid |
1.1 |
};
|
35 |
|
|
}
|
36 |
|
|
#endif
|