Merging changes
This commit is contained in:
1 parent
c4216d2272
commit
797816be7e
437 files changed
+54228
-28
No files matched your search
@@ -0,0 +1,98 @@
|
||||
// using System;
|
||||
// using System.Collections;
|
||||
|
||||
// namespace BCG
|
||||
// {
|
||||
// public class ProjectStream : ViewStream
|
||||
// {
|
||||
// private ProjectHelper myHelper;
|
||||
// private string myColExp, myTableName;
|
||||
// private ViewStream myVs;
|
||||
// private IDictionary myDic;
|
||||
// private BCG.Utilities.General.HighPerformanceTimer _timer = new Utilities.General.HighPerformanceTimer();
|
||||
// /// <summary>
|
||||
// /// </summary>
|
||||
// /// <param name="vs">stream to susbsribe to as the input stream</param>
|
||||
// /// <param name="colExp">expression defining the column mapping</param>
|
||||
// public ProjectStream (ViewStream vs, string colExp)
|
||||
// {
|
||||
// myVs = vs;
|
||||
// myColExp = colExp;
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// /// </summary>
|
||||
// /// <param name="vs">stream to subscribe to as the input stream</param>
|
||||
// /// <param name="colExp">expression defining the column mapping</param>
|
||||
// /// <param name="tableName">name of the mapped table</param>
|
||||
// public ProjectStream (ViewStream vs, string colExp, string tableName)
|
||||
// {
|
||||
// if (colExp == "!")
|
||||
// mySetRealSource (new ChangeTableNameStream (vs, tableName));
|
||||
// else
|
||||
// {
|
||||
// myVs = vs;
|
||||
// myColExp = colExp;
|
||||
// myTableName = tableName;
|
||||
// }
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// /// </summary>
|
||||
// /// <param name="vs">stream to subscribe to as the input stream</param>
|
||||
// /// <param name="dic">dictionary mapping the aliased to the original</param>
|
||||
// public ProjectStream (ViewStream vs, IDictionary dic)
|
||||
// {
|
||||
// myVs = vs;
|
||||
// myDic = ProjectHelper.invertDic (dic);
|
||||
// }
|
||||
|
||||
// protected override void myOnFirstSubscriber()
|
||||
// {
|
||||
// myVs.onChange += new BCG.DataStream.ChangeDelegate (myHandleChange);
|
||||
// }
|
||||
|
||||
// protected override void myOnLastSubscriber()
|
||||
// {
|
||||
// myVs.onChange -= new BCG.DataStream.ChangeDelegate (myHandleChange);;
|
||||
// }
|
||||
|
||||
// internal void myHandleChange (object newValue)
|
||||
// {
|
||||
// DataPacket dp = newValue as DataPacket;
|
||||
// if (myHelper != null)
|
||||
// {
|
||||
// _timer.start();
|
||||
// IBlueRowCollection dels, adds;
|
||||
// BlueDataUtility.getTrueDeletesAndAdds (dp.deletedRows, dp.addedRows, out dels, out adds, myHelper.relevantOrigCols);
|
||||
// _timer.stop();
|
||||
// if (dels.Count + adds.Count > 0)
|
||||
// myFireEvent (new DataPacket (new ProjectedTable (dp.newRows, myHelper),
|
||||
// new ProjectedTable (adds, myHelper),
|
||||
// new ProjectedTable (dels, myHelper)
|
||||
// )
|
||||
// );
|
||||
// }
|
||||
// else
|
||||
// { //first time a callback is received
|
||||
// myHelper = myDic == null ?
|
||||
// new ProjectHelper (dp.schema, myColExp, myTableName) :
|
||||
// new ProjectHelper (dp.schema, myDic, myTableName);
|
||||
|
||||
// IBlueRowCollection temp;
|
||||
// myFireEvent (new DataPacket (temp = new ProjectedTable (dp.newRows, myHelper),
|
||||
// temp,
|
||||
// new BlueTable (temp.schema)
|
||||
// )
|
||||
// );
|
||||
|
||||
// }
|
||||
// }
|
||||
// public void myHandleChangeTest(object newValue)
|
||||
// {
|
||||
// myHandleChange(newValue);
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
// }
|
||||
Reference in new issue
Block a user