|
reSIProcate/stack
9694
|
Generically represents unsigned 32-bit integer values conveyed by SIP parameters. More...
#include <UInt32Parameter.hxx>


Public Types | |
| typedef UInt32 | Type |
Public Member Functions | |
| UInt32Parameter (ParameterTypes::Type, ParseBuffer &pb, const std::bitset< 256 > &terminators) | |
| UInt32Parameter (ParameterTypes::Type type, UInt32 value=0) | |
| virtual EncodeStream & | encode (EncodeStream &stream) const |
| virtual Parameter * | clone () const |
| Type & | value () |
Static Public Member Functions | |
| static Parameter * | decode (ParameterTypes::Type type, ParseBuffer &pb, const std::bitset< 256 > &terminators, PoolBase *pool) |
Private Attributes | |
| UInt32 | mValue |
Generically represents unsigned 32-bit integer values conveyed by SIP parameters.
Definition at line 22 of file UInt32Parameter.hxx.
| typedef UInt32 resip::UInt32Parameter::Type |
Definition at line 25 of file UInt32Parameter.hxx.
| UInt32Parameter::UInt32Parameter | ( | ParameterTypes::Type | type, |
| ParseBuffer & | pb, | ||
| const std::bitset< 256 > & | terminators | ||
| ) |
Definition at line 13 of file UInt32Parameter.cxx.
References resip::ParseBuffer::assertNotEof(), resip::Symbols::EQUALS, mValue, resip::ParseBuffer::ParamTerm, resip::ParseBuffer::skipChar(), resip::ParseBuffer::skipToOneOf(), resip::ParseBuffer::skipWhitespace(), and resip::ParseBuffer::uInt32().
Referenced by clone(), and decode().
: Parameter(type), mValue(0) { pb.skipWhitespace(); pb.skipChar(Symbols::EQUALS[0]); pb.skipWhitespace(); // hack to allow expires to have an 2543 style quoted Date if (type == ParameterTypes::expires) { pb.assertNotEof(); try { mValue = pb.uInt32(); } catch (ParseException&) { mValue = 3600; pb.skipToOneOf(ParseBuffer::ParamTerm); } } else { mValue = pb.uInt32(); } }

| UInt32Parameter::UInt32Parameter | ( | ParameterTypes::Type | type, |
| UInt32 | value = 0 |
||
| ) | [explicit] |
| Parameter * UInt32Parameter::clone | ( | ) | const [virtual] |
Implements resip::Parameter.
Definition at line 50 of file UInt32Parameter.cxx.
References UInt32Parameter().
{
return new UInt32Parameter(*this);
}

| static Parameter* resip::UInt32Parameter::decode | ( | ParameterTypes::Type | type, |
| ParseBuffer & | pb, | ||
| const std::bitset< 256 > & | terminators, | ||
| PoolBase * | pool | ||
| ) | [inline, static] |
Definition at line 30 of file UInt32Parameter.hxx.
References UInt32Parameter().
{
return new (pool) UInt32Parameter(type, pb, terminators);
}

| EncodeStream & UInt32Parameter::encode | ( | EncodeStream & | stream | ) | const [virtual] |
Implements resip::Parameter.
Definition at line 56 of file UInt32Parameter.cxx.
References resip::Symbols::EQUALS, resip::Parameter::getName(), and mValue.
{
return stream << getName() << Symbols::EQUALS << mValue;
}

| Type& resip::UInt32Parameter::value | ( | ) | [inline] |
UInt32 resip::UInt32Parameter::mValue [private] |
Definition at line 44 of file UInt32Parameter.hxx.
Referenced by encode(), UInt32Parameter(), and value().
1.7.5.1