Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/27/09 14:18:39 (15 years ago)
Author:
epitzer
Message:

Convert persistence of Core plugin to new persistence framework. The target framework has been upgraded from 2.0 to 3.5 and events during persistence are not generated anymore. (#603)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/Interfaces/IStorable.cs

    r776 r1667  
    2626
    2727namespace HeuristicLab.Core {
     28
    2829  /// <summary>
    2930  /// Interface to represent objects that are de- and serializeable.
    3031  /// </summary>
    3132  public interface IStorable {
     33
    3234    /// <summary>
    3335    /// Gets the objects unique identifier.
     
    4042    /// <returns>The cloned object.</returns>
    4143    object Clone();
     44
    4245    /// <summary>
    4346    /// Clones the current instance, considering already cloned objects.
     
    4649    /// <returns>The cloned object.</returns>
    4750    object Clone(IDictionary<Guid, object> clonedObjects);
    48 
    49     /// <summary>
    50     /// Saves the current instance as <see cref="XmlNode"/> in the specified
    51     /// <typeparamref name="document"/>.
    52     /// </summary>
    53     /// <param name="name">The (tag)name of the <see cref="XmlNode"/>.</param>
    54     /// <param name="document">The <see cref="XmlDocument"/> where to save the data.</param>
    55     /// <param name="persistedObjects">The dictionary of all already persisted objects.
    56     /// (Needed to avoid cycles.)</param>
    57     /// <returns>The saved <see cref="XmlNode"/>.</returns>
    58     XmlNode GetXmlNode(string name, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects);
    59     /// <summary>
    60     /// Loads the persisted object from the specified <paramref name="node"/>.
    61     /// </summary>
    62     /// <param name="node">The <see cref="XmlNode"/> where the object is saved.</param>
    63     /// <param name="restoredObjects">A dictionary of all already restored objects. (Needed to avoid
    64     /// cycles.)</param>
    65     void Populate(XmlNode node, IDictionary<Guid, IStorable> restoredObjects);
    6651  }
    6752}
Note: See TracChangeset for help on using the changeset viewer.