X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Examples%2FDVBAdapter%2FULEdec.hh;h=60f757bb1cd703f1453533424198e9649114357a;hb=ad287a6e1241649e73188edf5b8902e4e65f615d;hp=1cb705f639471174116be41b199877988e4625a1;hpb=8d2d26f114d3df0a60c5c516fcf40671b1e55558;p=senf.git diff --git a/Examples/DVBAdapter/ULEdec.hh b/Examples/DVBAdapter/ULEdec.hh index 1cb705f..60f757b 100644 --- a/Examples/DVBAdapter/ULEdec.hh +++ b/Examples/DVBAdapter/ULEdec.hh @@ -1,9 +1,9 @@ // $Id: ULEdec.cc 355 2007-07-26 14:17:02Z tho $ // // Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Thorsten Horstmann +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Thorsten Horstmann // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -22,10 +22,10 @@ // Definition of non-inline non-template functions -#include "../../Scheduler/Scheduler.hh" -#include "../../Packets/MPEGDVBBundle/TransportPacket.hh" -#include "../../Packets/MPEGDVBBundle/SNDUPacket.hh" -#include "../../Socket/Protocols/DVB/DVBDemuxHandles.hh" +#include +#include +#include +#include class ULEdec @@ -51,7 +51,7 @@ private: bool priv_sndu_type_1; iterator snduPacketData_iter; - void handleEvent(senf::FileHandle, senf::Scheduler::EventId event); + void handleEvent(senf::Scheduler::EventId event); void handleTSPacket(senf::TransportPacket tsPacket); void handleSNDUPacket(); @@ -65,13 +65,10 @@ private: }; -struct ULEdecException : public std::exception +struct ULEdecException : public senf::Exception { - ULEdecException(char const * what) : what_(what) {}; - ULEdecException(std::string const what) : what_(what) {}; - virtual char const * what() const throw() { return what_.c_str(); } - virtual ~ULEdecException() throw() {}; - std::string what_; + ULEdecException(std::string const & what) + : senf::Exception(what) {} }; @@ -82,6 +79,6 @@ struct ULEdecException : public std::exception // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" -// compile-command: "scons -u test" +// compile-command: "scons -u" // comment-column: 40 // End: