-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathInterfaces.cs
28 lines (24 loc) · 1.03 KB
/
Interfaces.cs
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
using System.Collections.Generic;
using Generator.Generator;
namespace Generator;
public static class Interfaces
{
public static void Generate(IEnumerable<GirModel.Interface> interfaces, string path)
{
var publisher = new Publisher(path);
var generators = new List<Generator<GirModel.Interface>>()
{
new Generator.Internal.InterfaceMethods(publisher),
new Generator.Public.InterfaceFramework(publisher),
new Generator.Public.InterfaceMethods(publisher),
new Generator.Public.InterfaceProperties(publisher),
new Generator.Public.InterfaceImplementationFramework(publisher),
new Generator.Public.InterfaceImplementationMethods(publisher),
new Generator.Public.InterfaceImplementationFunctions(publisher),
new Generator.Public.InterfaceImplementationProperties(publisher)
};
foreach (var iface in interfaces)
foreach (var generator in generators)
generator.Generate(iface);
}
}