X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Examples%2FDVBAdapter%2FULEdec.hh;h=87bf9f36afeba8d2a2a68ebf7085e96a98afdecd;hb=afae50abf125df375ff1610b7a659f9b1da61bc0;hp=719e160f8f55e2c5184308ad513684f92bcde3c5;hpb=f73fa16ed5abdce272ac77f8b8b9ef2b9922c266;p=senf.git diff --git a/Examples/DVBAdapter/ULEdec.hh b/Examples/DVBAdapter/ULEdec.hh index 719e160..87bf9f3 100644 --- a/Examples/DVBAdapter/ULEdec.hh +++ b/Examples/DVBAdapter/ULEdec.hh @@ -1,8 +1,8 @@ // $Id: ULEdec.cc 355 2007-07-26 14:17:02Z tho $ // // Copyright (C) 2007 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// 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 @@ -35,17 +35,17 @@ public: private: typedef senf::PacketData::iterator iterator; - + enum ReceiverState { Idle, Reassembly }; - + senf::DVBDemuxPESHandle demuxHandle; senf::DVBDvrHandle dvrHandle; - + senf::SNDUPacket snduPacket; - + ReceiverState receiver_state; unsigned char priv_tscc; bool priv_sndu_type_1; @@ -54,24 +54,21 @@ private: void handleEvent(senf::Scheduler::EventId event); void handleTSPacket(senf::TransportPacket tsPacket); void handleSNDUPacket(); - + iterator readNewSNDUPacket(iterator i, const iterator i_end); iterator readContSNDUPacket(iterator i, const iterator i_end); iterator readRawSNDUPacketData(iterator i, iterator const i_end); - - inline bool isSDNUPacketComplete(); + + inline bool isSDNUPacketComplete(); inline iterator::difference_type snduPacketBytesLeft(); - + }; -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) {} };