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

Represents the "Status-Line" element in the RFC 3261 grammar. More...

#include <StatusLine.hxx>

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

List of all members.

Public Member Functions

 StatusLine ()
 StatusLine (const HeaderFieldValue &hfv)
 StatusLine (const char *buf, int length)
 StatusLine (const StatusLine &)
StatusLineoperator= (const StatusLine &)
int & responseCode ()
int responseCode () const
int & statusCode ()
int statusCode () const
const DatagetSipVersion () const
Datareason ()
const Datareason () const
virtual void parse (ParseBuffer &pb)
virtual StartLineclone () const
virtual StartLineclone (void *location) const
virtual EncodeStreamencodeParsed (EncodeStream &str) const
virtual const DataerrorContext () const

Private Attributes

int mResponseCode
Data mSipVersion
Data mReason

Detailed Description

Represents the "Status-Line" element in the RFC 3261 grammar.

Definition at line 15 of file StatusLine.hxx.


Constructor & Destructor Documentation

StatusLine::StatusLine ( )

Definition at line 20 of file StatusLine.cxx.

Referenced by clone().

StatusLine::StatusLine ( const HeaderFieldValue hfv)
StatusLine::StatusLine ( const char *  buf,
int  length 
)

Definition at line 34 of file StatusLine.cxx.

StatusLine::StatusLine ( const StatusLine rhs)

Definition at line 41 of file StatusLine.cxx.


Member Function Documentation

StartLine * StatusLine::clone ( ) const [virtual]

Implements resip::StartLine.

Definition at line 62 of file StatusLine.cxx.

References StatusLine().

{
   return new StatusLine(*this);
}

Here is the call graph for this function:

StartLine * StatusLine::clone ( void *  location) const [virtual]

Implements resip::StartLine.

Definition at line 68 of file StatusLine.cxx.

References StatusLine().

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

Here is the call graph for this function:

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

Implements resip::StartLine.

Definition at line 137 of file StatusLine.cxx.

References mReason, mResponseCode, mSipVersion, and resip::Symbols::SPACE.

{
   str << mSipVersion << Symbols::SPACE 
       << mResponseCode << Symbols::SPACE
       << mReason;
   return str;
}
const Data & StatusLine::errorContext ( ) const [virtual]

Implements resip::StartLine.

Definition at line 146 of file StatusLine.cxx.

{
   static const Data statLine("Status Line");
   return statLine;
}
const Data & StatusLine::getSipVersion ( ) const

Definition at line 102 of file StatusLine.cxx.

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

{
   checkParsed();
   return mSipVersion;
}

Here is the call graph for this function:

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

Definition at line 49 of file StatusLine.cxx.

References mReason, mResponseCode, and mSipVersion.

{
   if (this != &rhs)
   {
      StartLine::operator=(rhs);
      mResponseCode = rhs.mResponseCode;
      mSipVersion = rhs.mSipVersion;
      mReason = rhs.mReason;
   }
   return *this;
}
void StatusLine::parse ( ParseBuffer pb) [virtual]

Implements resip::StartLine.

Definition at line 123 of file StatusLine.cxx.

References resip::ParseBuffer::data(), resip::ParseBuffer::integer(), mReason, mResponseCode, mSipVersion, resip::ParseBuffer::skipNonWhitespace(), resip::ParseBuffer::skipToEnd(), and resip::ParseBuffer::skipWhitespace().

{
   const char* start = pb.skipWhitespace();
   pb.skipNonWhitespace();
   pb.data(mSipVersion, start);

   start = pb.skipWhitespace();
   mResponseCode = pb.integer();
   start = pb.skipWhitespace();
   pb.skipToEnd();
   pb.data(mReason, start);
}

Here is the call graph for this function:

Data & StatusLine::reason ( )

Definition at line 109 of file StatusLine.cxx.

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

{
   checkParsed();
   return mReason;
}

Here is the call graph for this function:

const Data & StatusLine::reason ( ) const

Definition at line 116 of file StatusLine.cxx.

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

{
   checkParsed();
   return mReason;
}

Here is the call graph for this function:

int & StatusLine::responseCode ( )

Definition at line 74 of file StatusLine.cxx.

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

{
   checkParsed();
   return mResponseCode;
}

Here is the call graph for this function:

int StatusLine::responseCode ( ) const

Definition at line 81 of file StatusLine.cxx.

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

{
   checkParsed();
   return mResponseCode;
}

Here is the call graph for this function:

int & StatusLine::statusCode ( )

Definition at line 88 of file StatusLine.cxx.

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

{
   checkParsed();
   return mResponseCode;
}

Here is the call graph for this function:

int StatusLine::statusCode ( ) const

Definition at line 95 of file StatusLine.cxx.

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

{
   checkParsed();
   return mResponseCode;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 41 of file StatusLine.hxx.

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

Definition at line 39 of file StatusLine.hxx.

Referenced by encodeParsed(), operator=(), parse(), responseCode(), and statusCode().

Definition at line 40 of file StatusLine.hxx.

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


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