moved Sniffer into new Examples directory
tho [Fri, 23 Mar 2007 12:17:53 +0000 (12:17 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@221 270642c3-0616-0410-b53a-bc976706d245

13 files changed:
Doxyfile
Examples/Doxyfile [new file with mode: 0644]
Examples/Mainpage.dox [moved from Example.dox with 98% similarity]
Examples/SConscript [new file with mode: 0644]
Examples/Sniffer/SConscript [moved from Sniffer/SConscript with 100% similarity]
Examples/Sniffer/Sniffer.cc [moved from Sniffer/Sniffer.cc with 100% similarity]
Mainpage.dox
SConstruct
doclib/doxy-header-overview.html
doclib/doxy-header.html
senfscons/Doxyfile
senfscons/Doxygen.py
senfscons/Mainpage.dox

index 8b758e1..d29688f 100644 (file)
--- a/Doxyfile
+++ b/Doxyfile
@@ -1,9 +1,9 @@
 @INCLUDE = "$(TOPDIR)/doclib/Doxyfile.global"
 
-PROJECT_NAME           = Overview
-PROJECT_NUMBER         = "(Revision $(REVISION), generated $(TODAY))"
+PROJECT_NAME      = Overview
+PROJECT_NUMBER    = "(Revision $(REVISION), generated $(TODAY))"
 
-EXAMPLE_PATH           = Sniffer
+HTML_HEADER       = doclib/doxy-header-overview.html
+GENERATE_XML      = NO
 
-HTML_HEADER            = doclib/doxy-header-overview.html
-GENERATE_XML           = NO
+GENERATE_TAGFILE  = doc/overview.tag
\ No newline at end of file
diff --git a/Examples/Doxyfile b/Examples/Doxyfile
new file mode 100644 (file)
index 0000000..1cfe419
--- /dev/null
@@ -0,0 +1,7 @@
+@INCLUDE                 = "$(TOPDIR)/doclib/Doxyfile.global"
+
+PROJECT_NAME     = Examples
+TAGFILES          = "$(TOPDIR)/Utils/doc/Utils.tag" "$(TOPDIR)/Socket/doc/Socket.tag" "$(TOPDIR)/Packets/doc/Packets.tag" "$(TOPDIR)/Scheduler/doc/Scheduler.tag" "$(TOPDIR)/doc/overview.tag"
+GENERATE_TAGFILE  = doc/Examples.tag
+
+EXAMPLE_PATH      = "Sniffer"
\ No newline at end of file
similarity index 98%
rename from Example.dox
rename to Examples/Mainpage.dox
index eb5a816..2bd029c 100644 (file)
@@ -1,4 +1,10 @@
-/** \page example Sniffer: A simple example application
+/** \mainpage Examples
+    \anchor Examples_Main
+    
+    \ref sniffer
+*/
+
+/** \page sniffer Sniffer: A simple example application
 
     \dontinclude Sniffer.cc
 
@@ -57,8 +63,6 @@
     specific type of socket which returns ethernet packets directly from the network wire. By
     uncommenting the last line, you may switch the interface into promiscuous mode.
 
-    \until //
-
     We will now read packets from the socket forever, that is until the user hits Ctrl-C
 
     \skip while
          <a href="../../Utils/doc/html/index.html"><b>libUtils API reference</b></a>
  */
 
+
 \f
 // Local Variables:
 // mode: c++
diff --git a/Examples/SConscript b/Examples/SConscript
new file mode 100644 (file)
index 0000000..cdb256a
--- /dev/null
@@ -0,0 +1,10 @@
+import sys, glob, os.path, datetime
+sys.path.append('senfscons')
+Import('env')
+import SENFSCons
+
+###########################################################################
+
+SConscript(glob.glob("*/SConscript"))
+
+SENFSCons.Doxygen(env)
\ No newline at end of file
index b4b8b00..3545d0b 100644 (file)
@@ -44,7 +44,7 @@
     want to contribute, read the docs and \e please adhere to the \ref conventions.
 
     \see \ref usage\n
-         \ref example
+         <a href="../../Examples/doc/html/index.html">Examples</a>
 */
 
 /** \page usage Using the SENF framework
 
     The simplest way to get started is: copy the Sniffer application and start to modify it.
 
-    \see \ref example \n
+    \see <a href="../../Examples/doc/html/index.html">Examples</a> \n
          \ref components \n
          \ref svnsetup \n
          \ref build
index 4f3915c..3d952f4 100644 (file)
@@ -37,7 +37,7 @@ SConscript(glob.glob("*/SConscript"))
 SENFSCons.StandardTargets(env)
 SENFSCons.GlobalTargets(env)
 SENFSCons.Doxygen(env, extra_sources = [
-    'Sniffer/Sniffer.cc',
+    'Examples/Sniffer/Sniffer.cc',
 ])
 SENFSCons.DoxyXRef(env,
                    HTML_HEADER = '#/doclib/doxy-header-overview.html',
index 2498afb..9a4bf37 100644 (file)
@@ -24,6 +24,7 @@ div.tabs ul li.$projectname a { background-color: #EDE497; }
         <li class="libPackets"><a href="../../Packets/doc/html/index.html">libPackets</a></li>
         <li class="libScheduler"><a href="../../Scheduler/doc/html/index.html">libScheduler</a></li>
         <li class="libUtils"><a href="../../Utils/doc/html/index.html">libUtils</a></li>
+        <li class="Examples"><a href="../../Examples/doc/html/index.html">Examples</a></li>
         <li class="SENFSCons"><a href="../../senfscons/doc/html/index.html">SENFSCons</a></li>
       </ul>
     </div>
index 8eab863..b3499de 100644 (file)
@@ -24,6 +24,7 @@ div.tabs ul li.$projectname a { background-color: #EDE497; }
         <li class="libPackets"><a href="../../../Packets/doc/html/index.html">libPackets</a></li>
         <li class="libScheduler"><a href="../../../Scheduler/doc/html/index.html">libScheduler</a></li>
         <li class="libUtils"><a href="../../../Utils/doc/html/index.html">libUtils</a></li>
+        <li class="Examples"><a href="../../../Examples/doc/html/index.html">Examples</a></li>
         <li class="SENFSCons"><a href="../../../senfscons/doc/html/index.html">SENFSCons</a></li>
       </ul>
     </div>
index f76c709..b1e9e85 100644 (file)
@@ -6,3 +6,5 @@ FILE_PATTERNS = *.dox *.py
 EXCLUDE_PATTERNS += __init__.py
 OPTIMIZE_OUTPUT_JAVA = YES
 ALPHABETICAL_INDEX = NO
+
+GENERATE_TAGFILE  = doc/senfscons.tag
\ No newline at end of file
index ea765c4..8cd35dd 100644 (file)
@@ -344,7 +344,7 @@ def DoxyGenerator(source, target, env, for_signature):
 def generate(env):
    """
    Add builders and construction variables for the
-   Doxygen tool.  This is currently for Doxygen 1.4.6.
+   Doxygen tool. This is currently for Doxygen 1.4.6.
    """
    doxyfile_scanner = env.Scanner(
       DoxySourceScan,
index fb72ad1..7769355 100644 (file)
@@ -151,9 +151,14 @@ namespace senfscons {
     To configure the build environment to the local environment, a \c SConfig file may be created in
     the projects root directory. The supported parameters are
 
-    <dl><dt>\c CXX</dt><dd>C++ compiler to use</dd>
-    <dt>\c EXTRA_DEFINES</dt><dd>preprocessor symbols to be defined locally</dd>
-    <dt>\c EXTRA_LIBS</dt><dd>additional libraries needed for a local build</dd></dl>
+    <dl>
+        <dt>\c CXX</dt>
+            <dd>C++ compiler to use</dd>
+        <dt>\c EXTRA_DEFINES</dt>
+            <dd>preprocessor symbols to be defined locally</dd>
+        <dt>\c EXTRA_LIBS</dt>
+            <dd>additional libraries needed for a local build</dd>
+    </dl>
 
     Additionally, the \ref use define additional configuration variables which may be set here.
  */