using System; using System.Text; using System.Collections.Specialized; namespace P4API { /// <summary> /// Subclass of StringDictionary which provides additional methods for dealing with the psuedo-arrays passed from Perforce. /// </summary> public class P4ResultRecord : StringDictionary { internal P4ResultRecord(StringDictionary sd) { foreach (string s in sd.Keys) { base.Add(s, sd[s]); } } public string[] getArray(string var) { throw new System.NotImplementedException(); } public void setArray(string[] varArray) { throw new System.NotImplementedException(); } public override string ToString() { StringBuilder sb = new StringBuilder(); foreach (string s in this.Keys) { sb.Append(String.Format("{0} : {1}\n", s, this[s])); } return sb.ToString(); } /// <summary> /// If the underlying P4Result has a key of "var1", it is assumed that this variable is an array, and will return as such. /// </summary> public bool isArray(string var) { throw new System.NotImplementedException(); } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 5432 | Shawn Hladky | Refactoring step 2 -- rename source files | ||
#4 | 5431 | Shawn Hladky |
Refactoring... step 1. |
||
#3 | 5411 | Shawn Hladky | WIP -- forms are working now. | ||
#2 | 5373 | Shawn Hladky | P4.Net: Still WIP, but some things starting to work | ||
#1 | 5362 | Shawn Hladky | Chipping away at the API changes |