1#if defined(HAVE_CONFIG_H)
13#define RESIPROCATE_SUBSYSTEM Subsystem::SIP
68 pb.
data(mUri, anchor);
113 return ParameterFactories[type](type, pb, terminators, pool);
133#define defineParam(_enum, _name, _type, _RFC_ref_ignored) \
134_enum##_Param::DType& \
135GenericUri::param(const _enum##_Param& paramType) \
138 _enum##_Param::Type* p = \
139 static_cast<_enum##_Param::Type*>(getParameterByEnum(paramType.getTypeNum())); \
142 p = new _enum##_Param::Type(paramType.getTypeNum()); \
143 mParameters.push_back(p); \
148const _enum##_Param::DType& \
149GenericUri::param(const _enum##_Param& paramType) const \
152 _enum##_Param::Type* p = \
153 static_cast<_enum##_Param::Type*>(getParameterByEnum(paramType.getTypeNum())); \
156 InfoLog(<< "Missing parameter " _name " " << ParameterTypes::ParameterNames[paramType.getTypeNum()]); \
157 DebugLog(<< *this); \
158 throw Exception("Missing parameter " _name, __FILE__, __LINE__); \
#define defineParam(_enum, _name, _type, _RFC_ref_ignored)
Generically represents miscellaneous parameter data.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Represents the "absoluteURI" element in the RFC 3261 grammar.
GenericUri & operator=(const GenericUri &)
virtual ParserCategory * clone() const
void remove(const Param< GenericUri > ¶mType)
virtual Parameter * createParam(ParameterTypes::Type type, ParseBuffer &pb, const std::bitset< 256 > &terminators, PoolBase *pool)
virtual void parse(ParseBuffer &pb)
bool exists(const Param< GenericUri > ¶mType) const
virtual EncodeStream & encodeParsed(EncodeStream &str) const
virtual ParameterTypes::Type getTypeNum() const =0
Parameter *(* Factory)(ParameterTypes::Type, ParseBuffer &, const std::bitset< 256 > &terminators, PoolBase *pool)
Provides string-parsing functionality with protection from buffer overflow.
CurrentPosition skipWhitespace()
CurrentPosition skipToChar(char c)
CurrentPosition skipChar()
void data(Data &data, const char *start) const
make the passed in data share memory with the buffer (uses Data::Share)
Base class for all SIP grammar elements that can have parameters.
Parameter * getParameterByEnum(ParameterTypes::Type type) const
ParserCategory & operator=(const ParserCategory &rhs)
void removeParameterByEnum(ParameterTypes::Type type)
void parseParameters(ParseBuffer &pb)
EncodeStream & encodeParameters(EncodeStream &str) const
Encodes parameters as they should appear on the wire.
static const char * LA_QUOTE
static const char * RA_QUOTE
dcm! – add UnusedChecking(_enum) below;