]>
Commit | Line | Data |
---|---|---|
32ec5ec1 | 1 | // $Header$ |
2 | ||
3 | #include "EventBase.h" | |
4 | ||
32e219c2 | 5 | #include <TObjString.h> |
6 | #include <TCint.h> | |
7 | ||
32ec5ec1 | 8 | using namespace Reve; |
9 | ||
10 | //______________________________________________________________________ | |
32e219c2 | 11 | // Reve::EventBase |
32ec5ec1 | 12 | // |
13 | ||
14 | ClassImp(EventBase) | |
15 | ||
16 | EventBase::EventBase(const Text_t* n, const Text_t* t) : | |
32e219c2 | 17 | RenderElementList(n, t), |
18 | fNewEventCommands() | |
32ec5ec1 | 19 | {} |
32e219c2 | 20 | |
21 | /**************************************************************************/ | |
22 | ||
23 | void EventBase::AfterNewEventLoaded() | |
24 | { | |
25 | TIter next(&fNewEventCommands); | |
26 | TObject* o; | |
27 | while ((o = next())) { | |
28 | TObjString* s = dynamic_cast<TObjString*>(o); | |
29 | if (s) | |
30 | gInterpreter->ProcessLine(s->String()); | |
31 | } | |
32 | } | |
33 | ||
34 | void EventBase::AddNewEventCommand(const Text_t* cmd) | |
35 | { | |
36 | fNewEventCommands.Add(new TObjString(cmd)); | |
37 | } |