4 // Fraunhofer Institute for Open Communication Systems (FOKUS)
5 // Competence Center NETwork research (NET), St. Augustin, GERMANY
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 PacketTypes public header */
26 #ifndef HH_PacketTypes_
27 #define HH_PacketTypes_ 1
31 #include <boost/intrusive_ptr.hpp>
32 #include <boost/cstdint.hpp>
33 #include "../boost/intrusive/ilist.hpp"
34 #include "../boost/intrusive/ilist_hook.hpp"
36 //#include "PacketTypes.mpp"
37 ///////////////////////////////hh.p////////////////////////////////////////
42 class PacketInterpreterBase;
50 /** \brief Internal: Template typedef for used smart pointer
55 struct smart_pointer {
56 typedef boost::intrusive_ptr<T> ptr_t;
59 struct interpreter_list_tag;
60 typedef boost::intrusive::ilist_base_hook<interpreter_list_tag> interpreter_list_base;
61 typedef interpreter_list_base::value_traits<PacketInterpreterBase> interpreter_list_type;
63 typedef boost::intrusive::ilist<interpreter_list_type,false> interpreter_list;
65 typedef boost::uint8_t byte;
66 typedef std::vector<byte> raw_container;
67 typedef raw_container::size_type size_type;
68 typedef raw_container::difference_type difference_type;
70 typedef raw_container::iterator iterator;
71 typedef raw_container::const_iterator const_iterator;
72 typedef long refcount_t; // This is long since boost uses long for refcounts .. hmm ..
80 ///////////////////////////////hh.e////////////////////////////////////////
82 #if !defined(HH_Packets__decls_) && !defined(HH_PacketTypes_i_)
83 #define HH_PacketTypes_i_
84 //#include "PacketTypes.cci"
85 //#include "PacketTypes.ct"
86 //#include "PacketTypes.cti"
93 // c-file-style: "senf"
94 // indent-tabs-mode: nil
95 // ispell-local-dictionary: "american"
96 // compile-command: "scons -u test"