INET Framework for OMNeT++/OMNEST
ansaOspfStat6.h
Go to the documentation of this file.
00001 //
00002 // This program is free software: you can redistribute it and/or modify
00003 // it under the terms of the GNU Lesser General Public License as published by
00004 // the Free Software Foundation, either version 3 of the License, or
00005 // (at your option) any later version.
00006 // 
00007 // This program is distributed in the hope that it will be useful,
00008 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00009 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010 // GNU Lesser General Public License for more details.
00011 // 
00012 // You should have received a copy of the GNU Lesser General Public License
00013 // along with this program.  If not, see http://www.gnu.org/licenses/.
00014 // 
00015 
00016 #ifndef ANSAOSPFSTAT6_H_
00017 #define ANSAOSPFSTAT6_H_
00018 
00019 namespace AnsaOspf6 {
00020 
00021 class Stat {
00022 private:
00023     unsigned long helloPacketSend;
00024     unsigned long helloPacketReceived;
00025     unsigned long ospfPacketSend;
00026     unsigned long ospfPacketReceived;
00027 
00028 public:
00029     Stat();
00030     void AddHelloPacketSend()                {++helloPacketSend;}
00031     void AddHelloPacketReceived()            {++helloPacketReceived;}
00032     void AddOspfPacketSend()                 {++ospfPacketSend;}
00033     void AddOspfPacketReceived()             {++ospfPacketReceived;}
00034     unsigned long GetHelloPacketSend()       {return helloPacketSend;}
00035     unsigned long GetHelloPacketReceived()   {return helloPacketReceived;}
00036     unsigned long GetOspfPacketSend()        {return ospfPacketSend;}
00037     unsigned long GetOspfPacketReceived()    {return ospfPacketReceived;}
00038 };
00039 
00040 }
00041 
00042 #endif /* ANSAOSPFSTAT6_H_ */