Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/14/08 17:49:47 (17 years ago)
Author:
gkronber
Message:

created a branch that uses XmlTextWriter instead of XMLDocument to save documents. Investigating ticket #103.

Location:
branches/XmlTextWriterBranch
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/XmlTextWriterBranch/HeuristicLab.Core/AtomicOperation.cs

    r2 r119  
    5151
    5252    #region Persistence Methods
    53     public override XmlNode GetXmlNode(string name, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) {
    54       XmlNode node = base.GetXmlNode(name, document, persistedObjects);
    55       node.AppendChild(PersistenceManager.Persist("Operator", Operator, document, persistedObjects));
    56       node.AppendChild(PersistenceManager.Persist("Scope", Scope, document, persistedObjects));
    57       return node;
     53    //public override XmlNode GetXmlNode(string name, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) {
     54    //  XmlNode node = base.GetXmlNode(name, document, persistedObjects);
     55    //  node.AppendChild(PersistenceManager.Persist("Operator", Operator, document, persistedObjects));
     56    //  node.AppendChild(PersistenceManager.Persist("Scope", Scope, document, persistedObjects));
     57    //  return node;
     58    //}
     59    public override void Persist(string name, XmlWriter writer, IDictionary<Guid, IStorable> persistedObjects) {
     60      base.Persist(name, writer, persistedObjects);
     61      PersistenceManager.Persist("Operator", Operator, writer, persistedObjects);
     62      PersistenceManager.Persist("Scope", Scope, writer, persistedObjects);
    5863    }
    5964    public override void Populate(XmlNode node, IDictionary<Guid, IStorable> restoredObjects) {
Note: See TracChangeset for help on using the changeset viewer.