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

Represents a numeric-with-comment header field value. More...

#include <UInt32Category.hxx>

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

List of all members.

Public Types

enum  { commaHandling = NoCommaTokenizing }

Public Member Functions

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

Private Attributes

UInt32 mValue
Data mComment

Static Private Attributes

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

Detailed Description

Represents a numeric-with-comment header field value.

Definition at line 17 of file UInt32Category.hxx.


Member Enumeration Documentation

anonymous enum
Enumerator:
commaHandling 

Definition at line 20 of file UInt32Category.hxx.


Constructor & Destructor Documentation

UInt32Category::UInt32Category ( )

Definition at line 18 of file UInt32Category.cxx.

Referenced by clone().

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

Definition at line 24 of file UInt32Category.cxx.

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

Definition at line 32 of file UInt32Category.cxx.

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

Member Function Documentation

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

Implements resip::ParserCategory.

Definition at line 51 of file UInt32Category.cxx.

References UInt32Category().

{
   return new UInt32Category(*this);
}

Here is the call graph for this function:

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

Implements resip::ParserCategory.

Definition at line 56 of file UInt32Category.cxx.

References UInt32Category().

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

Here is the call graph for this function:

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

Implements resip::ParserCategory.

Definition at line 62 of file UInt32Category.cxx.

References UInt32Category().

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

Here is the call graph for this function:

const Data & UInt32Category::comment ( ) const

Definition at line 75 of file UInt32Category.cxx.

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

{
   checkParsed(); 
   return mComment;
}

Here is the call graph for this function:

Data & UInt32Category::comment ( )

Definition at line 89 of file UInt32Category.cxx.

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

{
   checkParsed(); 
   return mComment;
}

Here is the call graph for this function:

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

Implements resip::LazyParser.

Definition at line 118 of file UInt32Category.cxx.

References resip::Data::empty(), resip::ParserCategory::encodeParameters(), mComment, and mValue.

{
  str << mValue;

  if (!mComment.empty())
  {
     str << "(" << mComment << ")";
  }
  
  encodeParameters(str);
  return str;
}

Here is the call graph for this function:

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

Definition at line 144 of file UInt32Category.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:

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

Definition at line 40 of file UInt32Category.cxx.

References mComment, and mValue.

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

Definition at line 152 of file UInt32Category.cxx.

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

Here is the call graph for this function:

const UInt32 & UInt32Category::value ( ) const

Definition at line 68 of file UInt32Category.cxx.

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

{
   checkParsed(); 
   return mValue;
}

Here is the call graph for this function:

UInt32 & UInt32Category::value ( )

Definition at line 82 of file UInt32Category.cxx.

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

{
   checkParsed(); 
   return mValue;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 63 of file UInt32Category.hxx.

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

Definition at line 62 of file UInt32Category.hxx.

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

Definition at line 65 of file UInt32Category.hxx.

Referenced by createParam().


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