-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDispatchModule.cpp
More file actions
55 lines (41 loc) · 1.04 KB
/
Copy pathDispatchModule.cpp
File metadata and controls
55 lines (41 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* DispatchModule.cpp
*
* Created on: May 20, 2009
* Author: bear
*
* Basisklasse for pluggbare moduler i systemet
*/
#include "DispatchModule.h"
namespace dispatch {
namespace module {
DispatchModule::DispatchModule() :
// NameTimeTaggingOutputSet(cout.rdbuf(), clog.rdbuf(), cerr.rdbuf(), cerr.rdbuf()),
queue_provider(0)
/* out(this, cout.rdbuf()),
log(this, clog.rdbuf()),
err(this, cerr.rdbuf()),
dbg(this, cerr.rdbuf())*/ {
}
DispatchModule::~DispatchModule() {
}
string DispatchModule::getName() {
return this->getModuleName();
}
QueueProvider* DispatchModule::getQueueProvider() {
return queue_provider;
}
EventQueue* DispatchModule::getEventQueue() {
return getQueueProvider()->getEventQueue();
}
void DispatchModule::setQueueProvider(QueueProvider* prov) {
queue_provider = prov;
}
config::GConfigNodeVisitor *DispatchModule::getConfigVisitor()
{
return new DispatchModuleConfigVisitor(this);
}
void DispatchModuleConfigVisitor::node(config::GConfigNode* node) {
node->visitChildren(this);
}
}} // end namespace