- Timestamp:
- 04/16/09 12:58:14 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/DoubleArray2XmlFormatters.cs
r1564 r1566 4 4 5 5 namespace HeuristicLab.Persistence.Default.Xml.Compact { 6 6 7 7 public abstract class DoubleArray2XmlFormatterBase<T> : NumberArray2XmlFormatterBase<T> { 8 8 9 9 protected override string FormatValue(object o) { 10 10 return ((double)o).ToString("r", CultureInfo.InvariantCulture); … … 24 24 25 25 [EmptyStorableClass] 26 public class Double3DArray2XmlFormatter : DoubleArray2XmlFormatterBase<double[, ,]> { }27 26 public class Double3DArray2XmlFormatter : DoubleArray2XmlFormatterBase<double[, ,]> { } 27 28 28 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/DoubleList2XmlFormatter.cs
r1564 r1566 8 8 9 9 [EmptyStorableClass] 10 public class DoubleList2XmlFormatter : NumberEnumeration2XmlFormatterBase<List<double>> { 10 public class DoubleList2XmlFormatter : NumberEnumeration2XmlFormatterBase<List<double>> { 11 11 12 12 protected override void Add(IEnumerable enumeration, object o) { -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/IntArray2XmlFormatters.cs
r1564 r1566 3 3 4 4 namespace HeuristicLab.Persistence.Default.Xml.Compact { 5 6 public abstract class IntArray2XmlFormatterBase<T> : NumberArray2XmlFormatterBase<T> { 5 6 public abstract class IntArray2XmlFormatterBase<T> : NumberArray2XmlFormatterBase<T> { 7 7 8 8 protected override string FormatValue(object o) { … … 22 22 23 23 [EmptyStorableClass] 24 public class Int3DArray2XmlFormatter : IntArray2XmlFormatterBase<int[, ,]> { }25 24 public class Int3DArray2XmlFormatter : IntArray2XmlFormatterBase<int[, ,]> { } 25 26 26 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/IntList2XmlFormatter.cs
r1564 r1566 8 8 [EmptyStorableClass] 9 9 public class IntList2XmlFormatter : NumberEnumeration2XmlFormatterBase<List<int>> { 10 10 11 11 protected override void Add(IEnumerable enumeration, object o) { 12 12 ((List<int>)enumeration).Add((int)o); -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/NumberArray2XmlFormatterBase.cs
r1564 r1566 5 5 6 6 namespace HeuristicLab.Persistence.Default.Xml.Compact { 7 7 8 8 public abstract class NumberArray2XmlFormatterBase<T> : FormatterBase<T, XmlString> { 9 9 … … 30 30 } 31 31 int[] positions = (int[])lowerBounds.Clone(); 32 while (positions[a.Rank - 1] < lengths[a.Rank - 1] + lowerBounds[a.Rank - 1]) { 32 while (positions[a.Rank - 1] < lengths[a.Rank - 1] + lowerBounds[a.Rank - 1]) { 33 33 sb.Append(Separator); 34 34 sb.Append(FormatValue(a.GetValue(positions))); … … 42 42 } 43 43 } 44 } 44 } 45 45 return new XmlString(sb.ToString()); 46 46 } … … 80 80 } 81 81 } 82 82 83 83 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/NumberEnumeration2XmlFormatterBase.cs
r1564 r1566 5 5 6 6 namespace HeuristicLab.Persistence.Default.Xml.Compact { 7 7 8 8 public abstract class NumberEnumeration2XmlFormatterBase<T> : FormatterBase<T, XmlString> where T : IEnumerable { 9 9 … … 32 32 } 33 33 } 34 34 35 35 }
Note: See TracChangeset
for help on using the changeset viewer.