// $Id$
//
-// Copyright (C) 2006
+// Copyright (C) 2006
// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
// Stefan Bund <stefan.bund@fokus.fraunhofer.de>
///////////////////////////////ih.p////////////////////////////////////////
-namespace satcom {
-namespace pkf {
+namespace senf {
+
namespace impl {
struct ParserBase {};
Parser_traits_fixed_size_check(&Parser::bytes))-sizeof(Parser_traits_sentinel<1>);
};
- template <class T>
- Parser_traits_sentinel<2> Parser_traits_fixed_size_check(T);
+ template <class R>
+ Parser_traits_sentinel<2> Parser_traits_fixed_size_check(R (*)());
template <class R,class T>
- Parser_traits_sentinel<1> Parser_traits_fixed_size_check(R (T::*)());
+ Parser_traits_sentinel<1> Parser_traits_fixed_size_check(R (T::*)() const);
template <class Parser, class Iterator>
bool check(Iterator const & b, Iterator const & e, ParserBase *);
-
+
template <class Parser, class Iterator>
bool check(Iterator const & b, Iterator const & e, void *);
template <class Parser, bool Fixed>
struct ParserCheck {
template <class Iterator>
- static unsigned check(Iterator const & b, Iterator const & e)
+ static unsigned check(Iterator const & b, Iterator const & e)
{ return Parser::check(b,e); }
};
-
+
template <class Parser>
struct ParserCheck<Parser,true> {
template <class Iterator>
static unsigned check(Iterator const & b, Iterator const & e)
{ return unsigned(e-b) >= Parser::bytes(); }
};
-
+
template <class Parser>
unsigned min_bytes(ParserBase *);
-
+
template <class Parser>
unsigned min_bytes(void *);
static unsigned bytes() { return Parser::bytes(); }
};
-}}}
+}}
///////////////////////////////ih.e////////////////////////////////////////
#endif
\f
// Local Variables:
// mode: c++
-// c-file-style: "satcom"
+// fill-column: 100
+// c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
// End: