/// <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); } }
/// <summary> /// Adds a LogSymbolicName to the collection /// Only called when the LogReport is being constructed /// </summary> internal void AddSymbolicName(LogSymbolicName symbolicName) { symbolicNames.Add(symbolicName); }