Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16471


Ignore:
Timestamp:
12/30/18 09:09:24 (5 years ago)
Author:
gkronber
Message:

#2520: checked all projects from top to HeuristicLab.Common and added StorableType attributes.

Location:
branches/2520_PersistenceReintegration
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Collections/3.3/IObservableKeyedCollection.cs

    r16453 r16471  
    2020#endregion
    2121
     22using HEAL.Fossil;
    2223namespace HeuristicLab.Collections {
     24  [StorableType("5be307b0-41d7-4d8d-a289-fba09fce33f4")]
    2325  public interface IObservableKeyedCollection<TKey, TItem> : IObservableCollection<TItem>, INotifyObservableKeyedCollectionItemsChanged<TKey, TItem> {
    2426    TItem this[TKey key] { get; }
  • branches/2520_PersistenceReintegration/HeuristicLab.Collections/3.3/IObservableKeyedList.cs

    r16453 r16471  
    2222#endregion
    2323
     24using HEAL.Fossil;
     25
    2426namespace HeuristicLab.Collections {
     27  [StorableType("b26c93c5-eb74-41a9-982d-985df4a1eb77")]
    2528  public interface IObservableKeyedList<TKey, TItem> : IObservableKeyedCollection<TKey, TItem>, IObservableList<TItem> {
    2629  }
  • branches/2520_PersistenceReintegration/HeuristicLab.Collections/3.3/IndexedItem.cs

    r16453 r16471  
    1 #region License Information
     1using HEAL.Fossil;
     2#region License Information
    23/* HeuristicLab
    34 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     
    2122
    2223namespace HeuristicLab.Collections {
     24  [StorableType(StorableMemberSelection.AllFields, "0a9d0728-5fdc-4e16-b02b-545dbdf0b0fa")]
    2325  public struct IndexedItem<T> {
    2426    private readonly int index;
  • branches/2520_PersistenceReintegration/HeuristicLab.Common/3.3/Content/IContent.cs

    r16453 r16471  
    2020#endregion
    2121
     22using HEAL.Fossil;
    2223namespace HeuristicLab.Common {
     24  [StorableType("b753064f-b2b6-4c13-b76e-2c4ec575c8cf")]
    2325  public interface IContent { }
    2426}
  • branches/2520_PersistenceReintegration/HeuristicLab.Common/3.3/Content/IStorableContent.cs

    r16453 r16471  
    2020#endregion
    2121
     22using HEAL.Fossil;
    2223
    2324namespace HeuristicLab.Common {
     25  [StorableType("25b6ffb1-8689-4ad7-81ed-bcc5065ee2a8")]
    2426  public interface IStorableContent : IContent {
    2527    string Filename { get; set; }
  • branches/2520_PersistenceReintegration/HeuristicLab.Common/3.3/DeepCloneable.cs

    r16453 r16471  
    2020#endregion
    2121
     22using HEAL.Fossil;
    2223
    2324namespace HeuristicLab.Common {
     25  [StorableType("8ed3dd0c-1cb8-4b42-8053-05bd1fcf48ef")]
    2426  /// <summary>
    2527  /// Represents a base class for all deeply cloneable objects.
    2628  /// </summary>
    2729  public abstract class DeepCloneable : IDeepCloneable {
     30    [StorableConstructor]
     31    protected DeepCloneable(StorableConstructorFlag _) { }
     32
    2833    protected DeepCloneable(DeepCloneable original, Cloner cloner) {
    2934      cloner.RegisterClonedObject(original, this);
  • branches/2520_PersistenceReintegration/HeuristicLab.Common/3.3/HeuristicLab.Common-3.3.csproj

    r16452 r16471  
    105105  </PropertyGroup>
    106106  <ItemGroup>
     107    <Reference Include="Google.Protobuf, Version=3.6.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604, processorArchitecture=MSIL">
     108      <HintPath>..\..\packages\Google.Protobuf.3.6.1\lib\net45\Google.Protobuf.dll</HintPath>
     109    </Reference>
     110    <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
     111      <HintPath>..\..\packages\HEAL.Fossil.1.0.0\lib\netstandard2.0\HEAL.Fossil.dll</HintPath>
     112    </Reference>
    107113    <Reference Include="System" />
    108114    <Reference Include="System.Core">
     
    125131    <Compile Include="AsyncHelper.cs" />
    126132    <Compile Include="CancelEventArgs.cs" />
     133    <None Include="packages.config" />
    127134    <None Include="Plugin.cs.frame" />
    128135    <Compile Include="ColorGradient.cs" />
  • branches/2520_PersistenceReintegration/HeuristicLab.Common/3.3/NaturalStringComparer.cs

    r16453 r16471  
    2222using System.Collections.Generic;
    2323using System.Text.RegularExpressions;
     24using HEAL.Fossil;
    2425
    2526namespace HeuristicLab.Common {
     27  [StorableType("fa583e6f-b8cf-4046-b144-4c1938caa418")]
    2628  public class NaturalStringComparer : IComparer<string> {
     29
     30    [StorableConstructor]
     31    protected NaturalStringComparer(StorableConstructorFlag _) { }
     32    public NaturalStringComparer() { }
     33
    2734    public int Compare(string x, string y) {
    2835      if (x == y) return 0;
  • branches/2520_PersistenceReintegration/HeuristicLab.Common/3.3/Point2D.cs

    r16453 r16471  
    2323using System.ComponentModel;
    2424using System.Globalization;
     25using HEAL.Fossil;
    2526
    2627namespace HeuristicLab.Common {
    2728  [Serializable]
     29  [StorableType("9c4b8927-6b8e-490f-a367-78091ccf1494")]
    2830  public struct Point2D<T> where T : struct, IEquatable<T> {
    2931    public static readonly Point2D<T> Empty = new Point2D<T>();
    3032
     33    [Storable]
    3134    private T x;
    3235    public T X {
    3336      get { return x; }
    3437    }
     38
     39    [Storable]
    3540    private T y;
    3641    public T Y {
     
    3843    }
    3944
     45    [Storable]
    4046    private object tag;
    4147    public object Tag {
  • branches/2520_PersistenceReintegration/HeuristicLab.Common/3.3/ReferenceEqualityComparer.cs

    r16453 r16471  
    2121
    2222using System.Collections.Generic;
     23using HEAL.Fossil;
    2324
    2425namespace HeuristicLab.Common {
     26  [StorableType("c4231b4c-94ac-4b4a-bd99-3deea73237de")]
    2527  public class ReferenceEqualityComparer : IEqualityComparer<object> {
    2628    bool IEqualityComparer<object>.Equals(object x, object y) {
  • branches/2520_PersistenceReintegration/HeuristicLab.Tests/HeuristicLab.Persistence.Fossil/UseCases.cs

    r16467 r16471  
    162162      }
    163163    }
     164   
     165    // TODO:
     166    // - IndexedItem and IndexedDataTable
     167    // - Point2D from HL.Common
    164168
    165169    [ClassInitialize]
Note: See TracChangeset for help on using the changeset viewer.