Rev 1315 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1315 | Rev 1317 | ||
|---|---|---|---|
| Line 22... | Line 22... | ||
| 22 | #include "broker/Broker.h" |
22 | #include "broker/Broker.h" |
| 23 | #include "message/Message.h" |
23 | #include "message/Message.h" |
| 24 | #include "subscribers/monitor/Monitor.h" |
24 | #include "subscribers/monitor/Monitor.h" |
| 25 | #include "subscribers/cannet/CanNet.h" |
25 | #include "subscribers/cannet/CanNet.h" |
| 26 | #include "xml/Node.h" |
26 | #include "xml/Node.h" |
| 27 | #include " |
27 | #include "thread/Thread.h" |
| 28 | #include "utils/BitBuffer.h" |
28 | #include "utils/BitBuffer.h" |
| 29 | #include " |
29 | #include "net/UdpServer.h" |
| 30 | #include "xml/Node.h" |
30 | #include "xml/Node.h" |
| 31 | #include "protocol/Protocol.h" |
31 | #include "protocol/Protocol.h" |
| 32 | #include "log/Logger.h" |
32 | #include "log/Logger.h" |
| 33 | 33 | ||
| 34 | namespace po = boost::program_options; |
34 | namespace po = boost::program_options; |
| Line 53... | Line 53... | ||
| 53 | protocol->load("../../Configuration/protocol.xml"); |
53 | protocol->load("../../Configuration/protocol.xml"); |
| 54 | cout << protocol->getRootNode().toString() << endl; |
54 | cout << protocol->getRootNode().toString() << endl; |
| 55 | 55 | ||
| 56 | 56 | ||
| 57 | broker::Broker::pointer broker = broker::Broker::getInstance(); |
57 | broker::Broker::pointer broker = broker::Broker::getInstance(); |
| 58 | - | ||
| 59 | utils::UdpServer::pointer udpServer = utils::UdpServer::getInstance(1100); |
- | |
| 60 | 58 | ||
| 61 | subscribers::Monitor::pointer monitorSubscriber(new subscribers::Monitor(broker)); |
59 | subscribers::Monitor::pointer monitorSubscriber(new subscribers::Monitor(broker)); |
| 62 | subscribers::CanNet::pointer canNetSubscriber(new subscribers::CanNet(broker, "192.168.1.250", 1100)); |
60 | subscribers::CanNet::pointer canNetSubscriber(new subscribers::CanNet(broker, "192.168.1.250", 1100)); |
| 63 | 61 | ||
| 64 | 62 | ||