コード例 #1
0
        /// <summary>
        /// Creates a FileIndex with all available MMAT Files
        /// </summary>
        /// <returns>the FileIndex</returns>
        /// <remarks>
        /// The Tags of the FileDescriptions contain the MMATCachItem Object,
        /// the FileNames of the FileDescriptions contain the Name of the package File
        /// </remarks>
        public void LoadMemTable()
        {
            fi            = new FileIndex(new ArrayList());
            fi.Duplicates = false;

            foreach (CacheContainer cc in Containers)
            {
                if (cc.Type == ContainerType.Memory && cc.Valid)
                {
                    foreach (MemoryCacheItem mci in cc.Items)
                    {
                        Interfaces.Files.IPackedFileDescriptor pfd = mci.FileDescriptor;
                        pfd.Filename = cc.FileName;
                        fi.AddIndexFromPfd(pfd, null, FileIndex.GetLocalGroup(pfd.Filename));
                    }
                }
            }            //foreach
        }