aboutsummaryrefslogtreecommitdiff
path: root/src/programlink.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-25 21:15:55 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-25 21:15:55 +0000
commit3f26c19b0b7a9fa73c58189788972ea43b72f014 (patch)
tree8f34928a267fb35becdf939d21187a526f235869 /src/programlink.cpp
parent2b0fa89df615cb4789668014475ae64d99e773b5 (diff)
downloadlibbu++-3f26c19b0b7a9fa73c58189788972ea43b72f014.tar.gz
libbu++-3f26c19b0b7a9fa73c58189788972ea43b72f014.tar.bz2
libbu++-3f26c19b0b7a9fa73c58189788972ea43b72f014.tar.xz
libbu++-3f26c19b0b7a9fa73c58189788972ea43b72f014.zip
I think the plugger and programchain are all up to date to work with the new
libbu++. The program chain may undergo heavy changes still, or be removed entirely, but we need it for congo and squirrelmud, so here it is for a while longer. The TafWriter isn't much closer, you still only get the groups in the output.
Diffstat (limited to 'src/programlink.cpp')
-rw-r--r--src/programlink.cpp56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/programlink.cpp b/src/programlink.cpp
new file mode 100644
index 0000000..e5c624c
--- /dev/null
+++ b/src/programlink.cpp
@@ -0,0 +1,56 @@
1#include "bu/programlink.h"
2#include "bu/programchain.h"
3
4using namespace Bu;
5
6Bu::ProgramLink::ProgramLink()
7{
8}
9
10Bu::ProgramLink::~ProgramLink()
11{
12}
13
14LinkMessage *Bu::ProgramLink::sendIRM( LinkMessage *pMsgOut )
15{
16 return pChain->broadcastIRM( pMsgOut, this );
17}
18
19void Bu::ProgramLink::setChain( ProgramChain *pNewChain )
20{
21 pChain = pNewChain;
22}
23
24/*
25void ProgramLink::postMessage( LinkMessage *pMsg, int nLvl )
26{
27 if( nLvl == msgToChain )
28 {
29 qMsgToChain.enqueue( pMsg );
30 }
31 else if( nLvl == msgToLink )
32 {
33 qMsgToLink.enqueue( pMsg );
34 }
35 else
36 {
37 // ERROR!
38 }
39}
40
41LinkMessage *ProgramLink::getMessage( int nLvl )
42{
43 if( nLvl == msgToChain )
44 {
45 return (LinkMessage *)qMsgToChain.dequeue();
46 }
47 else if( nLvl == msgToLink )
48 {
49 return (LinkMessage *)qMsgToLink.dequeue();
50 }
51 else
52 {
53 // ERROR!
54 }
55}
56*/