//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / IE
//
//File: callingpartynumber.cpp
//
//Version: $Revision: 1.4 $
//
//State: $State: Exp $
//
//Date: $Date: 1999/02/10 14:10:55 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Sami Raatikainen
//
//Description:
//      See corresponding header file.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 

#include "callingpartynumber.h"

ieCallingPartyNumber :: ieCallingPartyNumber(void)
    : iePartyNumber(),
      _presentation(0),
      _screening(0)
{
    return;
}

ieCallingPartyNumber :: ieCallingPartyNumber(
    const ieCallingPartyNumber &other_)
    : _presentation(other_._presentation),
      _screening(other_._screening)
{
    return;
}

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

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

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

void ieCallingPartyNumber :: setPresentationIndicator(int value_)
{
    _presentation = value_;
    return;
}

int ieCallingPartyNumber :: getPresentationIndicator(void) const
{
    return _presentation;
}

void ieCallingPartyNumber :: setScreeningIndicator(int value_)
{
    _screening = value_;
    return;
}

int ieCallingPartyNumber :: getScreeningIndicator(void) const
{
    return _screening;
}
