NotificationBoard.cc File Reference

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

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 
)

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


Generated on Fri Mar 20 18:51:17 2009 for INET Framework for OMNeT++/OMNEST by  doxygen 1.5.5