reSIProcate/stack  9694
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
resip::ExistsOrDataParameter Class Reference

#include <ExistsOrDataParameter.hxx>

Inheritance diagram for resip::ExistsOrDataParameter:
Inheritance graph
[legend]
Collaboration diagram for resip::ExistsOrDataParameter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ExistsOrDataParameter (ParameterTypes::Type)
 ExistsOrDataParameter (ParameterTypes::Type, bool)
 ExistsOrDataParameter (ParameterTypes::Type, ParseBuffer &pb, const std::bitset< 256 > &terminators)
virtual EncodeStreamencode (EncodeStream &stream) const
virtual Parameterclone () const

Static Public Member Functions

static Parameterdecode (ParameterTypes::Type type, ParseBuffer &pb, const std::bitset< 256 > &terminators, PoolBase *pool)

Protected Member Functions

 ExistsOrDataParameter (const ExistsOrDataParameter &other)

Friends

class ParserCategory
class Auth

Detailed Description

Definition at line 15 of file ExistsOrDataParameter.hxx.


Constructor & Destructor Documentation

resip::ExistsOrDataParameter::ExistsOrDataParameter ( ParameterTypes::Type  type) [explicit]

Definition at line 31 of file ExistsOrDataParameter.cxx.

Referenced by clone(), and decode().

resip::ExistsOrDataParameter::ExistsOrDataParameter ( ParameterTypes::Type  type,
bool   
)

Definition at line 19 of file ExistsOrDataParameter.cxx.

resip::ExistsOrDataParameter::ExistsOrDataParameter ( ParameterTypes::Type  type,
ParseBuffer pb,
const std::bitset< 256 > &  terminators 
)

Definition at line 24 of file ExistsOrDataParameter.cxx.

   : DataParameter(type, pb, terminators)
{
}
resip::ExistsOrDataParameter::ExistsOrDataParameter ( const ExistsOrDataParameter other) [inline, protected]

Definition at line 34 of file ExistsOrDataParameter.hxx.

         : DataParameter(other)
      {}

Member Function Documentation

Parameter * resip::ExistsOrDataParameter::clone ( ) const [virtual]

Reimplemented from resip::DataParameter.

Definition at line 54 of file ExistsOrDataParameter.cxx.

References ExistsOrDataParameter().

{
   return new ExistsOrDataParameter(*this);
}

Here is the call graph for this function:

Parameter * resip::ExistsOrDataParameter::decode ( ParameterTypes::Type  type,
ParseBuffer pb,
const std::bitset< 256 > &  terminators,
PoolBase pool 
) [static]

Reimplemented from resip::DataParameter.

Definition at line 37 of file ExistsOrDataParameter.cxx.

References resip::ParseBuffer::eof(), ExistsOrDataParameter(), resip::ParseBuffer::position(), and resip::ParseBuffer::skipWhitespace().

{
   pb.skipWhitespace();
   if (pb.eof() || terminators[*pb.position()])
   {
      return new (pool) ExistsOrDataParameter(type);
   }
   else
   {
      return new (pool) ExistsOrDataParameter(type, pb, terminators);
   }
}

Here is the call graph for this function:

EncodeStream & resip::ExistsOrDataParameter::encode ( EncodeStream stream) const [virtual]

Reimplemented from resip::DataParameter.

Definition at line 60 of file ExistsOrDataParameter.cxx.

References resip::Data::empty(), resip::Parameter::getName(), and resip::DataParameter::mValue.

{
   if (mValue.empty())
   {
      return stream << getName();
   }
   else
   {
      return DataParameter::encode(stream);
   }
}

Here is the call graph for this function:


Friends And Related Function Documentation

friend class Auth [friend]

Definition at line 39 of file ExistsOrDataParameter.hxx.

friend class ParserCategory [friend]

Definition at line 38 of file ExistsOrDataParameter.hxx.


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