//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project
//
//File: progressindicator.cpp
//
//Version: $Revision: 1.1 $
//
//State: $State: Exp $
//
//Date: $Date: 1999/03/08 06:49:52 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Teemu Tynjälä
//
//Description:
//      This file provides the implementation for the Progress Indicator
//      Information Element in DSS1 protocol.  The purpose of the 
//      Progress Indicator is to inform network elements of interworking.
//      
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 

#include "progressindicator.h"

//----------------------------------------------------------------------------

ieProgressIndicator :: ieProgressIndicator(pfByte location_,
                                           pfByte progressDescription_)
  :  _location(location_),
     _progressDescription(progressDescription_)
{
  return;
}

ieProgressIndicator :: ieProgressIndicator(const ieProgressIndicator &other_)
{
  _location = other_._location;
  _progressDescription = other_._progressDescription;
  return;
}

ieProgressIndicator :: ~ieProgressIndicator(void)
{
  return;
}

//-----------------------------------------------------------------------------

const ieProgressIndicator& ieProgressIndicator :: operator=(
                            const ieProgressIndicator &other_)
{
  if (&other_ != this)
  {
    _location = other_._location;
    _progressDescription = other_._progressDescription;
  }
  return *this;
}

pfIE* ieProgressIndicator :: clone(void) const
{
  ieProgressIndicator *newIe = new ieProgressIndicator(*this);
  return (pfIE *)newIe;
}

ieProgressIndicator* ieProgressIndicator :: narrow(pfIE *ie_)
{
  ieProgressIndicator *result = 
    dynamic_cast<ieProgressIndicator*>(ie_);
  THROW_IF_DYNAMIC_CAST_FAILED(result);
  return result;
}

//-----------------------------------------------------------------------------

void ieProgressIndicator :: setLocation(pfByte value_)
{
  _location = value_;
  return;
}

pfByte ieProgressIndicator :: getLocation(void) const
{
  return _location;
}

void ieProgressIndicator :: setProgressDescription(pfByte value_)
{
  _progressDescription = value_;
  return;
}

pfByte ieProgressIndicator :: getProgressDescription(void) const
{
  return _progressDescription;
}



 
