-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcreateConfiguration.cpp
57 lines (50 loc) · 2.16 KB
/
createConfiguration.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/**********************************************************
* This software is part of Dynagraph *
* http://www.dynagraph.org/ *
* *
* Copyright (c) 2006 Gordon Woodhull *
* Portions Copyright (c) 1994-2005 AT&T Corp. *
* Licensed under the Common Public License, Version 1.0 *
* *
* Dynagraph originates in the Graphviz toolset *
* http://graphviz.org *
* Information and Software Systems Research *
* AT&T Research, Florham Park NJ *
* Many thanks. *
**********************************************************/
#include "LayoutChooserConfigurator.h"
#include "dynadag/EdgeSuppressorConfigurator.h"
#include "dynadag/ClearExtraRanksConfigurator.h"
#include "dynadag/EmphasizeFlowConfigurator.h"
#include "dynadag/RankerConfigurator.h"
#include "common/CoordTranslatorConfigurator.h"
#include "common/ShapeGeneratorConfigurator.h"
#include "common/ColorByAgeConfigurator.h"
#include "common/FindChangeRectsConfigurator.h"
#include "common/UpdateCurrentConfigurator.h"
#include "common/StringizerConfigurator.h"
#include "incrface/RegisteringConfigurator.h"
#include <boost/mpl/list.hpp>
namespace mpl = boost::mpl;
namespace Dynagraph {
// the order of configurators is "magic"
// a more clever (perhaps too clever) way to do this might be to specify
// dependencies and order constraints on configurators(?)
typedef mpl::list<
LayoutChooserConfigurator,
DynaDAG::EdgeSuppressorConfigurator,
DynaDAG::ClearExtraRanksConfigurator,
DynaDAG::EmphasizeFlowConfigurator,
DynaDAG::RankerConfigurator,
CoordTranslatorConfigurator,
ShapeGeneratorConfigurator,
ColorByAgeConfigurator,
FindChangeRectsConfigurator,
UpdateCurrentConfigurator,
StringizerConfigurator,
RegisteringConfigurator
> Configurators;
void createConfiguration(Name name,StrAttrs &attrs) {
configureLayout<Configurators>(name,attrs);
}
} // namespace Dynagraph