NoBufferingPolicy added
tho [Mon, 23 Jul 2007 10:00:23 +0000 (10:00 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@334 270642c3-0616-0410-b53a-bc976706d245

Socket/BufferingPolicy.hh
Socket/DVBDemuxHandles.hh
Socket/DVBFrontendHandle.hh
senfscons/SENFSCons.py

index 3d353dd..8f4b2d8 100644 (file)
@@ -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
 
index 574757d..2ef4996 100644 (file)
@@ -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
index b65f14d..1ab1fb6 100644 (file)
@@ -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
index ef647d1..4b32ae2 100644 (file)
@@ -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)