1#if defined(HAVE_CONFIG_H)
13#define RESIPROCATE_SUBSYSTEM Subsystem::SIP
32 mHostname(rhs.mHostname),
43 mHostname = rhs.mHostname;
54 if(mCode >= 1000 || mCode < 100)
56 pb.
fail(__FILE__,__LINE__,
"Warning code does not have exactly three digits.");
61 pb.
data(mHostname, anchor);
66 pb.
data(mText, anchor);
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Provides string-parsing functionality with protection from buffer overflow.
CurrentPosition skipNonWhitespace()
uint32_t uInt32()
dcm! – merge these, ask about length checks
CurrentPosition skipWhitespace()
CurrentPosition skipChar()
void fail(const char *file, unsigned int line, const Data &errmsg=Data::Empty) const
void data(Data &data, const char *start) const
make the passed in data share memory with the buffer (uses Data::Share)
const char * skipToEndQuote(char quote='"')
Base class for all SIP grammar elements that can have parameters.
ParserCategory & operator=(const ParserCategory &rhs)
static const char * SPACE
static const char * DOUBLE_QUOTE
Represents the "warning-value" element in the RFC 3261 grammar.
virtual EncodeStream & encodeParsed(EncodeStream &str) const
virtual ParserCategory * clone() const
virtual void parse(ParseBuffer &pb)
WarningCategory & operator=(const WarningCategory &)
dcm! – add UnusedChecking(_enum) below;