static void Main(string[] args) { amqp amqp = LoadAMQPTypes(); foreach (section section in amqp.Items.Where(item => item is section)) { types = new List <type>(); types.AddRange(section.Items.Where(item => item is type).Cast <type>()); foreach (type type in types) { amqp_definitions_type_h amqp_definitions_type_h = new amqp_definitions_type_h(); _currentTypeObject = type; System.IO.File.WriteAllText($"../../../inc/azure_uamqp_c/amqp_definitions_{type.name.Replace("-","_")}.h", amqp_definitions_type_h.TransformText()); } } amqp_definitions_h amqp_definitions_h = new amqp_definitions_h(); System.IO.File.WriteAllText("../../../inc/azure_uamqp_c/amqp_definitions.h", amqp_definitions_h.TransformText()); amqp_definitions_c amqp_definitions_c = new amqp_definitions_c(); System.IO.File.WriteAllText("../../../src/amqp_definitions.c", amqp_definitions_c.TransformText()); }
static void Main(string[] args) { LoadAMQPTypes(); amqp_definitions_h amqp_definitions_h = new amqp_definitions_h(); System.IO.File.WriteAllText("../../../inc/azure_uamqp_c/amqp_definitions.h", amqp_definitions_h.TransformText()); amqp_definitions_c amqp_definitions_c = new amqp_definitions_c(); System.IO.File.WriteAllText("../../../src/amqp_definitions.c", amqp_definitions_c.TransformText()); }
static void Main(string[] args) { LoadAMQPTypes(); amqp_definitions_h amqp_definitions_h = new amqp_definitions_h(); System.IO.File.WriteAllText("../../../inc/azure_uamqp_c/amqp_definitions.h", amqp_definitions_h.TransformText()); amqp_definitions_c amqp_definitions_c = new amqp_definitions_c(); System.IO.File.WriteAllText("../../../src/amqp_definitions.c", amqp_definitions_c.TransformText()); amqp_definitions_mocks_h amqp_definitions_mocks_h = new amqp_definitions_mocks_h(); System.IO.File.WriteAllText("../../../tests/amqp_definitions_mocks.h", amqp_definitions_mocks_h.TransformText()); }