protected FileOutWriterBase(SystemImplementation systemImplementation, TextWriter writer)
        {
            if (systemImplementation == null)
            {
                throw new ArgumentNullException();
            }
            if (writer == null)
            {
                throw new ArgumentNullException();
            }

            this.SystemImplementation = systemImplementation;
            this.Writer = writer;
        }
            public static List <InitializerInfoBase> GetItems(SystemImplementation system)
            {
                if (system == null)
                {
                    throw new ArgumentNullException();
                }
                List <InitializerInfoBase> result = new List <InitializerInfoBase>();

                foreach (GlobalItem item in system.GlobalItems)
                {
                    InitializerInfoBase info = GetInfo(item);
                    if (info != null)
                    {
                        result.Add(info);
                    }
                }

                result.Sort();
                for (int i = 0; i < result.Count; i++)
                {
                    result[i].SortOrder = i;
                }
                return(result);
            }
Beispiel #3
0
 protected FileOutWriterSIF10(SystemImplementation systemImplementation, TextWriter writer)
     : base(systemImplementation, writer)
 {
 }
Beispiel #4
0
        public static void FileOut(SystemImplementation systemImplementation, TextWriter writer)
        {
            FileOutWriterSIF10 fileout = new FileOutWriterSIF10(systemImplementation, writer);

            fileout.EmitInterchangeFile();
        }