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

Represents the "absoluteURI" element in the RFC 3261 grammar. More...

#include <GenericUri.hxx>

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

List of all members.

Public Types

enum  { commaHandling = CommasAllowedOutputMulti }

Public Member Functions

 GenericUri ()
 GenericUri (const HeaderFieldValue &hfv, Headers::Type type, PoolBase *pool=0)
 GenericUri (const GenericUri &orig, PoolBase *pool=0)
GenericUrioperator= (const GenericUri &)
virtual void parse (ParseBuffer &pb)
virtual ParserCategoryclone () const
virtual ParserCategoryclone (void *location) const
virtual ParserCategoryclone (PoolBase *pool) const
virtual EncodeStreamencodeParsed (EncodeStream &str) const
Datauri ()
const Datauri () const
virtual ParametercreateParam (ParameterTypes::Type type, ParseBuffer &pb, const std::bitset< 256 > &terminators, PoolBase *pool)
bool exists (const Param< GenericUri > &paramType) const
void remove (const Param< GenericUri > &paramType)
 defineParam (purpose,"purpose", DataParameter,"RFC 3261")

Private Attributes

Data mUri

Static Private Attributes

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

Detailed Description

Represents the "absoluteURI" element in the RFC 3261 grammar.

Definition at line 16 of file GenericUri.hxx.


Member Enumeration Documentation

anonymous enum
Enumerator:
commaHandling 

Definition at line 19 of file GenericUri.hxx.


Constructor & Destructor Documentation

resip::GenericUri::GenericUri ( ) [inline]

Definition at line 21 of file GenericUri.hxx.

Referenced by clone().

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

Definition at line 25 of file GenericUri.cxx.

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

Definition at line 19 of file GenericUri.cxx.

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

Member Function Documentation

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

Implements resip::ParserCategory.

Definition at line 72 of file GenericUri.cxx.

References GenericUri().

{
   return new GenericUri(*this);
}

Here is the call graph for this function:

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

Implements resip::ParserCategory.

Definition at line 78 of file GenericUri.cxx.

References GenericUri().

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

Here is the call graph for this function:

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

Implements resip::ParserCategory.

Definition at line 84 of file GenericUri.cxx.

References GenericUri().

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

Here is the call graph for this function:

Parameter * GenericUri::createParam ( ParameterTypes::Type  type,
ParseBuffer pb,
const std::bitset< 256 > &  terminators,
PoolBase pool 
) [virtual]
resip::GenericUri::defineParam ( purpose  ,
"purpose"  ,
DataParameter  ,
"RFC 3261"   
)
EncodeStream & GenericUri::encodeParsed ( EncodeStream str) const [virtual]

Implements resip::LazyParser.

Definition at line 90 of file GenericUri.cxx.

References resip::ParserCategory::encodeParameters(), resip::Symbols::LA_QUOTE, mUri, and resip::Symbols::RA_QUOTE.

{
   str << Symbols::LA_QUOTE[0]
       << mUri
       << Symbols::RA_QUOTE[0];

   encodeParameters(str);

   return str;
}

Here is the call graph for this function:

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

Definition at line 114 of file GenericUri.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:

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

Definition at line 32 of file GenericUri.cxx.

References mUri.

{
   if (this != &rhs)
   {
      ParserCategory::operator=(rhs);
      mUri = rhs.mUri;
   }
   return *this;
}
void GenericUri::parse ( ParseBuffer pb) [virtual]
void GenericUri::remove ( const Param< GenericUri > &  paramType)

Definition at line 122 of file GenericUri.cxx.

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

Here is the call graph for this function:

Data & GenericUri::uri ( )

Definition at line 43 of file GenericUri.cxx.

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

{
   checkParsed();
   return mUri;
}

Here is the call graph for this function:

const Data & GenericUri::uri ( ) const

Definition at line 50 of file GenericUri.cxx.

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

{
   checkParsed();
   return mUri;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 59 of file GenericUri.hxx.

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

Definition at line 61 of file GenericUri.hxx.

Referenced by createParam().


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