/// <summary> /// Initializes a new instance of the <see cref="Processor" /> class. /// </summary> /// <param name="configurationFilePath">The path to the configuration file.</param> public Processor(string configurationFilePath) { Argument.Assert.IsNotNullOrEmpty(configurationFilePath, nameof(configurationFilePath)); session = new CodeGenSession(configurationFilePath); classProcessor = new ClassProcessor(session); procedureProcessor = new ProcedureProcessor(session); }
/// <summary> /// Initializes a new instance of the <see cref="Processor" /> class. /// </summary> /// <param name="session">The <see cref="CodeGenSession" /> to use.</param> internal Processor(CodeGenSession session) { Argument.Assert.IsNotNullOrEmpty("session", nameof(session)); this.session = session; classProcessor = new ClassProcessor(session); procedureProcessor = new ProcedureProcessor(session); }
/// <summary> /// Initializes a new instance of the <see cref="Processor" /> class. /// </summary> public Processor() { session = new CodeGenSession(); classProcessor = new ClassProcessor(session); procedureProcessor = new ProcedureProcessor(session); }