Static Public Member Functions | Static Protected Member Functions | Friends

OLSR_printer Class Reference

Encapsulates all printing functions for OLSR data structures and messages. More...

#include <OLSR_printer.h>

List of all members.

Static Public Member Functions

static void print_cmn_hdr (FILE *, struct hdr_cmn *)
 Prints a given common header into a given file.
static void print_ip_hdr (FILE *, struct hdr_ip *)
 Prints a given IP header into a given file.
static void print_cmn_hdr (FILE *, struct hdr_cmn *)
static void print_ip_hdr (FILE *, struct hdr_ip *)

Static Protected Member Functions

static void print_linkset (Trace *, linkset_t &)
 Prints a given Link Set into a given trace file.
static void print_nbset (Trace *, nbset_t &)
 Prints a given Neighbor Set into a given trace file.
static void print_nb2hopset (Trace *, nb2hopset_t &)
 Prints a given 2-hop Neighbor Set into a given trace file.
static void print_mprset (Trace *, mprset_t &)
 Prints a given MPR Set into a given trace file.
static void print_mprselset (Trace *, mprselset_t &)
 Prints a given MPR Selector Set into a given trace file.
static void print_topologyset (Trace *, topologyset_t &)
 Prints a given Topology Set into a given trace file.
static void print_olsr_pkt (FILE *, OLSR_pkt *)
 Prints a given OLSR packet into a given file.
static void print_olsr_msg (FILE *, OLSR_msg &)
 Prints a given OLSR message into a given file.
static void print_olsr_hello (FILE *, OLSR_hello &)
 Prints a given OLSR HELLO message into a given file.
static void print_olsr_tc (FILE *, OLSR_tc &)
 Prints a given OLSR TC message into a given file.
static void print_olsr_mid (FILE *, OLSR_mid &)
 Prints a given OLSR MID message into a given file.
static void print_linkset (Trace *, linkset_t &)
static void print_nbset (Trace *, nbset_t &)
static void print_nb2hopset (Trace *, nb2hopset_t &)
static void print_mprset (Trace *, mprset_t &)
static void print_mprselset (Trace *, mprselset_t &)
static void print_topologyset (Trace *, topologyset_t &)
static void print_olsr_pkt (FILE *, OLSR_pkt *)
static void print_olsr_msg (FILE *, OLSR_msg &)
static void print_olsr_hello (FILE *, OLSR_hello &)
static void print_olsr_tc (FILE *, OLSR_tc &)
static void print_olsr_mid (FILE *, OLSR_mid &)

Friends

class OLSR

Detailed Description

Encapsulates all printing functions for OLSR data structures and messages.


Member Function Documentation

void OLSR_printer::print_cmn_hdr ( FILE *  out,
struct hdr_cmn ch 
) [static]

Prints a given common header into a given file.

Warning:
This function is actually not used.
Parameters:
out File where the common header is going to be written.
ch Common header to be written.
void OLSR_printer::print_ip_hdr ( FILE *  out,
struct hdr_ip ih 
) [static]

Prints a given IP header into a given file.

Warning:
This function is actually not used.
Parameters:
out File where the IP header is going to be written.
ih IP header to be written.
void OLSR_printer::print_linkset ( Trace out,
linkset_t &  linkset 
) [static, protected]

Prints a given Link Set into a given trace file.

Parameters:
out Trace where the Link Set is going to be written.
linkset Link Set to be written.
void OLSR_printer::print_mprselset ( Trace out,
mprselset_t &  mprselset 
) [static, protected]

Prints a given MPR Selector Set into a given trace file.

Parameters:
out Trace where the MPR Selector Set is going to be written.
mprselset MPR Selector Set to be written.
void OLSR_printer::print_mprset ( Trace out,
mprset_t &  mprset 
) [static, protected]

Prints a given MPR Set into a given trace file.

Parameters:
out Trace where the MPR Set is going to be written.
mprset MPR Set to be written.
void OLSR_printer::print_nb2hopset ( Trace out,
nb2hopset_t &  nb2hopset 
) [static, protected]

Prints a given 2-hop Neighbor Set into a given trace file.

Parameters:
out Trace where the 2-hop Neighbor Set is going to be written.
nb2hopset 2-hop Neighbor Set to be written.
void OLSR_printer::print_nbset ( Trace out,
nbset_t &  nbset 
) [static, protected]

Prints a given Neighbor Set into a given trace file.

Parameters:
out Trace where the Neighbor Set is going to be written.
nbset Neighbor Set to be written.
void OLSR_printer::print_olsr_hello ( FILE *  out,
OLSR_hello hello 
) [static, protected]

Prints a given OLSR HELLO message into a given file.

Warning:
This function is actually not used.
Parameters:
out File where the OLSR HELLO message is going to be written.
hello OLSR HELLO message to be written.
void OLSR_printer::print_olsr_mid ( FILE *  out,
OLSR_mid mid 
) [static, protected]

Prints a given OLSR MID message into a given file.

Warning:
This function is actually not used.
Parameters:
out File where the OLSR MID message is going to be written.
mid OLSR MID message to be written.
void OLSR_printer::print_olsr_msg ( FILE *  out,
OLSR_msg msg 
) [static, protected]

Prints a given OLSR message into a given file.

Warning:
This function is actually not used.
Parameters:
out File where the OLSR message is going to be written.
msg OLSR message to be written.
void OLSR_printer::print_olsr_pkt ( FILE *  out,
OLSR_pkt pkt 
) [static, protected]

Prints a given OLSR packet into a given file.

Warning:
This function is actually not used.
Parameters:
out File where the OLSR packet is going to be written.
pkt OLSR packet to be written.
void OLSR_printer::print_olsr_tc ( FILE *  out,
OLSR_tc tc 
) [static, protected]

Prints a given OLSR TC message into a given file.

Warning:
This function is actually not used.
Parameters:
out File where the OLSR TC message is going to be written.
tc OLSR TC message to be written.
void OLSR_printer::print_topologyset ( Trace out,
topologyset_t &  topologyset 
) [static, protected]

Prints a given Topology Set into a given trace file.

Parameters:
out Trace where the Topology Set is going to be written.
topologyset Topology Set to be written.

The documentation for this class was generated from the following files: