reSIProcate/rutil  9694
Public Member Functions | Private Attributes | Static Private Attributes
resip::ParseBuffer::Pointer Class Reference

Similar to CurrentPosition, but does not move depending on the state of the ParseBuffer. Initializing one of these is more expensive. More...

Collaboration diagram for resip::ParseBuffer::Pointer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Pointer (const ParseBuffer &pb, const char *position, bool atEof)
 Pointer (const CurrentPosition &pos)
 operator const char * () const
const char & operator* () const

Private Attributes

const ParseBuffermPb
const char * mPosition
const bool mIsValid

Static Private Attributes

static const Data msg

Detailed Description

Similar to CurrentPosition, but does not move depending on the state of the ParseBuffer. Initializing one of these is more expensive.

Definition at line 71 of file ParseBuffer.hxx.


Constructor & Destructor Documentation

ParseBuffer::Pointer::Pointer ( const ParseBuffer pb,
const char *  position,
bool  atEof 
)

Definition at line 967 of file ParseBuffer.cxx.

   : mPb(pb),
     mPosition(position),
     mIsValid(!atEof)
{}
ParseBuffer::Pointer::Pointer ( const CurrentPosition pos)

Definition at line 975 of file ParseBuffer.cxx.

                                                      :
   mPb(pos.mPb),
   mPosition(pos),
   mIsValid(pos.mPb.valid())
{}

Member Function Documentation

resip::ParseBuffer::Pointer::operator const char * ( ) const [inline]

Definition at line 79 of file ParseBuffer.hxx.

References mPosition.

            {
               return mPosition;
            }
const char & ParseBuffer::Pointer::operator* ( ) const

Definition at line 982 of file ParseBuffer.cxx.

References resip::ParseBuffer::mPosition.

{
   if (mIsValid)
   {
      return *mPosition;
   }
   else
   {
      throw ParseException(msg, mPb.getContext(), __FILE__, __LINE__);
   }
}

Member Data Documentation

Definition at line 88 of file ParseBuffer.hxx.

Definition at line 86 of file ParseBuffer.hxx.

Definition at line 87 of file ParseBuffer.hxx.

Referenced by operator const char *().

const Data ParseBuffer::Pointer::msg [static, private]

Definition at line 89 of file ParseBuffer.hxx.


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