4 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
5 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
6 // Stefan Bund <g0dil@berlios.de>
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the
20 // Free Software Foundation, Inc.,
21 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 \brief DebugModules public header */
26 #ifndef HH_DebugModules_
27 #define HH_DebugModules_ 1
31 #include "Utils/SafeBool.hh"
32 #include "Packets/Packets.hh"
35 //#include "DebugModules.mpp"
36 ///////////////////////////////hh.p////////////////////////////////////////
43 class ActivePacketSource
45 public SafeBool<ActivePacketSource>
48 connector::ActiveOutput output;
52 void submit(Packet packet);
54 bool boolean_test() const;
57 class PassivePacketSource
60 typedef std::deque<Packet> Queue;
63 typedef Queue::size_type size_type;
65 PassivePacketSource();
67 connector::PassiveOutput output;
69 void submit(Packet packet);
81 class ActivePacketSink
83 public SafeBool<ActivePacketSink>
86 connector::ActiveInput input;
92 bool boolean_test() const;
95 class PassivePacketSink
98 typedef std::deque<Packet> Queue;
101 typedef Queue::size_type size_type;
102 typedef Queue::const_iterator iterator;
104 connector::PassiveInput input;
126 ///////////////////////////////hh.e////////////////////////////////////////
127 #include "DebugModules.cci"
128 //#include "DebugModules.ct"
129 //#include "DebugModules.cti"
136 // comment-column: 40
137 // c-file-style: "senf"
138 // indent-tabs-mode: nil
139 // ispell-local-dictionary: "american"
140 // compile-command: "scons -u test"