|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
Represents the "callid" element in the SIP grammar. More...
#include <CallId.hxx>
Public Member Functions | |
| CallID () | |
| CallID (const HeaderFieldValue &hfv, Headers::Type type, PoolBase *pool=0) | |
| CallID (const CallID &orig, PoolBase *pool=0) | |
| CallID & | operator= (const CallID &) |
| bool | operator== (const CallID &) const |
| Data & | value () |
| const Data & | value () const |
| virtual void | parse (ParseBuffer &pb) |
| virtual ParserCategory * | clone () const |
| virtual ParserCategory * | clone (void *location) const |
| virtual ParserCategory * | clone (PoolBase *pool) const |
| virtual EncodeStream & | encodeParsed (EncodeStream &str) const |
| virtual Parameter * | createParam (ParameterTypes::Type type, ParseBuffer &pb, const std::bitset< 256 > &terminators, PoolBase *pool) |
| bool | exists (const Param< CallID > ¶mType) const |
| void | remove (const Param< CallID > ¶mType) |
| defineParam (fromTag, "from-tag", DataParameter, "RFC 3891 (not in IANA, apparently)") | |
| defineParam (toTag, "to-tag", DataParameter, "RFC 3891 (not in IANA, apparently)") | |
| defineParam (earlyOnly, "early-only", ExistsParameter, "RFC 3891 (not in IANA, apparently)") | |
| bool | exists (const ParamBase ¶mType) const |
| Checks for the existence of a natively supported parameter. | |
| bool | exists (const ExtensionParameter ¶m) const |
| Checks for the existence of a non-natively-supported parameter. | |
| void | remove (const ParamBase ¶mType) |
| Removes a natively supported parameter, if the parameter is present. | |
| void | remove (const ExtensionParameter ¶m) |
| Removes a non-natively-supported parameter, if the parameter is present. | |
| const Data & | param (const ExtensionParameter ¶m) const |
| Const accessor for non-natively-supported parameter types. | |
| Data & | param (const ExtensionParameter ¶m) |
| Accessor for non-natively-supported parameter types. | |
Public Member Functions inherited from resip::ParserCategory | |
| ParserCategory (const HeaderFieldValue &headerFieldValue, Headers::Type type, PoolBase *pool=0) | |
| ParserCategory (const char *buf, int length, Headers::Type type, PoolBase *pool=0) | |
| ParserCategory (const ParserCategory &rhs, PoolBase *pool=0) | |
| ParserCategory & | operator= (const ParserCategory &rhs) |
| virtual | ~ParserCategory () |
| bool | exists (const ParamBase ¶mType) const |
| Checks for the existence of a natively supported parameter. | |
| void | remove (const ParamBase ¶mType) |
| Removes a natively supported parameter, if the parameter is present. | |
| const Data & | param (const ExtensionParameter ¶m) const |
| Const accessor for non-natively-supported parameter types. | |
| Data & | param (const ExtensionParameter ¶m) |
| Accessor for non-natively-supported parameter types. | |
| void | remove (const ExtensionParameter ¶m) |
| Removes a non-natively-supported parameter, if the parameter is present. | |
| bool | exists (const ExtensionParameter ¶m) const |
| Checks for the existence of a non-natively-supported parameter. | |
| void | removeParametersExcept (const ParameterTypeSet &set=EmptyParameterTypeSet) |
| Removes all known parameters except those that are specified in set. | |
| void | clearUnknownParameters () |
| void | parseParameters (ParseBuffer &pb) |
| EncodeStream & | encodeParameters (EncodeStream &str) const |
| Encodes parameters as they should appear on the wire. | |
| Data | commutativeParameterHash () const |
| Parameter * | getParameterByEnum (ParameterTypes::Type type) const |
| void | removeParameterByEnum (ParameterTypes::Type type) |
| void | setParameter (const Parameter *parameter) |
| int | numKnownParams () const |
| Returns the number of known (natively supported) parameters. | |
| int | numUnknownParams () const |
| Returns the number of unknown parameters. | |
Public Member Functions inherited from resip::LazyParser | |
| LazyParser (const HeaderFieldValue &headerFieldValue) | |
| LazyParser (const char *buf, int length) | |
| LazyParser (const HeaderFieldValue &headerFieldValue, HeaderFieldValue::CopyPaddingEnum e) | |
| LazyParser (const LazyParser &rhs) | |
| LazyParser (const LazyParser &rhs, HeaderFieldValue::CopyPaddingEnum e) | |
| LazyParser & | operator= (const LazyParser &rhs) |
| virtual | ~LazyParser () |
| EncodeStream & | encode (EncodeStream &str) const |
| Encodes this element to a stream, in the fashion it should be represented on the wire. | |
| bool | isParsed () const |
| Returns true iff a parse has been attempted. | |
| HeaderFieldValue & | getHeaderField () |
| void | checkParsed () const |
| void | checkParsed () |
| void | doParse () const |
| void | markDirty () const |
| bool | isWellFormed () const |
| Returns true iff this element was parsed successfully, according to the implementation of parse(). | |
Static Public Attributes | |
| static constexpr CommaHandlingMode | commaHandling = NoCommaTokenizing |
Static Public Attributes inherited from resip::ParserCategory | |
| static const ParameterTypeSet | EmptyParameterTypeSet |
Represents the "callid" element in the SIP grammar.
Definition at line 17 of file CallId.hxx.
| CallID::CallID | ( | ) |
Definition at line 22 of file CallId.cxx.
| CallID::CallID | ( | const HeaderFieldValue & | hfv, |
| Headers::Type | type, | ||
| PoolBase * | pool = 0 |
||
| ) |
Definition at line 27 of file CallId.cxx.
Definition at line 33 of file CallId.cxx.
|
virtual |
Implements resip::ParserCategory.
Definition at line 57 of file CallId.cxx.
|
virtual |
Implements resip::ParserCategory.
Definition at line 69 of file CallId.cxx.
|
virtual |
Implements resip::ParserCategory.
Definition at line 63 of file CallId.cxx.
|
virtual |
Reimplemented from resip::ParserCategory.
Definition at line 111 of file CallId.cxx.
| resip::CallID::defineParam | ( | earlyOnly | , |
| "early-only" | , | ||
| ExistsParameter | , | ||
| "RFC 3891 (not in IANA, apparently)" | |||
| ) |
| resip::CallID::defineParam | ( | fromTag | , |
| "from-tag" | , | ||
| DataParameter | , | ||
| "RFC 3891 (not in IANA, apparently)" | |||
| ) |
| resip::CallID::defineParam | ( | toTag | , |
| "to-tag" | , | ||
| DataParameter | , | ||
| "RFC 3891 (not in IANA, apparently)" | |||
| ) |
|
virtual |
Implements resip::LazyParser.
Definition at line 101 of file CallId.cxx.
| bool ParserCategory::exists | ( | const ExtensionParameter & | param | ) | const |
Checks for the existence of a non-natively-supported parameter.
| param | The runtime constructed accessor token. |
Definition at line 187 of file ParserCategory.cxx.
Definition at line 121 of file CallId.cxx.
|
inline |
Checks for the existence of a natively supported parameter.
| paramType | The accessor token for the parameter. |
Definition at line 145 of file ParserCategory.hxx.
Definition at line 40 of file CallId.cxx.
| bool CallID::operator== | ( | const CallID & | rhs | ) | const |
Definition at line 51 of file CallId.cxx.
| Data & ParserCategory::param | ( | const ExtensionParameter & | param | ) |
Accessor for non-natively-supported parameter types.
Will create the parameter if it does not exist.
| param | The runtime constructed parameter accessor. |
Definition at line 173 of file ParserCategory.cxx.
| const Data & ParserCategory::param | ( | const ExtensionParameter & | param | ) | const |
Const accessor for non-natively-supported parameter types.
| ParserCategory::Exception | if this parameter doesn't exist. |
| param | The runtime constructed parameter accessor. |
Definition at line 165 of file ParserCategory.cxx.
|
virtual |
Implements resip::LazyParser.
Definition at line 89 of file CallId.cxx.
| void ParserCategory::remove | ( | const ExtensionParameter & | param | ) |
Removes a non-natively-supported parameter, if the parameter is present.
| param | The accessor token for the parameter. |
Definition at line 180 of file ParserCategory.cxx.
Definition at line 129 of file CallId.cxx.
| void ParserCategory::remove | ( | const ParamBase & | paramType | ) |
Removes a natively supported parameter, if the parameter is present.
| paramType | The accessor token for the parameter. |
Definition at line 156 of file ParserCategory.cxx.
| Data & CallID::value | ( | ) |
Definition at line 75 of file CallId.cxx.
| const Data & CallID::value | ( | ) | const |
Definition at line 82 of file CallId.cxx.
|
staticconstexpr |
Definition at line 20 of file CallId.hxx.