source: trunk/Mars/mbase/MInputStreamID.h@ 17768

Last change on this file since 17768 was 6499, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MInputStreamID
2#define MARS_MInputStreamID
3
4///////////////////////////////////////////////////////////////////////
5// //
6// MInpuStreamID //
7// //
8// Assigns an ID to tasks or a task list //
9// //
10///////////////////////////////////////////////////////////////////////
11
12#ifndef MARS_MParContainer
13#include "MParContainer.h"
14#endif
15
16// -----------------------------------------------------------------------
17
18class MInputStreamID : public MParContainer
19{
20private:
21 TString fStreamId; //! which type of task should be processed?
22
23public:
24 MInputStreamID(const char *name=NULL, const char *title=NULL);
25
26 Bool_t HasStreamId() const { return fStreamId.CompareTo("all", TString::kIgnoreCase)!=0; }
27
28 const TString &GetStreamId() const { return fStreamId; }
29 void SetStreamId(const char *t) { fStreamId = t; }
30
31 Bool_t operator==(MInputStreamID &id) const
32 {
33 return fStreamId == id.fStreamId;
34 }
35
36 Bool_t operator!=(MInputStreamID &id) const
37 {
38 return fStreamId != id.fStreamId;
39 }
40
41 ClassDef(MInputStreamID, 0) //Assigns an Id to tasks or a task list
42};
43
44// ---------------------------------------------------------------------
45
46#endif
Note: See TracBrowser for help on using the repository browser.