Multicast Routing Modelling In OMNeT++
Functions
PimInterfaceTable.cc File Reference

File implements table of PIM interfaces. More...

#include "PimInterfaceTable.h"

Go to the source code of this file.

Functions

 Define_Module (PimInterfaceTable)
std::ostream & operator<< (std::ostream &os, const PimInterface &e)
std::ostream & operator<< (std::ostream &os, const PimInterfaceTable &e)

Detailed Description

File implements table of PIM interfaces.

Date:
19.3.2012
Author:
: Veronika Rybova

PIM interface table contains information about all interfaces which are configured by PIM protocol. Information are obtained from configuration file.

Definition in file PimInterfaceTable.cc.


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const PimInterface e 
)

Printout of structure PimInterface.

Definition at line 15 of file PimInterfaceTable.cc.

{
        int i;
        std::vector<IPAddress> intMulticastAddresses = e.getIntMulticastAddresses();

    os << "ID = " << e.getInterfaceID() << "; mode = ";
    if (e.getMode() == Dense)
        os << "Dense";
    else if (e.getMode() == Sparse)
        os << "Sparse";
    os << "; Multicast addresses: ";

    int vel = intMulticastAddresses.size();
    if (vel > 0)
    {
                for(i = 0; i < (vel - 1); i++)
                        os << intMulticastAddresses[i] << ", ";
                os << intMulticastAddresses[i];
    }
    else
        os << "Null";
    return os;
};
std::ostream& operator<< ( std::ostream &  os,
const PimInterfaceTable e 
)

Printout of structure PimInterfaces Table.

Definition at line 41 of file PimInterfaceTable.cc.

{
    for (int i = 0; i < e.size(); i++)
        os << "";
                //os << "ID = " << e.getInterface(i)->getInterfaceID() << "; mode = " << e.getInterface(i)->getMode();
    return os;
};