Exemplo n.º 1
0
 private void AssertIsInitialized()
 {
     if (!IsInitialized)
     {
         FrecHelper.InitializeFrecContent(m_parent.FileContent, this);
     }
 }
Exemplo n.º 2
0
        public string GetRawFrec()
        {
            AssertIsInitialized();
            int startFrec = m_match.Index;
            int endFrec   = FrecHelper.FindEndOfFrec(m_parent.FileContent, this);

            return(m_parent.FileContent.Substring(startFrec, endFrec - startFrec));
        }
Exemplo n.º 3
0
        private FrecCollection(string fileName)
        {
            m_fileName = fileName;

            //READ CONTENT
            m_fileContent = FrecHelper.GetFileContent(fileName, Options.GetInstance.LoadFollowingSessionFiles, out m_inProcess);


            //PARSE HEADERS
            List <Frec> frecList = FrecHelper.ParseFrecsHeaders(this, m_fileContent, Options.GetInstance.ExcludedFrecs.Clone());

            m_connectionURL = FrecHelper.GetConnectionURL(m_fileContent);

            m_bookmarks = new Dictionary <Frec, IList <BaseBookmark> >();

            if (!Options.GetInstance.LazyParsing)
            {
                FrecHelper.ParseFrecsContent(m_fileContent, frecList);
            }

            base.Reload(frecList);
        }