Changeset 3017 for trunk/sources/HeuristicLab.Persistence
- Timestamp:
- 03/14/10 01:06:17 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary/TypeName.cs ¶
r3016 r3017 13 13 /// attributes. 14 14 /// </summary> 15 [StorableClass (StorableClassType.MarkedOnly)]15 [StorableClass] 16 16 public class TypeName { 17 17 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Core/Configuration.cs ¶
r3016 r3017 11 11 /// <c>ConfigurationService</c>. 12 12 /// </summary> 13 [StorableClass (StorableClassType.MarkedOnly)]13 [StorableClass] 14 14 public class Configuration { 15 15 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Core/FormatBase.cs ¶
r3016 r3017 7 7 /// Common base class for defining a new serialization format. 8 8 /// </summary> 9 [StorableClass (StorableClassType.Empty)]9 [StorableClass] 10 10 public abstract class FormatBase<SerialDataFormat> : IFormat<SerialDataFormat> where SerialDataFormat : ISerialData { 11 11 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Core/PrimitiveSerializerBase.cs ¶
r3016 r3017 11 11 /// <typeparam name="Source">The source type.</typeparam> 12 12 /// <typeparam name="SerialData">The serialized type.</typeparam> 13 [StorableClass (StorableClassType.Empty)]13 [StorableClass] 14 14 public abstract class PrimitiveSerializerBase<Source, SerialData> : 15 15 IPrimitiveSerializer<Source, SerialData> -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/ArraySerializer.cs ¶
r2994 r3017 8 8 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 9 9 10 [StorableClass (StorableClassType.Empty)]10 [StorableClass] 11 11 public class ArraySerializer : ICompositeSerializer { 12 12 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/CompactNumberArray2StringSerializer.cs ¶
r2994 r3017 10 10 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 11 11 12 [StorableClass (StorableClassType.Empty)]12 [StorableClass] 13 13 public class CompactNumberArray2StringSerializer : ICompositeSerializer { 14 14 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/DictionarySerializer.cs ¶
r2994 r3017 9 9 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 10 10 11 [StorableClass (StorableClassType.Empty)]11 [StorableClass] 12 12 public class DictionarySerializer : ICompositeSerializer { 13 13 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/EnumSerializer.cs ¶
r2994 r3017 7 7 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 8 8 9 [StorableClass (StorableClassType.Empty)]9 [StorableClass] 10 10 public class EnumSerializer : ICompositeSerializer { 11 11 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/EnumerableSerializer.cs ¶
r2994 r3017 10 10 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 11 11 12 [StorableClass (StorableClassType.Empty)]12 [StorableClass] 13 13 public class EnumerableSerializer : ICompositeSerializer { 14 14 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/KeyValuePairSerializer.cs ¶
r2994 r3017 9 9 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 10 10 11 [StorableClass (StorableClassType.Empty)]11 [StorableClass] 12 12 public class KeyValuePairSerializer : ICompositeSerializer { 13 13 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Number2StringSerializer.cs ¶
r2994 r3017 12 12 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 13 13 14 [StorableClass (StorableClassType.Empty)]14 [StorableClass] 15 15 public class Number2StringSerializer : ICompositeSerializer { 16 16 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/NumberEnumerable2StringSerializer.cs ¶
r2994 r3017 11 11 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 12 12 13 [StorableClass (StorableClassType.Empty)]13 [StorableClass] 14 14 public class NumberEnumerable2StringSerializer : ICompositeSerializer { 15 15 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/StackSerializer.cs ¶
r2994 r3017 10 10 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 11 11 12 [StorableClass (StorableClassType.Empty)]12 [StorableClass] 13 13 public class StackSerializer : ICompositeSerializer { 14 14 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableAttribute.cs ¶
r3016 r3017 10 10 /// <summary> 11 11 /// Mark the member of a class to be considered by the <c>StorableSerializer</c>. 12 /// The class must be marked as <c>[StorableClass (StorableClassType.Empty)]</c> and the12 /// The class must be marked as <c>[StorableClass]</c> and the 13 13 /// <c>StorableClassType</c> should be set to <c>MarkedOnly</c> for 14 14 /// this attribute to kick in. -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableClassAttribute.cs ¶
r3016 r3017 13 13 14 14 /// <summary> 15 /// Serialize the class completely empty16 /// (ignore further [Storable] attributes inside the class)17 /// </summary>18 Empty,19 20 /// <summary>21 15 /// Serialize only fields and properties that have been marked 22 /// with the [Storable] attribute 16 /// with the [Storable] attribute. This is the default value. 23 17 /// </summary> 24 18 MarkedOnly, … … 57 51 /// Specify how members are selected for serialization. 58 52 /// </summary> 59 public StorableClassType Type { get; set; } 53 public StorableClassType Type { get; set; } 60 54 61 55 /// <summary> 62 /// Mark a class to be serialize by the <c>StorableSerizlier</c> 63 /// </summary> 56 /// Mark a class to be serialize by the <c>StorableSerizlier</c> 57 /// </summary> 58 /// <param name="type">The storable class type.</param> 64 59 public StorableClassAttribute(StorableClassType type) { 65 60 Type = type; 61 } 62 63 /// <summary> 64 /// Initializes a new instance of the <see cref="StorableClassAttribute"/> class. 65 /// The default value for <see cref="StorableClassType"/> is 66 /// <see cref="StorableClassType.MarkedOnly"/>. 67 /// </summary> 68 public StorableClassAttribute() { 66 69 } 67 70 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableSerializer.cs ¶
r3016 r3017 11 11 /// <summary> 12 12 /// Intended for serialization of all custom classes. Classes should have the 13 /// <c>[StorableClass (StorableClassType.Empty)]</c> attribute set and a serialization mode set.13 /// <c>[StorableClass]</c> attribute set and a serialization mode set. 14 14 /// Optionally selected fields and properties can be marked with the 15 15 /// <c>[Storable]</c> attribute. 16 16 /// </summary> 17 [StorableClass (StorableClassType.Empty)]17 [StorableClass] 18 18 public class StorableSerializer : ICompositeSerializer { 19 19 … … 33 33 StorableConstructorAttribute.GetStorableConstructor(type) == null) 34 34 return "no default constructor and no storable constructor"; 35 return "class or one of its base classes is not empty and has no [StorableClass (StorableClassType.Empty)] attribute";35 return "class or one of its base classes is not empty and has no [StorableClass] attribute"; 36 36 } 37 37 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/StructSerializer.cs ¶
r2994 r3017 10 10 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 11 11 12 [StorableClass (StorableClassType.Empty)]12 [StorableClass] 13 13 public class StructSerializer : ICompositeSerializer { 14 14 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/TypeSerializer.cs ¶
r2994 r3017 8 8 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 9 9 10 [StorableClass (StorableClassType.Empty)]10 [StorableClass] 11 11 public class TypeSerializer : ICompositeSerializer { 12 12 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/DebugString/DebugString.cs ¶
r3016 r3017 13 13 /// Simple write-only format for debugging purposes. 14 14 /// </summary> 15 [StorableClass (StorableClassType.MarkedOnly)]15 [StorableClass] 16 16 public class DebugString : ISerialData { 17 17 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/DebugString/DebugStringFormat.cs ¶
r2994 r3017 10 10 namespace HeuristicLab.Persistence.Default.DebugString { 11 11 12 [StorableClass (StorableClassType.Empty)]12 [StorableClass] 13 13 public class DebugStringFormat : FormatBase<DebugString> { 14 14 public override string Name { get { return "DebugString"; } } -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/NumberArray2XmlSerializerBase.cs ¶
r2994 r3017 8 8 namespace HeuristicLab.Persistence.Default.Xml.Compact { 9 9 10 [StorableClass (StorableClassType.Empty)]10 [StorableClass] 11 11 public abstract class NumberArray2XmlSerializerBase<T> : CompactXmlSerializerBase<T> where T : class { 12 12 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/NumberEnumeration2XmlSerializerBase.cs ¶
r2994 r3017 8 8 namespace HeuristicLab.Persistence.Default.Xml.Compact { 9 9 10 [StorableClass (StorableClassType.Empty)]10 [StorableClass] 11 11 public abstract class NumberEnumeration2XmlSerializerBase<T> : CompactXmlSerializerBase<T> where T : IEnumerable { 12 12 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/XmlFormat.cs ¶
r3016 r3017 9 9 /// or save to a file. 10 10 /// </summary> 11 [StorableClass (StorableClassType.Empty)]11 [StorableClass] 12 12 public class XmlFormat : FormatBase<XmlString> { 13 13 public override string Name { get { return "XML"; } } -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/XmlString.cs ¶
r3002 r3017 6 6 namespace HeuristicLab.Persistence.Default.Xml { 7 7 8 [StorableClass (StorableClassType.MarkedOnly)]8 [StorableClass] 9 9 public class XmlString : ISerialData { 10 10 -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Tests/StorableAttributeTests.cs ¶
r2994 r3017 8 8 namespace HeuristicLab.Persistence_33.Tests { 9 9 10 [StorableClass (StorableClassType.MarkedOnly)]10 [StorableClass] 11 11 class DemoClass { 12 12 … … 21 21 } 22 22 23 [StorableClass (StorableClassType.MarkedOnly)]23 [StorableClass] 24 24 class Base { 25 25 public string baseName; … … 31 31 } 32 32 33 [StorableClass (StorableClassType.MarkedOnly)]33 [StorableClass] 34 34 class Override : Base { 35 35 [Storable] … … 40 40 } 41 41 42 [StorableClass (StorableClassType.Empty)]42 [StorableClass] 43 43 class Intermediate : Override { 44 44 } 45 45 46 [StorableClass (StorableClassType.MarkedOnly)]46 [StorableClass] 47 47 class New : Intermediate { 48 48 public string newName; -
TabularUnified trunk/sources/HeuristicLab.Persistence/3.3/Tests/UseCases.cs ¶
r3010 r3017 21 21 namespace HeuristicLab.Persistence_33.Tests { 22 22 23 [StorableClass (StorableClassType.MarkedOnly)]23 [StorableClass] 24 24 public class NumberTest { 25 25 [Storable] … … 43 43 } 44 44 45 [StorableClass (StorableClassType.MarkedOnly)]45 [StorableClass] 46 46 public class NonDefaultConstructorClass { 47 47 [Storable] … … 52 52 } 53 53 54 [StorableClass (StorableClassType.MarkedOnly)]54 [StorableClass] 55 55 public class IntWrapper { 56 56 … … 75 75 } 76 76 77 [StorableClass (StorableClassType.MarkedOnly)]77 [StorableClass] 78 78 public class PrimitivesTest : NumberTest { 79 79 [Storable] … … 90 90 public enum TestEnum { va1, va2, va3, va8 } ; 91 91 92 [StorableClass (StorableClassType.MarkedOnly)]92 [StorableClass] 93 93 public class RootBase { 94 94 [Storable] … … 98 98 } 99 99 100 [StorableClass (StorableClassType.MarkedOnly)]100 [StorableClass] 101 101 public class Root : RootBase { 102 102 [Storable] … … 133 133 public enum TrickyEnum { zero = 0, one = 1, two = 2 } 134 134 135 [StorableClass (StorableClassType.MarkedOnly)]135 [StorableClass] 136 136 public class EnumTest { 137 137 [Storable] … … 143 143 } 144 144 145 [StorableClass (StorableClassType.MarkedOnly)]145 [StorableClass] 146 146 public class Custom { 147 147 [Storable] … … 153 153 } 154 154 155 [StorableClass (StorableClassType.MarkedOnly)]155 [StorableClass] 156 156 public class Manager { 157 157 … … 166 166 } 167 167 168 [StorableClass (StorableClassType.MarkedOnly)]168 [StorableClass] 169 169 public class C { 170 170 [Storable] … … 373 373 } 374 374 375 [StorableClass (StorableClassType.MarkedOnly)]375 [StorableClass] 376 376 public class NestedType { 377 377 [Storable] … … 603 603 } 604 604 605 [StorableClass (StorableClassType.MarkedOnly)]605 [StorableClass] 606 606 class Child { 607 607 [Storable] … … 609 609 } 610 610 611 [StorableClass (StorableClassType.MarkedOnly)]611 [StorableClass] 612 612 class Parent { 613 613 [Storable] … … 615 615 } 616 616 617 [StorableClass (StorableClassType.MarkedOnly)]617 [StorableClass] 618 618 class GrandParent { 619 619 [Storable] … … 683 683 } 684 684 685 [StorableClass (StorableClassType.MarkedOnly)]685 [StorableClass] 686 686 private class PersistenceHooks { 687 687 [Storable] … … 718 718 } 719 719 720 [StorableClass (StorableClassType.Empty)]720 [StorableClass] 721 721 private class CustomConstructor { 722 722 public string Value = "none"; … … 740 740 } 741 741 742 [StorableClass (StorableClassType.Empty)]742 [StorableClass] 743 743 public class ExplodingDefaultConstructor { 744 744 public ExplodingDefaultConstructor() { … … 784 784 } 785 785 786 [StorableClass (StorableClassType.MarkedOnly)]786 [StorableClass] 787 787 public class HookInheritanceTestBase { 788 788 [Storable] … … 795 795 } 796 796 797 [StorableClass (StorableClassType.Empty)]797 [StorableClass] 798 798 public class HookInheritanceTestDerivedClass : HookInheritanceTestBase { 799 799 [Storable]
Note: See TracChangeset
for help on using the changeset viewer.