//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project
//
//File: gsmptimermapvalue.h
//
//Version: $Revision: 1.3 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/06/18 05:21:58 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Harri Sunila
//
//Description:
//      gsmpTimerMapValue is an object to store a pfTimer and gsmpMessage::_messageType
//      pair. These pairs are requred to generate a failure response message, if a
//      request to the switch is lost.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 

#ifndef __GSMP_GSMPTIMERMAPVALUE_H__
#define __GSMP_GSMPTIMERMAPVALUE_H__

#include "pf/timer.h"

//
// Class: gsmpTimerMapValue
//
// Description:
//     See file description
//

class gsmpTimerMapValue
{
    public:
        gsmpTimerMapValue(void);
        gsmpTimerMapValue(pfTimer &timer_,
                          pfByte messageType_,
                          pfUlong function_);
        gsmpTimerMapValue(const gsmpTimerMapValue &other_);
        virtual ~gsmpTimerMapValue(void);

        gsmpTimerMapValue &operator=(const gsmpTimerMapValue &other_);

        void startTimer(void);
        void stopTimer(void);
        
        pfByte getMessageType(void) const;
        pfUlong getFunction(void) const;
        
    private:
        pfTimer _timer;
        pfByte _messageType;
        pfUlong _function;
};
        
#endif // __GSMP_GSMPTIMERMAPVALUE_H__
