Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/15/08 16:41:18 (17 years ago)
Author:
gkronber
Message:

created a branch that combines the XmlReader and XmlWriter branches

Location:
branches/XmlReaderWriterBranch
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/XmlReaderWriterBranch/HeuristicLab.Operators/CombinedOperator.cs

    r119 r125  
    103103      PersistenceManager.Persist("OperatorGraph", OperatorGraph, writer, persistedObjects);
    104104    }
    105     public override void Populate(XmlNode node, IDictionary<Guid, IStorable> restoredObjects) {
    106       base.Populate(node, restoredObjects);
    107       XmlNode descriptionNode = node.SelectSingleNode("Description");
    108       if (descriptionNode != null) myDescription = descriptionNode.InnerText;
    109       myOperatorGraph = (IOperatorGraph)PersistenceManager.Restore(node.SelectSingleNode("OperatorGraph"), restoredObjects);
     105    //public override void Populate(XmlNode node, IDictionary<Guid, IStorable> restoredObjects) {
     106    //  base.Populate(node, restoredObjects);
     107    //  XmlNode descriptionNode = node.SelectSingleNode("Description");
     108    //  if(descriptionNode != null) myDescription = descriptionNode.InnerText;
     109    //  myOperatorGraph = (IOperatorGraph)PersistenceManager.Restore(node.SelectSingleNode("OperatorGraph"), restoredObjects);
     110    //}
     111    public override void Populate(XmlReader reader, IDictionary<Guid, IStorable> restoredObjects) {
     112      base.Populate(reader, restoredObjects);
     113      myDescription = reader.ReadElementString("Description");
     114      myOperatorGraph = (IOperatorGraph)PersistenceManager.Restore(reader, "OperatorGraph", restoredObjects);
     115      reader.Read();
    110116    }
    111117    #endregion
Note: See TracChangeset for help on using the changeset viewer.