• Main Page
  • Classes
  • Files
  • File List

/Users/yzchen/ns/ns-allinone-2.33/ns-2.33/um-olsr-0.8.8/backup/OLSR_printer.h

00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Francisco J. Ros                                *
00003  *   fjrm@dif.um.es                                                        *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00025 
00026 #ifndef __OLSR_printer_h__
00027 #define __OLSR_printer_h__
00028 
00029 #include <olsr/OLSR.h>
00030 #include <olsr/OLSR_pkt.h>
00031 #include <olsr/OLSR_repositories.h>
00032 #include <packet.h>
00033 #include <ip.h>
00034 #include <trace.h>
00035 
00037 class OLSR_printer {
00038         friend class OLSR;
00039 
00040 protected:
00041         static void     print_linkset(Trace*, linkset_t&);
00042         static void     print_nbset(Trace*, nbset_t&);
00043         static void     print_nb2hopset(Trace*, nb2hopset_t&);
00044         static void     print_mprset(Trace*, mprset_t&);
00045         static void     print_mprselset(Trace*, mprselset_t&);
00046         static void     print_topologyset(Trace*, topologyset_t&);
00047         
00048         static void     print_olsr_pkt(FILE*, OLSR_pkt*);
00049         static void     print_olsr_msg(FILE*, OLSR_msg&);
00050         static void     print_olsr_hello(FILE*, OLSR_hello&);
00051         static void     print_olsr_tc(FILE*, OLSR_tc&);
00052         static void     print_olsr_mid(FILE*, OLSR_mid&);
00053 
00054 public:
00055         static void     print_cmn_hdr(FILE*, struct hdr_cmn*);
00056         static void     print_ip_hdr(FILE*, struct hdr_ip*);
00057 };
00058 
00059 #endif

Generated on Tue Aug 10 2010 16:16:09 for ns-2.33 by  doxygen 1.7.1