Really fix global Doxyfile :-/
[senf.git] / Packets / ParserBase.hh
index 69508b7..c414ab5 100644 (file)
 
 // Custom includes
 #include <utility>
+#include <boost/iterator/iterator_facade.hpp>
 #include <boost/type_traits/is_member_function_pointer.hpp>
 
 #include "ParserBase.ih"
 ///////////////////////////////hh.p////////////////////////////////////////
 
-namespace satcom {
-namespace pkf {
+namespace senf {
+
     
     namespace impl { struct ParserBase; }
 
-    struct nil {};
+    struct nil 
+       : public boost::iterator_facade<nil,char,boost::random_access_traversal_tag>
+    {
+       // Theese are declared to make nil a valid iterator. All
+       // access to an instance of this iterator however is invalid
+       // (these members are not implemented only declared)
+       char & dereference() const;
+       bool equal(nil other) const;
+       void increment();
+       void decrement();
+       void advance(int n);
+       int distance_to(nil other) const;
+    };
 
     /** \brief Parser framework
 
@@ -68,7 +81,7 @@ namespace pkf {
         \code
             template <class Iterator=nil, class IPacket=nil>
             struct Parser_Example
-                : protected satcom::pkf::ParserBase<Iterator,IPacket>
+                : protected senf::ParserBase<Iterator,IPacket>
             {
                 // fixed interface of all parser classes
 
@@ -281,7 +294,7 @@ namespace pkf {
     template <class Parser>
     unsigned min_bytes();
     
-}}
+}
 
 ///////////////////////////////hh.e////////////////////////////////////////
 //#include "ParserBase.cci"
@@ -292,5 +305,5 @@ namespace pkf {
 \f
 // Local Variables:
 // mode: c++
-// c-file-style: "satcom"
+// c-file-style: "senf"
 // End: