//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / IE
//
//File: qos.h
//
//Version: $Revision: 1.11 $
//
//State: $State: Exp $
//
//Date: $Date: 1999/03/10 15:01:36 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Sami Raatikainen
//
//Description:
//      IE-class, is the base class for all information element classes.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 
//

#ifndef __IE_QOS_H__
#define __IE_QOS_H__

#include "informationelement.h"

class ieQoS : public ieInformationElement
{
    public:
        enum QoSclass
        {
            unspecified = B0000_0000,
            class1 = B0000_0001,    // CBR
            class2 = B0000_0010,    // VBR
            class3 = B0000_0011,    // 
            class4 = B0000_0100,    //
            reserved = B0000_0000
        };
        
        ieQoS(pfUlong forward_, pfUlong backward_);
        ieQoS(const ieQoS &other_);
        virtual ~ieQoS(void);
        const ieQoS &operator=(const ieQoS &other_);
        
        virtual pfIE *clone(void) const;
        static ieQoS* narrow(pfIE *ie_);
        
        pfUlong getClassForward(void) const;
        pfUlong getClassBackward(void) const;
        
    private:
        pfUlong _forward;
        pfUlong _backward;
};

#endif // __IE_QOS_H__
