source: trunk/MagicSoft/Mars/mbase/MInputStreamID.h@ 4308

Last change on this file since 4308 was 1014, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.3 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 const TString &GetStreamId() const { return fStreamId; }
27 void SetStreamId(const char *t) { fStreamId = t; }
28
29 Bool_t operator==(MInputStreamID &id) const
30 {
31 return fStreamId == id.fStreamId;
32 }
33
34 Bool_t operator!=(MInputStreamID &id) const
35 {
36 return fStreamId != id.fStreamId;
37 }
38
39 ClassDef(MInputStreamID, 0) //Assigns an Id to tasks or a task list
40};
41
42// ---------------------------------------------------------------------
43
44#endif
Note: See TracBrowser for help on using the repository browser.