|
reSIProcate/stack
9694
|
Generically represents floating point values conveyed by SIP parameters. More...
#include <FloatParameter.hxx>


Public Types | |
| typedef float | Type |
Public Member Functions | |
| FloatParameter (ParameterTypes::Type, ParseBuffer &pb, const char *terminators) | |
| FloatParameter (ParameterTypes::Type type) | |
| virtual Parameter * | clone () const |
| virtual EncodeStream & | encode (std::ostream &stream) const |
Static Public Member Functions | |
| static Parameter * | decode (ParameterTypes::Type type, ParseBuffer &pb, const char *terminators) |
Private Member Functions | |
| Type & | value () |
Private Attributes | |
| Type | mValue |
Friends | |
| class | ParserCategory |
Generically represents floating point values conveyed by SIP parameters.
Definition at line 19 of file FloatParameter.hxx.
| typedef float resip::FloatParameter::Type |
Definition at line 22 of file FloatParameter.hxx.
| FloatParameter::FloatParameter | ( | ParameterTypes::Type | type, |
| ParseBuffer & | pb, | ||
| const char * | terminators | ||
| ) |
Definition at line 17 of file FloatParameter.cxx.
References resip::ParseBuffer::eof(), resip::ParseBuffer::floatVal(), mValue, resip::ParseBuffer::position(), resip::ParseBuffer::skipChar(), and resip::ParseBuffer::skipWhitespace().
Referenced by clone(), and decode().
: Parameter(type), mValue(0) { pb.skipWhitespace(); if (!pb.eof() && *pb.position() != '=') { throw ParseException("parameter constructor expected '='", "FloatParameter", __FILE__, __LINE__); } pb.skipChar(); pb.skipWhitespace(); // .dlb. not zero terminated; no error detection mValue = pb.floatVal(); }

| FloatParameter::FloatParameter | ( | ParameterTypes::Type | type | ) | [explicit] |
Definition at line 35 of file FloatParameter.cxx.
| Parameter * FloatParameter::clone | ( | ) | const [virtual] |
Implements resip::Parameter.
Definition at line 41 of file FloatParameter.cxx.
References FloatParameter().
{
return new FloatParameter(*this);
}

| static Parameter* resip::FloatParameter::decode | ( | ParameterTypes::Type | type, |
| ParseBuffer & | pb, | ||
| const char * | terminators | ||
| ) | [inline, static] |
Definition at line 27 of file FloatParameter.hxx.
References FloatParameter().
{
return new FloatParameter(type, pb, terminators);
}

| virtual EncodeStream& resip::FloatParameter::encode | ( | std::ostream & | stream | ) | const [virtual] |
| Type& resip::FloatParameter::value | ( | ) | [inline, private] |
friend class ParserCategory [friend] |
Definition at line 36 of file FloatParameter.hxx.
Type resip::FloatParameter::mValue [private] |
Definition at line 39 of file FloatParameter.hxx.
Referenced by FloatParameter(), and value().
1.7.5.1