Ejemplo n.º 1
0
        /// <summary>
        /// Extracts all required information from the synbolic line
        /// and add a new entry for it to the SymbolicNames collection
        /// </summary>
        private void ExtractSymbolicName(string message)
        {
            // line is of form:
            // '\t<symbolic name>: <revision>'

            // locate the ':' separating the symbolic name from the revision
            int idx = message.IndexOf(':');

            if (idx > 0 && idx < message.Length - 1)
            {
                string name     = message.Substring(0, idx).Trim();
                string revision = message.Substring(idx + 1).Trim();

                LogSymbolicName symbolicName = new LogSymbolicName(name, revision);
                curLogFile.SymbolicNames.AddSymbolicName(symbolicName);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds a LogSymbolicName to the collection
 /// Only called when the LogReport is being constructed
 /// </summary>
 internal void AddSymbolicName(LogSymbolicName symbolicName)
 {
     symbolicNames.Add(symbolicName);
 }
Ejemplo n.º 3
0
		/// <summary>
		/// Adds a LogSymbolicName to the collection
		/// Only called when the LogReport is being constructed
		/// </summary>
		internal void AddSymbolicName(LogSymbolicName symbolicName)
		{
		    symbolicNames.Add(symbolicName);
		}
Ejemplo n.º 4
0
 /// <summary>
 /// Extracts all required information from the synbolic line
 /// and add a new entry for it to the SymbolicNames collection
 /// </summary>
 private void ExtractSymbolicName(string message)
 {
     // line is of form:
     // '\t<symbolic name>: <revision>'
     
     // locate the ':' separating the symbolic name from the revision
     int idx = message.IndexOf(':');
     if (idx > 0 && idx < message.Length - 1)
     {
         string name = message.Substring(0, idx).Trim();
         string revision = message.Substring(idx + 1).Trim();
     
         LogSymbolicName symbolicName = new LogSymbolicName(name, revision);
         curLogFile.SymbolicNames.AddSymbolicName(symbolicName);
     }
 }