//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / IE
//
//File: connectioninfo.cpp
//
//Version: $Revision: 1.5 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/12/09 11:00:24 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Timo Pärnänen
//
//Description:
//      See corresponding header file.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 
//

#include "pf/error.h"
#include "connectionidentifier.h"
#include "connectioninfo.h"

ieConnectionInfo :: ieConnectionInfo(void)
    : ieInformationElement(),
      _callback(),
      _manager(0),
      _linkIdentifier(0)
{
    return;
}

ieConnectionInfo :: ieConnectionInfo(const ieConnectionInfo &other_)
    : ieInformationElement(other_),
      _callback(other_._callback),
      _manager(other_._manager),
      _linkIdentifier(other_._linkIdentifier)
{
    return;
}

ieConnectionInfo :: ~ieConnectionInfo(void)
{
    _manager = 0;
    return;
}

void ieConnectionInfo :: setCallback(pfConduit &callback_)
{
    _callback = callback_;
    return;
}

void ieConnectionInfo :: setConnectManager(swConnectIface *manager_)
{
    _manager = manager_;
    return;
}

void ieConnectionInfo :: setLinkIdentifier(pfUlong linkIdentifier_)
{
    _linkIdentifier = linkIdentifier_;
    return;
}

pfUlong ieConnectionInfo :: getLinkIdentifier(void) const
{
    return _linkIdentifier;
}

void ieConnectionInfo :: connect(ieConnectionIdentifier *other_,
                                 bool bidirection_)
{
    (void)other_;
    (void)bidirection_;
    THROW_UNSUPPORTED_COMBINATION_OF_TRAFFIC_PARAMETERS;
    return;
}

void ieConnectionInfo :: disconnect(ieConnectionIdentifier *other_,
                                    bool bidirection_)
{
    (void)other_;
    (void)bidirection_;
    THROW_UNSUPPORTED_COMBINATION_OF_TRAFFIC_PARAMETERS;
    return;
}
