//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / SIG
//
//File: sigerrorinfo.cpp
//
//Version: $Revision: 1.1 $
//
//State: $State: Exp $
//
//Date: $Date: 1999/01/24 15:35:37 $
//
//Organisation:
//      Helsinki Sigversity of Technology
//      Laboratory of Telecommsigcations Software and Multimedia
//
//Author:
//      Sami Raatikainen
//
//Description:
//      See corresponding header file.
//
//Copyright:
//      Copyright 1999 Helsinki Sigversity of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 

#include "sigerrorinfo.h"
#include "sigstrings.h"

sigErrorInfo :: sigErrorInfo(pfUlong cause_)
    : ieInformationElement(),
      _fatalError(false),
      _cause(cause_),
      _ieType(0),
      _msgType(0),
      _ieList()
{
    return;
}

sigErrorInfo :: sigErrorInfo(const sigErrorInfo &other_)
    : ieInformationElement(other_),
      _fatalError(other_._fatalError),
      _cause(other_._cause),
      _ieType(other_._ieType),
      _msgType(other_._msgType),
      _ieList(other_._ieList)
{
    return;
}

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

pfUlong sigErrorInfo :: getCause(void) const
{
    return _cause;
}

void sigErrorInfo :: setIEid(pfUlong type_)
{
    _ieType = type_;
    return;
}

void sigErrorInfo :: setMessageType(pfUlong type_)
{
    _msgType = type_;
    return;
}

void sigErrorInfo :: setIEList(pfFrame list_)
{
    _ieList = list_;
    return;
}

void sigErrorInfo :: setFatalError(void)
{
    _fatalError = true;
    return;
}

bool sigErrorInfo :: isFatalError(void) const
{
    return _fatalError;
}
