Esempio n. 1
0
        //public bool LoadOldModel(string xmlInputFileName)
        //{
        //    XmlReaderSettings settings = new XmlReaderSettings();
        //    settings.IgnoreComments = true;
        //    settings.IgnoreProcessingInstructions = true;
        //    settings.IgnoreWhitespace = true;
        //    XmlReader reader = XmlReader.Create(xmlInputFileName, settings);
        //    LegacyReader.RecursivelyReadBlock(reader, _assemblies);
        //    reader.Close();
        //    return true;
        //} 

        public bool LoadModel(string xmlInputFileName, ModelReaderOptions options)
        {
            XmlReaderSettings settings = new XmlReaderSettings();
            settings.IgnoreComments = true;
            settings.IgnoreProcessingInstructions = true;
            settings.IgnoreWhitespace = true;
            XmlReader reader = XmlReader.Create(xmlInputFileName, settings);
            ThinReader modelReader = new ThinReader(this, options);
            modelReader.RecursivelyReadBlock(reader, this, true);
            reader.Dispose();
            return true;
        }
Esempio n. 2
0
 public ThinReader(ThinModel thinModel, ModelReaderOptions options)
 {
     _thinModel = thinModel;
     _options = options;
 }