Fix documentation build under maverick (doxygen 1.7.1)
[senf.git] / senf / Packets / PacketTypes.hh
1 // $Id$
2 //
3 // Copyright (C) 2007
4 // Fraunhofer Institute for Open Communication Systems (FOKUS)
5 // Competence Center NETwork research (NET), St. Augustin, GERMANY
6 //     Stefan Bund <g0dil@berlios.de>
7 //
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.
12 //
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.
17 //
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.
22
23 /** \file
24     \brief PacketTypes public header */
25
26 #ifndef HH_SENF_Packets_PacketTypes_
27 #define HH_SENF_Packets_PacketTypes_ 1
28
29 // Custom includes
30 #include <vector>
31 #include <boost/intrusive_ptr.hpp>
32 #include <boost/cstdint.hpp>
33 #include <senf/boost_intrusive/ilist.hpp>
34 #include <senf/boost_intrusive/ilist_hook.hpp>
35
36 //#include "PacketTypes.mpp"
37 //-/////////////////////////////////////////////////////////////////////////////////////////////////
38
39 namespace senf {
40
41     class PacketData;
42     class PacketInterpreterBase;
43
44 namespace detail {
45
46     class PacketImpl;
47
48 namespace packet {
49
50     /** \brief Internal: Template typedef for used smart pointer
51
52         \internal
53      */
54     template <class T>
55     struct smart_pointer {
56         typedef boost::intrusive_ptr<T> ptr_t;
57     };
58
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;
62
63     typedef boost::intrusive::ilist<interpreter_list_type,false> interpreter_list;
64
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;
69
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 ..
73
74 namespace test {
75
76     class TestDriver;
77
78 }}}}
79
80 //-/////////////////////////////////////////////////////////////////////////////////////////////////
81 #endif
82 #if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_PacketTypes_i_)
83 #define HH_SENF_Packets_PacketTypes_i_
84 //#include "PacketTypes.cci"
85 //#include "PacketTypes.ct"
86 //#include "PacketTypes.cti"
87 #endif
88
89 \f
90 // Local Variables:
91 // mode: c++
92 // fill-column: 100
93 // c-file-style: "senf"
94 // indent-tabs-mode: nil
95 // ispell-local-dictionary: "american"
96 // compile-command: "scons -u test"
97 // comment-column: 40
98 // End: