Changeset 1853 for trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml
- Timestamp:
- 05/19/09 17:09:45 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/DoubleArray2XmlSerializer.cs
r1823 r1853 2 2 using HeuristicLab.Persistence.Core; 3 3 using System.Globalization; 4 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;5 4 6 5 namespace HeuristicLab.Persistence.Default.Xml.Compact { 7 6 8 public abstract class DoubleArray2XmlSerializerBase<T> : NumberArray2XmlSerializerBase<T> where T : class {7 public abstract class DoubleArray2XmlSerializerBase<T> : NumberArray2XmlSerializerBase<T> where T : class { 9 8 10 9 protected override string FormatValue(object o) { … … 17 16 } 18 17 19 [EmptyStorableClass]20 18 public class Double1DArray2XmlSerializer : DoubleArray2XmlSerializerBase<double[]> { } 21 19 22 23 [EmptyStorableClass]24 20 public class Double2DArray2XmlSerializer : DoubleArray2XmlSerializerBase<double[,]> { } 25 21 26 [EmptyStorableClass]27 22 public class Double3DArray2XmlSerializer : DoubleArray2XmlSerializerBase<double[, ,]> { } 28 23 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/DoubleList2XmlSerializer.cs
r1823 r1853 4 4 using HeuristicLab.Persistence.Core; 5 5 using System.Globalization; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 8 7 namespace HeuristicLab.Persistence.Default.Xml.Compact { 9 8 10 [EmptyStorableClass]11 9 public class DoubleList2XmlSerializer : NumberEnumeration2XmlSerializerBase<List<double>> { 12 10 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/IntArray2XmlSerializer.cs
r1823 r1853 1 1 using System; 2 2 using HeuristicLab.Persistence.Core; 3 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;4 3 5 4 namespace HeuristicLab.Persistence.Default.Xml.Compact { 6 5 7 public abstract class IntArray2XmlSerializerBase<T> : NumberArray2XmlSerializerBase<T> where T : class {6 public abstract class IntArray2XmlSerializerBase<T> : NumberArray2XmlSerializerBase<T> where T : class { 8 7 9 8 protected override string FormatValue(object o) { … … 16 15 } 17 16 18 [EmptyStorableClass]19 17 public class Int1DArray2XmlSerializer : IntArray2XmlSerializerBase<int[]> { } 20 18 21 [EmptyStorableClass]22 19 public class Int2DArray2XmlSerializer : IntArray2XmlSerializerBase<int[,]> { } 23 20 24 [EmptyStorableClass]25 21 public class Int3DArray2XmlSerializer : IntArray2XmlSerializerBase<int[, ,]> { } 26 22 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/IntList2XmlSerializer.cs
r1823 r1853 7 7 namespace HeuristicLab.Persistence.Default.Xml.Compact { 8 8 9 [EmptyStorableClass]10 9 public class IntList2XmlSerializer : NumberEnumeration2XmlSerializerBase<List<int>> { 11 10 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/NumberArray2XmlSerializerBase.cs
r1823 r1853 4 4 using System; 5 5 using HeuristicLab.Persistence.Core; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 6 7 7 8 namespace HeuristicLab.Persistence.Default.Xml.Compact { 8 9 10 [EmptyStorableClass] 9 11 public abstract class NumberArray2XmlSerializerBase<T> : CompactXmlSerializerBase<T> where T : class { 10 12 … … 13 15 protected abstract object ParseValue(string o); 14 16 15 public override XmlString Format(T t) { 17 public override XmlString Format(T t) { 16 18 Array a = (Array)(object)t; 17 19 int[] lengths = new int[a.Rank]; … … 86 88 } catch (OverflowException e) { 87 89 throw new PersistenceException("Overflow during element parsing while trying to reconstruct number array.", e); 88 } 90 } 89 91 } 90 92 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/NumberEnumeration2XmlSerializerBase.cs
r1823 r1853 4 4 using System; 5 5 using HeuristicLab.Persistence.Core; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 6 7 7 8 namespace HeuristicLab.Persistence.Default.Xml.Compact { 8 9 10 [EmptyStorableClass] 9 11 public abstract class NumberEnumeration2XmlSerializerBase<T> : CompactXmlSerializerBase<T> where T : IEnumerable { 10 12 … … 36 38 } catch (OverflowException e) { 37 39 throw new PersistenceException("Overflow during element parsing while trying to reconstruct number enumerable.", e); 38 } 40 } 39 41 } 40 42 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Bool2XmlSerializer.cs
r1823 r1853 4 4 using System.Reflection; 5 5 using System.Globalization; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 8 7 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 9 8 10 [EmptyStorableClass]11 9 public class Bool2XmlSerializer : SimpleNumber2XmlSerializerBase<bool> { } 12 10 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Byte2XmlSerializer.cs
r1823 r1853 4 4 using System.Reflection; 5 5 using System.Globalization; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 8 7 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 9 8 10 [EmptyStorableClass]11 9 public class Byte2XmlSerializer : SimpleNumber2XmlSerializerBase<byte> { } 12 10 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Char2XmlFormatter.cs
r1823 r1853 4 4 using System.Reflection; 5 5 using System.Globalization; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 8 7 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 9 8 10 [EmptyStorableClass] 11 public class Char2XmlSerializer : PrimitiveSerializerBase<char, XmlString> { 12 9 public class Char2XmlSerializer : PrimitiveSerializerBase<char, XmlString> { 10 13 11 public override XmlString Format(char c) { 14 12 return new XmlString(new string(c, 1)); -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/DateTime2XmlSerializer.cs
r1823 r1853 2 2 using HeuristicLab.Persistence.Core; 3 3 using HeuristicLab.Persistence.Interfaces; 4 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;5 4 6 5 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 7 6 8 [EmptyStorableClass]9 7 public class DateTime2XmlSerializer : PrimitiveXmlSerializerBase<DateTime> { 10 8 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Decimal2XmlSerializer.cs
r1823 r1853 4 4 using System.Reflection; 5 5 using System.Globalization; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 8 7 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 9 8 10 [EmptyStorableClass]11 9 public class Decimal2XmlSerializer : DecimalNumber2XmlSerializerBase<decimal> { } 12 10 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/DecimalNumber2XmlSerializerBase.cs
r1823 r1853 30 30 return new XmlString((string)ToStringMethod.Invoke(t, new object[] { "r", CultureInfo.InvariantCulture })); 31 31 } 32 32 33 public override T Parse(XmlString x) { 33 34 try { -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Double2XmlSerializer.cs
r1823 r1853 4 4 using System.Reflection; 5 5 using System.Globalization; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 8 7 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 9 8 10 [EmptyStorableClass]11 9 public class Double2XmlSerializer : DecimalNumber2XmlSerializerBase<double> { } 12 10 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Float2XmlSerializer.cs
r1823 r1853 4 4 using System.Reflection; 5 5 using System.Globalization; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 8 7 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 9 8 10 [EmptyStorableClass]11 9 public class Float2XmlSerializer : DecimalNumber2XmlSerializerBase<float> { } 12 10 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Guid2XmlSerializer.cs
r1823 r1853 4 4 using System.Text; 5 5 using System.Text.RegularExpressions; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 using System.Globalization; 8 7 9 8 10 9 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 11 12 [EmptyStorableClass] 10 13 11 public class Guid2XmlSerializer : PrimitiveXmlSerializerBase<Guid> { 14 12 … … 26 24 } 27 25 } 28 } 26 } 29 27 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Int2XmlSerializer.cs
r1823 r1853 4 4 using System.Reflection; 5 5 using System.Globalization; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 8 7 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 9 8 10 [EmptyStorableClass]11 9 public class Int2XmlSerializer : SimpleNumber2XmlSerializerBase<int> { } 12 10 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Long2XmlSerializer.cs
r1823 r1853 4 4 using System.Reflection; 5 5 using System.Globalization; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 8 7 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 9 8 10 [EmptyStorableClass]11 9 public class Long2XmlSerializer : SimpleNumber2XmlSerializerBase<long> { } 12 10 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/SByte2XmlSerializer.cs
r1823 r1853 4 4 using System.Reflection; 5 5 using System.Globalization; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 8 7 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 9 8 10 [EmptyStorableClass]11 9 public class SByte2XmlSerializer : SimpleNumber2XmlSerializerBase<sbyte> { } 12 10 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Short2XmlSerializer.cs
r1823 r1853 4 4 using System.Reflection; 5 5 using System.Globalization; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 8 7 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 9 8 10 [EmptyStorableClass]11 9 public class Short2XmlSerializer : SimpleNumber2XmlSerializerBase<short> { } 12 10 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/SimpleNumber2XmlSerializerBase.cs
r1823 r1853 21 21 return new XmlString(t.ToString()); 22 22 } 23 23 24 public override T Parse(XmlString x) { 24 25 try { -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/String2XmlSerializer.cs
r1823 r1853 4 4 using System.Text; 5 5 using System.Text.RegularExpressions; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 using System.Globalization; 8 7 … … 10 9 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 11 10 12 [EmptyStorableClass]13 11 public class String2XmlSerializer : PrimitiveXmlSerializerBase<string> { 14 12 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/TimeSpan2XmlSerializer.cs
r1823 r1853 4 4 using System.Text; 5 5 using System.Text.RegularExpressions; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 using System.Globalization; 8 7 … … 10 9 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 11 10 12 [EmptyStorableClass]13 11 public class TimeSpan2XmlSerializer : PrimitiveXmlSerializerBase<TimeSpan> { 14 12 … … 26 24 } 27 25 } 28 } 26 } 29 27 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/UInt2XmlSerializer.cs
r1823 r1853 8 8 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 9 9 10 [EmptyStorableClass]11 10 public class UInt2XmlSerializer : SimpleNumber2XmlSerializerBase<uint> { } 12 11 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/ULong2XmlSerializer.cs
r1823 r1853 4 4 using System.Reflection; 5 5 using System.Globalization; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 8 7 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 9 8 10 [EmptyStorableClass]11 9 public class ULong2XmlSerializer : SimpleNumber2XmlSerializerBase<ulong> { } 12 10 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/UShort2XmlSerializer.cs
r1823 r1853 4 4 using System.Reflection; 5 5 using System.Globalization; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 6 8 7 namespace HeuristicLab.Persistence.Default.Xml.Primitive { 9 8 10 [EmptyStorableClass]11 9 public class UShort2XmlSerializer : SimpleNumber2XmlSerializerBase<ushort> { } 12 10
Note: See TracChangeset
for help on using the changeset viewer.