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 Target public header */
30 #include "../singleton.hh"
34 //#include "Target.mpp"
35 ///////////////////////////////hh.p////////////////////////////////////////
43 : public senf::singleton<Target>
46 ///////////////////////////////////////////////////////////////////////////
49 ///////////////////////////////////////////////////////////////////////////
50 ///\name Structors and default members
55 // default default constructor
56 // default copy constructor
57 // default copy assignment
60 // no conversion constructors
68 void route(detail::StreamBase const * stream, detail::AreaBase const * area,
70 void unroute(detail::StreamBase const * stream, detail::AreaBase const * area,
73 void updateAreaCache(detail::AreaBase const & area, detail::StreamBase const * stream,
76 void write(detail::StreamBase const & stream, detail::AreaBase const & area,
77 unsigned level, std::string const & message);
79 virtual void v_write(std::string const & stream, std::string const & area, unsigned level,
80 std::string const & message) = 0;
84 RoutingEntry(detail::StreamBase const * stream_, detail::AreaBase const * area_,
86 : stream(stream_), area(area_), level(level_) {}
88 : stream(0), area(0), level(0) {}
90 bool operator==(RoutingEntry const & other)
91 { return stream == other.stream && area == other.area && level == other.level; }
93 detail::StreamBase const * stream;
94 detail::AreaBase const * area;
98 typedef std::vector<RoutingEntry> RIB;
105 ///////////////////////////////hh.e////////////////////////////////////////
106 #include "Target.cci"
107 //#include "Target.ct"
108 //#include "Target.cti"
115 // comment-column: 40
116 // c-file-style: "senf"
117 // indent-tabs-mode: nil
118 // ispell-local-dictionary: "american"
119 // compile-command: "scons -u test"