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

Last change on this file since 528 was 458, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MINPUTSTREAMID_H
2#define MINPUTSTREAMID_H
3
4///////////////////////////////////////////////////////////////////////
5// //
6// MInpuStreamID //
7// //
8// Assigns an ID to tasks or a task list //
9// //
10///////////////////////////////////////////////////////////////////////
11
12#ifndef MPARCONTAINER_H
13#include "MParContainer.h"
14#endif
15
16// -----------------------------------------------------------------------
17
18class MInputStreamID : public MParContainer
19{
20private:
21 char *fStreamId; //! which type of task should be processed?
22
23public:
24 MInputStreamID(const char *name=NULL, const char *title=NULL);
25
26 const char *GetStreamId()
27 {
28 return (const char *)fStreamId;
29 }
30 void SetStreamId(const char *t)
31 {
32 delete fStreamId;
33 fStreamId = new char[strlen(t)+1];
34 strcpy(fStreamId, t);
35 }
36
37 ClassDef(MInputStreamID, 1) //Assigns an ID to tasks or a task list
38};
39
40// ---------------------------------------------------------------------
41
42#endif
Note: See TracBrowser for help on using the repository browser.