Esempio n. 1
0
        private void OutputSfmInfo(System.Xml.XmlTextWriter xmlOutput)
        {
            xmlOutput.WriteStartElement("SfmInfoList");
            foreach (DictionaryEntry sfmInfo in m_sfmData)
            {
                SfmData data     = sfmInfo.Value as SfmData;
                string  sfm      = sfmInfo.Key as string;
                int     ttlCount = data.m_WithData + data.m_WithoutData + data.m_NotDefined;
                if (ttlCount > 0)
                {
                    xmlOutput.WriteStartElement("SfmInfo");
                    xmlOutput.WriteAttributeString("sfm", sfm);
                    int usagePercent = (int)((double)data.m_WithData / (double)ttlCount * 100);
                    xmlOutput.WriteAttributeString("ttlCount", ttlCount.ToString());
                    if (data.m_WithoutData > 0)
                    {
                        xmlOutput.WriteAttributeString("emptyCount", data.m_WithoutData.ToString());
                    }
                    xmlOutput.WriteAttributeString("usagePercent", usagePercent.ToString());

                    // add the raw counts for other calculations
                    xmlOutput.WriteAttributeString("withDataCount", data.m_WithData.ToString());
                    xmlOutput.WriteAttributeString("withoutDataCount", data.m_WithoutData.ToString());
                    xmlOutput.WriteAttributeString("notDefinedCount", data.m_NotDefined.ToString());

                    xmlOutput.WriteEndElement();
                }
            }
            xmlOutput.WriteEndElement();
        }
Esempio n. 2
0
        private void FoundSFMWarning(string sfm)
        {
            SfmData data = new SfmData();

            if (m_sfmData.ContainsKey(sfm))
            {
                data = m_sfmData[sfm] as SfmData;
            }
            data.m_Warnings++;
            m_sfmData[sfm] = data;
        }
Esempio n. 3
0
        private void FoundSFMNotDefined(string sfm)
        {
            SfmData data = new SfmData();

            if (m_sfmData.ContainsKey(sfm))
            {
                data = m_sfmData[sfm] as SfmData;
            }
            data.m_NotDefined++;
            m_sfmData[sfm] = data;
        }
Esempio n. 4
0
        private void FoundSFMWithoutData(string sfm)
        {
            m_sfmsWithOutData++;
            SfmData data = new SfmData();

            if (m_sfmData.ContainsKey(sfm))
            {
                data = m_sfmData[sfm] as SfmData;
            }
            data.m_WithoutData++;
            m_sfmData[sfm] = data;
        }
Esempio n. 5
0
		private void FoundSFMNotDefined(string sfm)
		{
			SfmData data = new SfmData();
			if (m_sfmData.ContainsKey(sfm))
				data = m_sfmData[sfm] as SfmData;
			data.m_NotDefined++;
			m_sfmData[sfm] = data;
		}
Esempio n. 6
0
		private void FoundSFMWarning(string sfm)
		{
			SfmData data = new SfmData();
			if (m_sfmData.ContainsKey(sfm))
				data = m_sfmData[sfm] as SfmData;
			data.m_Warnings++;
			m_sfmData[sfm] = data;
		}
Esempio n. 7
0
		private void FoundSFMWithoutData(string sfm)
		{
			m_sfmsWithOutData++;
			SfmData data = new SfmData();
			if (m_sfmData.ContainsKey(sfm))
				data = m_sfmData[sfm] as SfmData;
			data.m_WithoutData++;
			m_sfmData[sfm] = data;
		}