//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / TRS
//
//File: link.cpp
//
//Version: $Revision: 1.2 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/10/06 13:43:51 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Harri Sunila
//
//Description:
//
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 

#include "link.h"

//
// Function: trsLink
//
// Description:  
//

trsLink :: trsLink(void)
    : _destination(),
      _linkNumber(0),
      _qosParameters()
{
    return;
}

//
// Function: trsLink
//
// Description:  
//

trsLink :: trsLink(const string &destination_,
                   pfUlong linkNumber_,
                   pfStorage &qosParameters_)
    : _destination(destination_),
      _linkNumber(linkNumber_),
      _qosParameters(qosParameters_)
{
    return;
}

//
// Function: trsLink
//
// Description:  
//

trsLink :: trsLink(const trsLink &other_)
    : _destination(other_._destination),
      _linkNumber(other_._linkNumber),
      _qosParameters(other_._qosParameters)
{
    return;
}

//
// Function: ~trsLink
//
// Description:  
//

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

//
// Function: operator=
//
// Description:  
//

trsLink &trsLink :: operator=(const trsLink &other_)
{
    if(this != &other_)
    {
        _destination = other_._destination;
        _linkNumber = other_._linkNumber;
        _qosParameters = other_._qosParameters;
    }
    return *this;
}

//
// Function: getDestination
//
// Description:  
//

string trsLink :: getDestination(void) const
{
    return _destination;
}

//
// Function: getLinkNumber
//
// Description:  
//

pfUlong trsLink :: getLinkNumber(void) const
{
    return _linkNumber;
}


//
// Function: getQosParameters
//
// Description:  
//

pfStorage &trsLink :: getQosParameters(void) const
{
    return _qosParameters;
}
