reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::RAckCategory Class Reference

Represents the RAck header field value defined in the RFC 3262 grammar. More...

#include <RAckCategory.hxx>

Inheritance diagram for resip::RAckCategory:
[legend]

Public Member Functions

 RAckCategory ()
 
 RAckCategory (const HeaderFieldValue &hfv, Headers::Type type, PoolBase *pool=0)
 
 RAckCategory (const RAckCategory &orig, PoolBase *pool=0)
 
RAckCategory & operator= (const RAckCategory &)
 
MethodTypes & method ()
 
MethodTypes method () const
 
Data & unknownMethodName ()
 
const Data & unknownMethodName () const
 
unsigned int & rSequence ()
 
unsigned int rSequence () const
 
unsigned int & cSequence ()
 
unsigned int cSequence () const
 
bool operator== (const RAckCategory &rhs) 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
 
- 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 ()
 
virtual Parameter * createParam (ParameterTypes::Type type, ParseBuffer &pb, const std::bitset< 256 > &terminators, PoolBase *pool)
 
bool exists (const ParamBase &paramType) const
 Checks for the existence of a natively supported parameter.
 
void remove (const ParamBase &paramType)
 Removes a natively supported parameter, if the parameter is present.
 
const Data & param (const ExtensionParameter &param) const
 Const accessor for non-natively-supported parameter types.
 
Data & param (const ExtensionParameter &param)
 Accessor for non-natively-supported parameter types.
 
void remove (const ExtensionParameter &param)
 Removes a non-natively-supported parameter, if the parameter is present.
 
bool exists (const ExtensionParameter &param) 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
 

Additional Inherited Members

- Public Types inherited from resip::ParserCategory
enum  { UnknownParserCategory = -1 }
 
enum  CommaHandlingMode { NoCommaTokenizing = 0 , CommasAllowedOutputMulti = 1 , CommasAllowedOutputCommas = 3 }
 
typedef std::set< ParameterTypes::Type > ParameterTypeSet
 
- Protected Types inherited from resip::ParserCategory
typedef std::vector< Parameter *, StlPoolAllocator< Parameter *, PoolBase > > ParameterList
 
- Protected Member Functions inherited from resip::ParserCategory
 ParserCategory (PoolBase *pool=0)
 
bool addParameter (Parameter *param)
 
bool addParameter (UnknownParameter *unknownParam)
 
Parameter * getParameterByData (const Data &data) const
 
void removeParameterByData (const Data &data)
 
PoolBase * getPool ()
 
void freeParameter (Parameter *p)
 
virtual const Data & errorContext () const
 
- Protected Member Functions inherited from resip::LazyParser
 LazyParser ()
 
void clear ()
 
- Protected Attributes inherited from resip::ParserCategory
ParameterList mParameters
 
ParameterList mUnknownParameters
 
PoolBase * mPool
 
Headers::Type mHeaderType
 

Detailed Description

Represents the RAck header field value defined in the RFC 3262 grammar.

Definition at line 17 of file RAckCategory.hxx.

Constructor & Destructor Documentation

◆ RAckCategory() [1/3]

RAckCategory::RAckCategory ( )

Definition at line 30 of file RAckCategory.cxx.

◆ RAckCategory() [2/3]

RAckCategory::RAckCategory ( const HeaderFieldValue &  hfv,
Headers::Type  type,
PoolBase *  pool = 0 
)

Definition at line 21 of file RAckCategory.cxx.

◆ RAckCategory() [3/3]

RAckCategory::RAckCategory ( const RAckCategory &  orig,
PoolBase *  pool = 0 
)

Definition at line 38 of file RAckCategory.cxx.

Member Function Documentation

◆ clone() [1/3]

ParserCategory * RAckCategory::clone ( ) const
virtual

Implements resip::ParserCategory.

Definition at line 71 of file RAckCategory.cxx.

◆ clone() [2/3]

ParserCategory * RAckCategory::clone ( PoolBase *  pool) const
virtual

Implements resip::ParserCategory.

Definition at line 83 of file RAckCategory.cxx.

◆ clone() [3/3]

ParserCategory * RAckCategory::clone ( void *  location) const
virtual

Implements resip::ParserCategory.

Definition at line 77 of file RAckCategory.cxx.

◆ cSequence() [1/2]

unsigned int & RAckCategory::cSequence ( )

Definition at line 130 of file RAckCategory.cxx.

◆ cSequence() [2/2]

unsigned int RAckCategory::cSequence ( ) const

Definition at line 137 of file RAckCategory.cxx.

◆ encodeParsed()

EncodeStream & RAckCategory::encodeParsed ( EncodeStream &  str) const
virtual

Implements resip::LazyParser.

Definition at line 162 of file RAckCategory.cxx.

◆ method() [1/2]

MethodTypes & RAckCategory::method ( )

Definition at line 89 of file RAckCategory.cxx.

◆ method() [2/2]

MethodTypes RAckCategory::method ( ) const

Definition at line 96 of file RAckCategory.cxx.

◆ operator=()

RAckCategory & RAckCategory::operator= ( const RAckCategory &  rhs)

Definition at line 48 of file RAckCategory.cxx.

◆ operator==()

bool RAckCategory::operator== ( const RAckCategory &  rhs) const

Definition at line 62 of file RAckCategory.cxx.

◆ parse()

void RAckCategory::parse ( ParseBuffer &  pb)
virtual

Implements resip::LazyParser.

Definition at line 144 of file RAckCategory.cxx.

◆ rSequence() [1/2]

unsigned int & RAckCategory::rSequence ( )

Definition at line 116 of file RAckCategory.cxx.

◆ rSequence() [2/2]

unsigned int RAckCategory::rSequence ( ) const

Definition at line 123 of file RAckCategory.cxx.

◆ unknownMethodName() [1/2]

Data & RAckCategory::unknownMethodName ( )

Definition at line 102 of file RAckCategory.cxx.

◆ unknownMethodName() [2/2]

const Data & RAckCategory::unknownMethodName ( ) const

Definition at line 109 of file RAckCategory.cxx.

Member Data Documentation

◆ commaHandling

constexpr CommaHandlingMode resip::RAckCategory::commaHandling = NoCommaTokenizing
staticconstexpr

Definition at line 20 of file RAckCategory.hxx.


The documentation for this class was generated from the following files: