X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParserBase.hh;h=c414ab5d8b10d03065dc86e219cd1adb65ca81f9;hb=032707d24b1059febe83ce56b11fd79df106c6e2;hp=69508b7cd3cb06d2cbd66b795494b66973ec90fa;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Packets/ParserBase.hh b/Packets/ParserBase.hh index 69508b7..c414ab5 100644 --- a/Packets/ParserBase.hh +++ b/Packets/ParserBase.hh @@ -29,17 +29,30 @@ // Custom includes #include +#include #include #include "ParserBase.ih" ///////////////////////////////hh.p//////////////////////////////////////// -namespace satcom { -namespace pkf { +namespace senf { + namespace impl { struct ParserBase; } - struct nil {}; + struct nil + : public boost::iterator_facade + { + // 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 struct Parser_Example - : protected satcom::pkf::ParserBase + : protected senf::ParserBase { // fixed interface of all parser classes @@ -281,7 +294,7 @@ namespace pkf { template unsigned min_bytes(); -}} +} ///////////////////////////////hh.e//////////////////////////////////////// //#include "ParserBase.cci" @@ -292,5 +305,5 @@ namespace pkf { // Local Variables: // mode: c++ -// c-file-style: "satcom" +// c-file-style: "senf" // End: