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

Represents the "header-value" element in the RFC 3261 grammar (ie, an unknown header field value). More...

#include <StringCategory.hxx>

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

List of all members.

Public Types

enum  { commaHandling = NoCommaTokenizing }

Public Member Functions

 StringCategory ()
 StringCategory (const Data &value)
 StringCategory (const HeaderFieldValue &hfv, Headers::Type type, PoolBase *pool=0)
 StringCategory (const StringCategory &orig, PoolBase *pool=0)
StringCategoryoperator= (const StringCategory &)
virtual void parse (ParseBuffer &pb)
virtual EncodeStreamencodeParsed (EncodeStream &str) const
virtual ParserCategoryclone () const
virtual ParserCategoryclone (void *location) const
virtual ParserCategoryclone (PoolBase *pool) const
const Datavalue () const
Datavalue ()

Private Attributes

Data mValue

Detailed Description

Represents the "header-value" element in the RFC 3261 grammar (ie, an unknown header field value).

Definition at line 17 of file StringCategory.hxx.


Member Enumeration Documentation

anonymous enum
Enumerator:
commaHandling 

Definition at line 20 of file StringCategory.hxx.


Constructor & Destructor Documentation

StringCategory::StringCategory ( )

Definition at line 18 of file StringCategory.cxx.

Referenced by clone().

StringCategory::StringCategory ( const Data value) [explicit]

Definition at line 23 of file StringCategory.cxx.

   : ParserCategory(),
     mValue(value)
{}
StringCategory::StringCategory ( const HeaderFieldValue hfv,
Headers::Type  type,
PoolBase pool = 0 
)

Definition at line 28 of file StringCategory.cxx.

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

Definition at line 35 of file StringCategory.cxx.

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

Member Function Documentation

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

Implements resip::ParserCategory.

Definition at line 52 of file StringCategory.cxx.

References StringCategory().

{
   return new StringCategory(*this);
}

Here is the call graph for this function:

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

Implements resip::ParserCategory.

Definition at line 58 of file StringCategory.cxx.

References StringCategory().

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

Here is the call graph for this function:

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

Implements resip::ParserCategory.

Definition at line 64 of file StringCategory.cxx.

References StringCategory().

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

Here is the call graph for this function:

EncodeStream & StringCategory::encodeParsed ( EncodeStream str) const [virtual]

Implements resip::LazyParser.

Definition at line 78 of file StringCategory.cxx.

References mValue.

{
   str << mValue;
   return str;
}
StringCategory & StringCategory::operator= ( const StringCategory rhs)

Definition at line 42 of file StringCategory.cxx.

References mValue.

{
   if (this != &rhs)
   {
      ParserCategory::operator=(rhs);
      mValue = rhs.mValue;
   }
   return *this;
}
void StringCategory::parse ( ParseBuffer pb) [virtual]

Implements resip::LazyParser.

Definition at line 70 of file StringCategory.cxx.

References resip::ParseBuffer::data(), mValue, resip::ParseBuffer::position(), and resip::ParseBuffer::skipToEnd().

Referenced by resip::Contents::preParseHeaders().

{
   const char* anchor = pb.position();
   pb.skipToEnd();
   pb.data(mValue, anchor);
}

Here is the call graph for this function:

const Data & StringCategory::value ( ) const

Definition at line 85 of file StringCategory.cxx.

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

Referenced by main().

{
   checkParsed(); 
   return mValue;
}

Here is the call graph for this function:

Data & StringCategory::value ( )

Definition at line 92 of file StringCategory.cxx.

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

{
   checkParsed(); 
   return mValue;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 41 of file StringCategory.hxx.

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


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