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>
47 SENF_PPI_MODULE(ActivePacketSource);
50 connector::ActiveOutput output;
54 void submit(Packet packet);
56 bool boolean_test() const;
59 class PassivePacketSource
62 SENF_PPI_MODULE(PassivePacketSource);
64 typedef std::deque<Packet> Queue;
67 typedef Queue::size_type size_type;
69 PassivePacketSource();
71 connector::PassiveOutput output;
73 void submit(Packet packet);
85 class ActivePacketSink
87 public SafeBool<ActivePacketSink>
89 SENF_PPI_MODULE(ActivePacketSink);
92 connector::ActiveInput input;
98 bool boolean_test() const;
101 class PassivePacketSink
104 SENF_PPI_MODULE(PassivePacketSink);
106 typedef std::deque<Packet> Queue;
109 typedef Queue::size_type size_type;
110 typedef Queue::const_iterator iterator;
112 connector::PassiveInput input;
134 ///////////////////////////////hh.e////////////////////////////////////////
135 #include "DebugModules.cci"
136 //#include "DebugModules.ct"
137 //#include "DebugModules.cti"
144 // comment-column: 40
145 // c-file-style: "senf"
146 // indent-tabs-mode: nil
147 // ispell-local-dictionary: "american"
148 // compile-command: "scons -u test"