示例#1
0
 /// <summary>
 /// Constructor - load existing document
 /// </summary>
 public VXmlDocument(VSpace space, VSpace cont)
 {
     //document_space = space;
     //document_content_space = cont;
     node_space    = space;
     content_space = cont;
 }
示例#2
0
        /// <summary>
        /// Create object for Sub-Catalog
        /// </summary>
        internal VXmlCatalog(VSpace ns, VSpace cs)
        {
            state = DEFS.STATE_UNDEFINED;           // Not applicable to non-root node

            is_root_catalog = false;

            node_space = ns;

            content_space = cs;
        }
示例#3
0
 internal VXmlContent(VSpace ns, VSpace cs)
     : base(ns, cs)
 {
 }
示例#4
0
 public VXmlElement(VSpace ns, VSpace cs)
     : base(ns, cs)
 {
 }
示例#5
0
        private void DisplaySpaceInfo()
        {
            string nm = (string)listSpace.SelectedItem;

            if ((cbShow.SelectedIndex == 0) | (nm == "<All>"))
            { // Display Space Info
                OpenStorage();
                this.DisplayInfo();
                CloseStorage();
            }
            else if (nm != "<All>")
            {
                if (cbShow.SelectedIndex == 1)
                { // Display Free Space Info
                    txtInfo.Text = "";
                    OpenStorage();
                    string[] info = mgr.GetFreeSpaceInfo(nm);
                    CloseStorage();
                    for (int i = 0; i < info.Length; i++)
                    {
                        AddInfo(info[i]);
                    }
                }
                else if (cbShow.SelectedIndex == 2)
                { // Display Pool Allocation
                    OpenStorage();
                    txtInfo.Text = "";
                    VSpace  sp    = mgr.GetSpace(nm);
                    short[] pools = sp.GetPools();
                    string  spf   = "#,#;(#,#)";
                    int     padf  = 15;

                    AddInfo("Pool#     Allocated size");
                    for (int i = 0; i < pools.Length; i++)
                    {
                        long[] a     = sp.GetPoolPointers(pools[i]);
                        long   a_use = 0;

                        if (a[0] > 0)
                        {
                            VSObject o = sp.GetRootObject(pools[i]);
                            while (o != null)
                            {
                                a_use += o.Size;
                                o      = o.Next;
                            }


                            if (pools[i] > 0)
                            {
                                AddInfo(pools[i].ToString().PadLeft(5) + " " + a_use.ToString(spf).PadLeft(padf));
                            }
                            else
                            {
                                AddInfo(DEFS.POOL_MNEM(pools[i]).PadLeft(5) + " " + a_use.ToString(spf).PadLeft(padf));
                            }
                        }
                    }
                    AddInfo("Done");

                    CloseStorage();
                }
            }
        }
示例#6
0
 public VXmlReference(VSpace ns, VSpace cs)
     : base(ns, cs)
 {
 }