diff trunk/src/docgen/graphutils/modulenamewriter.d @ 451:3f44c38bf870

Page templates, more flexible writer interfaces, small fixes.
author Jari-Matti M?kel? <jmjm@iki.fi>
date Wed, 24 Oct 2007 17:25:52 +0300
parents c82b36b9cadf
children 4e5b35df3060
line wrap: on
line diff
--- a/trunk/src/docgen/graphutils/modulenamewriter.d	Wed Oct 17 20:55:55 2007 +0200
+++ b/trunk/src/docgen/graphutils/modulenamewriter.d	Wed Oct 24 17:25:52 2007 +0300
@@ -9,22 +9,18 @@
 import tango.io.Print: Print;
 import tango.text.convert.Layout : Layout;
 
-/**
- * TODO: add support for html/xml/latex?
- */
-class ModuleNameWriter : AbstractWriter!(GraphWriterFactory, 1), GraphWriter {
-  this(GraphWriterFactory factory, OutputStream[] outputs) {
-    super(factory, outputs);
+class ModuleNameWriter : AbstractGraphWriter {
+  this(GraphWriterFactory factory, DocumentWriter writer) {
+    super(factory, writer);
   }
 
-  void generateGraph(Vertex[] vertices, Edge[] edges) {
-    auto output = new Print!(char)(new Layout!(char), outputs[0]);
+  void generateGraph(Vertex[] vertices, Edge[] edges, OutputStream imageFile) {
 
     void doList(Vertex[] v, uint level, char[] indent = "") {
       if (!level) return;
 
       foreach (vertex; v) {
-        output(indent)(vertex.name).newline;
+        // TODO: output(indent)(vertex.name).newline;
         if (vertex.outgoing.length)
           doList(vertex.outgoing, level-1, indent ~ "  ");
       }