reSIProcate/stack  9694
Public Types | Public Member Functions | Private Attributes | Static Private Attributes
resip::CallID Class Reference

Represents the "callid" element in the SIP grammar. More...

#include <CallId.hxx>

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

List of all members.

Public Types

enum  { commaHandling = NoCommaTokenizing }

Public Member Functions

 CallID ()
 CallID (const HeaderFieldValue &hfv, Headers::Type type, PoolBase *pool=0)
 CallID (const CallID &orig, PoolBase *pool=0)
CallIDoperator= (const CallID &)
bool operator== (const CallID &) const
Datavalue ()
const Datavalue () const
virtual void parse (ParseBuffer &pb)
virtual ParserCategoryclone () const
virtual ParserCategoryclone (void *location) const
virtual ParserCategoryclone (PoolBase *pool) const
virtual EncodeStreamencodeParsed (EncodeStream &str) const
virtual ParametercreateParam (ParameterTypes::Type type, ParseBuffer &pb, const std::bitset< 256 > &terminators, PoolBase *pool)
bool exists (const Param< CallID > &paramType) const
void remove (const Param< CallID > &paramType)
 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)")

Private Attributes

Data mValue

Static Private Attributes

static ParameterTypes::Factory ParameterFactories [ParameterTypes::MAX_PARAMETER] = {0}

Detailed Description

Represents the "callid" element in the SIP grammar.

Definition at line 17 of file CallId.hxx.


Member Enumeration Documentation

anonymous enum
Enumerator:
commaHandling 

Definition at line 20 of file CallId.hxx.


Constructor & Destructor Documentation

CallID::CallID ( )

Definition at line 22 of file CallId.cxx.

Referenced by clone().

CallID::CallID ( const HeaderFieldValue hfv,
Headers::Type  type,
PoolBase pool = 0 
)

Definition at line 27 of file CallId.cxx.

   : ParserCategory(hfv, type, pool), mValue()
{}
CallID::CallID ( const CallID orig,
PoolBase pool = 0 
)

Definition at line 33 of file CallId.cxx.

   : ParserCategory(rhs, pool),
     mValue(rhs.mValue)
{}

Member Function Documentation

ParserCategory * CallID::clone ( ) const [virtual]

Implements resip::ParserCategory.

Definition at line 57 of file CallId.cxx.

References CallID().

{
   return new CallID(*this);
}

Here is the call graph for this function:

ParserCategory * CallID::clone ( void *  location) const [virtual]

Implements resip::ParserCategory.

Definition at line 63 of file CallId.cxx.

References CallID().

{
   return new (location) CallID(*this);
}

Here is the call graph for this function:

ParserCategory * CallID::clone ( PoolBase pool) const [virtual]

Implements resip::ParserCategory.

Definition at line 69 of file CallId.cxx.

References CallID().

{
   return new (pool) CallID(*this, pool);
}

Here is the call graph for this function:

Parameter * CallID::createParam ( ParameterTypes::Type  type,
ParseBuffer pb,
const std::bitset< 256 > &  terminators,
PoolBase pool 
) [virtual]
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)"   
)
resip::CallID::defineParam ( earlyOnly  ,
"early-only"  ,
ExistsParameter  ,
"RFC 3891 (not in IANA, apparently)"   
)
EncodeStream & CallID::encodeParsed ( EncodeStream str) const [virtual]

Implements resip::LazyParser.

Definition at line 100 of file CallId.cxx.

References resip::ParserCategory::encodeParameters(), and mValue.

{
   str << mValue;
   encodeParameters(str);
   return str;
}

Here is the call graph for this function:

bool CallID::exists ( const Param< CallID > &  paramType) const

Definition at line 120 of file CallId.cxx.

References resip::LazyParser::checkParsed(), resip::ParserCategory::getParameterByEnum(), and resip::ParamBase::getTypeNum().

{
    checkParsed();
    bool ret = getParameterByEnum(paramType.getTypeNum()) != NULL;
    return ret;
}

Here is the call graph for this function:

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

Definition at line 40 of file CallId.cxx.

References mValue.

{
   if (this != &rhs)
   {
      ParserCategory::operator=(rhs);
      mValue = rhs.mValue;
   }
   return *this;
}
bool CallID::operator== ( const CallID rhs) const

Definition at line 51 of file CallId.cxx.

References value().

{
   return value() == rhs.value();
}

Here is the call graph for this function:

void CallID::parse ( ParseBuffer pb) [virtual]
void CallID::remove ( const Param< CallID > &  paramType)

Definition at line 128 of file CallId.cxx.

References resip::LazyParser::checkParsed(), resip::ParamBase::getTypeNum(), and resip::ParserCategory::removeParameterByEnum().

Here is the call graph for this function:

Data & CallID::value ( )

Definition at line 75 of file CallId.cxx.

References resip::LazyParser::checkParsed(), and mValue.

Referenced by resip::DeprecatedDialog::clear(), operator==(), and resip::TuIM::processResponse().

{
   checkParsed(); 
   return mValue;
}

Here is the call graph for this function:

const Data & CallID::value ( ) const

Definition at line 82 of file CallId.cxx.

References resip::LazyParser::checkParsed(), and mValue.

{
   checkParsed(); 
   return mValue;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 65 of file CallId.hxx.

Referenced by encodeParsed(), operator=(), parse(), and value().

Definition at line 67 of file CallId.hxx.

Referenced by createParam().


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