Пример #1
0
        public Parser()
        {
            _pool = new ParserWrapperPool();
            ParserWrapper pw = _pool.GetParserWrapper();

            supportedExtensions = pw.GetParserIDs();
            _pool.ReleaseParserWrapper(pw);
        }
Пример #2
0
        public TreeManager(string ParsersPath = "")
        {
            //if (ParsersPath == "")
                parserWrapper = new ParserWrapperPool();
            //else
            //parserWrapper = new ParserWrapper(Environment.CurrentDirectory);

            ParserWrapper pw = parserWrapper.GetParserWrapper();
            parserIDs = pw.GetParserIDs();
            parserWrapper.ReleaseParserWrapper(pw);
        }
Пример #3
0
        public TreeManager(string ParsersPath = "")
        {
            //if (ParsersPath == "")
            parserWrapper = new ParserWrapperPool();
            //else
            //parserWrapper = new ParserWrapper(Environment.CurrentDirectory);

            ParserWrapper pw = parserWrapper.GetParserWrapper();

            parserIDs = pw.GetParserIDs();
            parserWrapper.ReleaseParserWrapper(pw);
        }