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

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

#include <IntegerCategory.hxx>

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

List of all members.

Public Types

enum  { commaHandling = NoCommaTokenizing }

Public Member Functions

 IntegerCategory ()
 IntegerCategory (const HeaderFieldValue &hfv, Headers::Type type, PoolBase *pool=0)
 IntegerCategory (const IntegerCategory &orig, PoolBase *pool=0)
IntegerCategoryoperator= (const IntegerCategory &)
virtual void parse (ParseBuffer &pb)
virtual EncodeStreamencodeParsed (EncodeStream &str) const
virtual ParserCategoryclone () const
virtual ParserCategoryclone (void *location) const
virtual ParserCategoryclone (PoolBase *pool) const
int value () const
int & value ()
Datacomment ()
const Datacomment () const

Private Attributes

int mValue
Data mComment

Detailed Description

Represents a numeric-with-comment header field value.

Deprecated:
Use UInt32Category instead.

Definition at line 15 of file IntegerCategory.hxx.


Member Enumeration Documentation

anonymous enum
Enumerator:
commaHandling 

Definition at line 18 of file IntegerCategory.hxx.


Constructor & Destructor Documentation

IntegerCategory::IntegerCategory ( )

Definition at line 18 of file IntegerCategory.cxx.

Referenced by clone().

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

Definition at line 24 of file IntegerCategory.cxx.

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

Definition at line 32 of file IntegerCategory.cxx.

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

Member Function Documentation

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

Implements resip::ParserCategory.

Definition at line 51 of file IntegerCategory.cxx.

References IntegerCategory().

{
   return new IntegerCategory(*this);
}

Here is the call graph for this function:

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

Implements resip::ParserCategory.

Definition at line 56 of file IntegerCategory.cxx.

References IntegerCategory().

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

Here is the call graph for this function:

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

Implements resip::ParserCategory.

Definition at line 62 of file IntegerCategory.cxx.

References IntegerCategory().

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

Here is the call graph for this function:

Data & IntegerCategory::comment ( )

Definition at line 87 of file IntegerCategory.cxx.

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

{
   checkParsed(); 
   return mComment;
}

Here is the call graph for this function:

const Data & IntegerCategory::comment ( ) const

Definition at line 74 of file IntegerCategory.cxx.

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

{
   checkParsed(); 
   return mComment;
}

Here is the call graph for this function:

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

Implements resip::LazyParser.

Definition at line 117 of file IntegerCategory.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:

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

Definition at line 40 of file IntegerCategory.cxx.

References mComment, and mValue.

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

Definition at line 67 of file IntegerCategory.cxx.

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

{
   checkParsed(); 
   return mValue;
}

Here is the call graph for this function:

int & IntegerCategory::value ( )

Definition at line 80 of file IntegerCategory.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 IntegerCategory.hxx.

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

Definition at line 40 of file IntegerCategory.hxx.

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


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