Mercurial > projects > dil
diff trunk/src/docgen/graphutils/writers.d @ 446:49f3afd6a0e8
Refactored writers.
author | Jari-Matti M?kel? <jmjm@iki.fi> |
---|---|
date | Wed, 17 Oct 2007 18:41:46 +0300 |
parents | 0bda71dc9c4f |
children | 3f44c38bf870 |
line wrap: on
line diff
--- a/trunk/src/docgen/graphutils/writers.d Wed Oct 17 03:12:46 2007 +0300 +++ b/trunk/src/docgen/graphutils/writers.d Wed Oct 17 18:41:46 2007 +0300 @@ -9,13 +9,13 @@ import docgen.graphutils.modulepathwriter; import docgen.graphutils.modulenamewriter; -class DefaultGraphWriterFactory : AbstractGraphWriterFactory { - this(GraphOptions options) { - m_options = options; +class DefaultGraphWriterFactory : AbstractWriterFactory, GraphWriterFactory { + this(DocGenerator generator) { + super(generator); } GraphWriterDg createGraphWriter(OutputStream[] outputs) { - switch (m_options.graphFormat) { + switch (options.graph.graphFormat) { case GraphFormat.Dot: return &((new DotWriter(this, outputs)).generateGraph); case GraphFormat.ModuleNames: