From: tho Date: Mon, 23 Jul 2007 10:00:23 +0000 (+0000) Subject: NoBufferingPolicy added X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=78c1f45585a8d7aecd3c29074f2733a3f6968396;p=senf.git NoBufferingPolicy added git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@334 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Socket/BufferingPolicy.hh b/Socket/BufferingPolicy.hh index 3d353dd..8f4b2d8 100644 --- a/Socket/BufferingPolicy.hh +++ b/Socket/BufferingPolicy.hh @@ -38,6 +38,22 @@ namespace senf { /// \addtogroup policy_impl_group /// @{ + + /** \brief BufferingPolicy for non-buffered sockets + + This is different from UndefinedBufferingPolicy (which is the + same as BufferingPolicyBase). This policy class defines the + buffering policy -- it explicitly states, that the socket does not + support buffering. + */ + struct NoBufferingPolicy : public BufferingPolicyBase + {}; + + /// @} + + + /// \addtogroup policy_impl_group + /// @{ /** \brief BufferingPolicy implementing standard socket buffering diff --git a/Socket/DVBDemuxHandles.hh b/Socket/DVBDemuxHandles.hh index 574757d..2ef4996 100644 --- a/Socket/DVBDemuxHandles.hh +++ b/Socket/DVBDemuxHandles.hh @@ -28,6 +28,7 @@ #define HH_DVBDemuxHandles_ 1 // Custom includes +#include "BufferingPolicy.hh" #include "FramingPolicy.hh" #include "CommunicationPolicy.hh" #include "ReadWritePolicy.hh" @@ -47,7 +48,8 @@ namespace senf { DatagramFramingPolicy, UnconnectedCommunicationPolicy, ReadablePolicy, - NotWriteablePolicy + NotWriteablePolicy, + NoBufferingPolicy >::policy DVBDemux_Policy; ///< Socket Policy for xxxx /** \brief xxx diff --git a/Socket/DVBFrontendHandle.hh b/Socket/DVBFrontendHandle.hh index b65f14d..1ab1fb6 100644 --- a/Socket/DVBFrontendHandle.hh +++ b/Socket/DVBFrontendHandle.hh @@ -28,6 +28,7 @@ #define HH_DVBFrontendHandle_ 1 // Custom includes +#include "BufferingPolicy.hh" #include "FramingPolicy.hh" #include "CommunicationPolicy.hh" #include "ReadWritePolicy.hh" @@ -49,7 +50,8 @@ namespace senf { DatagramFramingPolicy, UnconnectedCommunicationPolicy, NotReadablePolicy, - NotWriteablePolicy + NotWriteablePolicy, + NoBufferingPolicy >::policy DVBFrontend_Policy; ///< Socket Policy for xxxx /** \brief xxx diff --git a/senfscons/SENFSCons.py b/senfscons/SENFSCons.py index ef647d1..4b32ae2 100644 --- a/senfscons/SENFSCons.py +++ b/senfscons/SENFSCons.py @@ -397,7 +397,7 @@ def Doxygen(env, doxyfile = "Doxyfile", extra_sources = []): "done") % (htmlnode.dir.abspath, reltopdir, xslfile.abspath))) for doc in docs: - env.Depends(doc,xslfile) + env.Depends(doc, xslfile) if xmlnode: xrefs = [] @@ -416,7 +416,7 @@ def Doxygen(env, doxyfile = "Doxyfile", extra_sources = []): xrefs.extend(xref_pp) docs.extend(xrefs) - env.Depends(docs,extra_sources) + env.Depends(docs, extra_sources) for doc in docs : env.Alias('all_docs', doc) env.Clean('all_docs', doc)