NetwControlInfo.h

00001 /* -*- mode:c++ -*- *******************************************************
00002  * file:        NetwControlInfo.h
00003  *
00004  * author:      Daniel Willkomm
00005  *
00006  * copyright:   (C) 2005 Telecommunication Networks Group (TKN) at
00007  *              Technische Universitaet Berlin, Germany.
00008  *
00009  *              This program is free software; you can redistribute it
00010  *              and/or modify it under the terms of the GNU General Public
00011  *              License as published by the Free Software Foundation; either
00012  *              version 2 of the License, or (at your option) any later
00013  *              version.
00014  *              For further information see file COPYING
00015  *              in the top level directory
00016  **************************************************************************
00017  * part of:     framework implementation developed by tkn
00018  * description: - control info to pass the netw addresses between the
00019  *                network and application layer
00020  **************************************************************************/
00021 
00022 #ifndef APPLCONTROLINFO_H
00023 #define APPLCONTROLINFO_H
00024 
00025 #include <omnetpp.h>
00026 
00042 class NetwControlInfo : public cObject
00043 {
00044   protected:
00046     int netwAddr;
00047 
00048   public:
00050     NetwControlInfo(int addr = 0) : netwAddr(addr) {};
00052     virtual ~NetwControlInfo(){};
00053 
00055     virtual const int getNetwAddr(){
00056   return netwAddr;
00057     };
00058 
00060     virtual void setNetwAddr(const int addr){
00061   netwAddr = addr;
00062     };
00063 
00064 };
00065 
00066 
00067 #endif