source: trunk/MagicSoft/MarsOctober/mbase/MInputStreamID.h@ 3570

Last change on this file since 3570 was 447, checked in by harald, 24 years ago
Bringing the sources for the octobertest under CVS controll. (november, 3rd, 2000)
  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#ifndef MINPUTSTREAMID_H
2#define MINPUTSTREAMID_H
3///////////////////////////////////////////////////////////////////////
4// //
5// MInputStreamID //
6// //
7// This is the storage container for general (CaOs, Raw, ...) Event //
8// Info like the type of the 'actual' event //
9// //
10///////////////////////////////////////////////////////////////////////
11
12#include "Magic.h"
13
14#include "MParContainer.h"
15
16// -----------------------------------------------------------------------
17
18class MInputStreamID : public MParContainer
19{
20private:
21 char *fID; //! which type of task should be processed?
22
23public:
24 MInputStreamID(const char *name=NULL, const char *title=NULL);
25
26 const char *GetEvtType() const
27 {
28 return (const char *)fID;
29 }
30 void SetEvtType(const char *t)
31 {
32 delete fID;
33 fID = new char[strlen(t)+1];
34 strcpy(fID, t);
35 }
36
37 MParContainer* New()
38 {
39 return new MInputStreamID(fName, fTitle);
40 }
41
42 ClassDef(MInputStreamID, 1) // storage container for general info
43};
44
45// ---------------------------------------------------------------------
46
47#endif
Note: See TracBrowser for help on using the repository browser.