IClassifier.h

Go to the documentation of this file.
00001 //
00002 // (C) 2005 Vojtech Janota
00003 //
00004 // This library is free software, you can redistribute it
00005 // and/or modify
00006 // it under  the terms of the GNU Lesser General Public License
00007 // as published by the Free Software Foundation;
00008 // either version 2 of the License, or any later version.
00009 // The library is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00012 // See the GNU Lesser General Public License for more details.
00013 //
00014 
00015 #ifndef __INET_ICLASSIFIER_H
00016 #define __INET_ICLASSIFIER_H
00017 
00018 #include <omnetpp.h>
00019 
00020 #include "IPDatagram.h"
00021 #include "LIBTable.h"
00022 
00033 class INET_API IClassifier
00034 {
00035   public:
00036     virtual ~IClassifier() {}
00037 
00049      virtual bool lookupLabel(IPDatagram *ipdatagram, LabelOpVector& outLabel, std::string& outInterface, int& color) = 0;
00050 };
00051 
00052 #endif