NotificationBoard.cc File Reference

#include "NotificationBoard.h"
#include "NotifierConsts.h"
#include <algorithm>

Functions

 Define_Module (NotificationBoard)
std::ostream & operator<< (std::ostream &os, const NotificationBoard::NotifiableVector &v)


Function Documentation

Define_Module ( NotificationBoard   ) 

std::ostream& operator<< ( std::ostream &  os,
const NotificationBoard::NotifiableVector v 
)

00027 {
00028     os << v.size() << " client(s)";
00029     for (unsigned int i=0; i<v.size(); i++)
00030     {
00031         os << (i==0 ? ": " : ", ");
00032         if (dynamic_cast<cModule*>(v[i]))
00033         {
00034             cModule *mod = dynamic_cast<cModule*>(v[i]);
00035             os << "mod (" << mod->className() << ")" << mod->fullName() << " id=" << mod->id();
00036         }
00037         else if (dynamic_cast<cPolymorphic*>(v[i]))
00038         {
00039             cPolymorphic *obj = dynamic_cast<cPolymorphic*>(v[i]);
00040             os << "a " << obj->className();
00041         }
00042         else
00043         {
00044             os << "a " << opp_typename(typeid(v[i]));
00045         }
00046     }
00047     return os;
00048 }


Generated on Wed Apr 4 13:20:18 2007 for INET Framework for OMNeT++/OMNEST by  doxygen 1.4.7