cmessageprinter.h

00001 //==========================================================================
00002 //  CMESSAGEPRINTER.H - part of
00003 //                     OMNeT++/OMNEST
00004 //            Discrete System Simulation in C++
00005 //
00006 //  Author: Andras Varga
00007 //
00008 //==========================================================================
00009 
00010 /*--------------------------------------------------------------*
00011   Copyright (C) 1992-2008 Andras Varga
00012   Copyright (C) 2006-2008 OpenSim Ltd.
00013 
00014   This file is distributed WITHOUT ANY WARRANTY. See the file
00015   `license' for details on this and other legal matters.
00016 *--------------------------------------------------------------*/
00017 
00018 #ifndef __CMESSAGEPRINTER_H
00019 #define __CMESSAGEPRINTER_H
00020 
00021 #include "cownedobject.h"
00022 
00023 NAMESPACE_BEGIN
00024 
00025 class cMessage;
00026 
00033 class SIM_API cMessagePrinter : public cNoncopyableOwnedObject
00034 {
00035     public:
00036         cMessagePrinter() {}
00037         virtual ~cMessagePrinter() {}
00038 
00044         virtual int getScoreFor(cMessage *msg) const = 0;
00045 
00049         virtual void printMessage(std::ostream& os, cMessage *msg) const = 0;
00050 };
00051 
00052 class SIM_API cDefaultMessagePrinter : public cMessagePrinter
00053 {
00054     public:
00055         cDefaultMessagePrinter() {}
00056         virtual ~cDefaultMessagePrinter() {}
00057         virtual int getScoreFor(cMessage *msg) const;
00058         virtual void printMessage(std::ostream& os, cMessage *msg) const;
00059 };
00060 
00061 NAMESPACE_END
00062 
00063 #endif
00064 
00065 
Generated on Tue Dec 2 11:16:27 2014 for OMNeT++ Simulation Library by  doxygen 1.6.3