Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        /// <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);
        }
Esempio n. 3
0
 /// <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);
 }