Mercurial > projects > dil
view trunk/src/docgen/graphutils/writers.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 | 49f3afd6a0e8 |
children | dbdc9fa5d479 |
line wrap: on
line source
/** * Author: Jari-Matti Mäkelä * License: GPL3 */ module docgen.graphutils.writers; public import docgen.graphutils.writer; import docgen.graphutils.dotwriter; import docgen.graphutils.modulepathwriter; import docgen.graphutils.modulenamewriter; class DefaultGraphWriterFactory : AbstractWriterFactory, GraphWriterFactory { this(DocGenerator generator) { super(generator); } GraphWriter createGraphWriter(DocumentWriter writer) { switch (options.graph.graphFormat) { case GraphFormat.Dot: return new DotWriter(this, writer); case GraphFormat.ModuleNames: return new ModuleNameWriter(this, writer); case GraphFormat.ModulePaths: return new ModulePathWriter(this, writer); default: throw new Exception("Graph writer type does not exist!"); } } }