reSIProcate/repro  9694
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes
repro::Target Class Reference

#include <Target.hxx>

Inheritance diagram for repro::Target:
Inheritance graph
[legend]
Collaboration diagram for repro::Target:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Status {
  Candidate, Started, Cancelled, Terminated,
  NonExistent
}

Public Member Functions

 Target ()
 Target (const resip::Uri &uri)
 Target (const resip::NameAddr &target)
 Target (const resip::ContactInstanceRecord &record)
virtual ~Target ()
virtual const resip::Datatid () const
virtual Statusstatus ()
virtual const Statusstatus () const
virtual const resip::ViasetVia (const resip::Via &via)
virtual const resip::Viavia () const
virtual const resip::Uriuri () const
virtual const
resip::ContactInstanceRecord
rec () const
virtual
resip::ContactInstanceRecord
rec ()
virtual void setRec (const resip::ContactInstanceRecord &rec)
virtual Targetclone () const
virtual int getPriority () const
virtual bool shouldAutoProcess () const
resip::KeyValueStoregetKeyValueStore ()

Static Public Member Functions

static bool priorityMetricCompare (const Target *lhs, const Target *rhs)

Public Attributes

int mPriorityMetric
 Higher value denotes higher priority.
bool mShouldAutoProcess

Protected Attributes

Status mStatus
resip::Via mVia
resip::ContactInstanceRecord mRec
resip::KeyValueStore mKeyValueStore

Detailed Description

Definition at line 17 of file Target.hxx.


Member Enumeration Documentation

Enumerator:
Candidate 
Started 
Cancelled 
Terminated 
NonExistent 

Definition at line 21 of file Target.hxx.

      {
         Candidate, //Transaction has not started
         Started, //Transaction has started, no final responses
         Cancelled, //Transaction has been cancelled, but no final response yet
         Terminated, //Transaction has received a final response
         NonExistent //The state of transactions that do not exist
      } Status;

Constructor & Destructor Documentation

repro::Target::Target ( )
repro::Target::Target ( const resip::Uri uri)
repro::Target::Target ( const resip::NameAddr target)
repro::Target::Target ( const resip::ContactInstanceRecord record)

Definition at line 38 of file Target.cxx.

repro::Target::~Target ( ) [virtual]

Definition at line 46 of file Target.cxx.

{
}

Member Function Documentation

Target * repro::Target::clone ( ) const [virtual]

Reimplemented in repro::QValueTarget, and repro::OutboundTarget.

Definition at line 99 of file Target.cxx.

{
   return new Target(*this);
}
resip::KeyValueStore& repro::Target::getKeyValueStore ( ) [inline]

Definition at line 58 of file Target.hxx.

{ return mKeyValueStore; }
int repro::Target::getPriority ( ) const [virtual]

Definition at line 105 of file Target.cxx.

{
   return mPriorityMetric;
}
static bool repro::Target::priorityMetricCompare ( const Target lhs,
const Target rhs 
) [inline, static]

Definition at line 60 of file Target.hxx.

      {
         return lhs->mPriorityMetric > rhs->mPriorityMetric;
      }
const resip::ContactInstanceRecord & repro::Target::rec ( ) const [virtual]

Definition at line 81 of file Target.cxx.

{
   return mRec;
}
resip::ContactInstanceRecord & repro::Target::rec ( ) [virtual]

Definition at line 87 of file Target.cxx.

{
   return mRec;
}
void repro::Target::setRec ( const resip::ContactInstanceRecord rec) [virtual]

Definition at line 93 of file Target.cxx.

{
   mRec=rec;
}
const resip::Via & repro::Target::setVia ( const resip::Via via) [virtual]

Definition at line 69 of file Target.cxx.

{
   return mVia=via;
}
bool repro::Target::shouldAutoProcess ( ) const [virtual]

Definition at line 111 of file Target.cxx.

{
   return mShouldAutoProcess;
}
Target::Status & repro::Target::status ( ) [virtual]

Definition at line 57 of file Target.cxx.

{
   return mStatus;
}
const Target::Status & repro::Target::status ( ) const [virtual]

Definition at line 63 of file Target.cxx.

{
   return mStatus;
}
const resip::Data & repro::Target::tid ( ) const [virtual]

Definition at line 51 of file Target.cxx.

{
   return mVia.param(resip::p_branch).getTransactionId();
}
virtual const resip::Uri& repro::Target::uri ( ) const [inline, virtual]

Definition at line 45 of file Target.hxx.

{return mRec.mContact.uri();}
const resip::Via & repro::Target::via ( ) const [virtual]

Definition at line 75 of file Target.cxx.

{
   return mVia;
}

Member Data Documentation

Definition at line 75 of file Target.hxx.

Higher value denotes higher priority.

Definition at line 68 of file Target.hxx.

Definition at line 74 of file Target.hxx.

Definition at line 69 of file Target.hxx.

Definition at line 72 of file Target.hxx.

Definition at line 73 of file Target.hxx.


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