17 #ifndef HH_SENF_Packets_StringParser_ 18 #define HH_SENF_Packets_StringParser_ 1 20 #ifndef HH_SENF_Packets_Packets_ 21 #error "Don't include 'StringParser.hh' directly, include 'Packets.hh'" 32 template <
class LengthParser=senf::UInt16Parser>
39 # include SENF_PARSER() 46 value_type
value()
const;
47 void value(value_type v);
54 bool operator==(value_type
const & other)
const;
57 template <
class LengthParser>
58 std::ostream & operator<<(std::ostream & os, StringParser<LengthParser>
const &
value);
61 template <std::
string::
size_type N>
71 value_type
value()
const;
72 void value(value_type v);
76 bool operator==(value_type
const & other)
const;
79 template <std::
string::
size_type N>
80 std::ostream & operator<<(std::ostream & os, FixedSizeStringParser<N>
const &
value);
86 #if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_StringParser_i_) 87 #define HH_SENF_Packets_StringParser_i_ LengthParser ::value_type length() const
bool operator==(value_type const &other) const
Return number of bytes to allocate to new object of given type.
Packet data STL-sequence view.
#define SENF_PARSER_FIELD_RO(name, type)
Define parser field (read-only)
data_iterator i() const
Return beginning of data to parse.
detail::packet::size_type size_type
Unsigned integral type.
StringParser const & operator=(value_type other)
StringParser(data_iterator i, state_type s)
FixedSizeStringParser(data_iterator i, state_type s)
detail::packet::iterator data_iterator
Raw data iterator type.