Last change
on this file since 2115 was
1958,
checked in by epitzer, 16 years ago
|
Updated handling of floating and fixed point numbers, faster and more accurate serialization and parsing. (#646)
|
File size:
804 bytes
|
Rev | Line | |
---|
[1454] | 1 | using System;
|
---|
| 2 | using HeuristicLab.Persistence.Core;
|
---|
[1958] | 3 | using HeuristicLab.Persistence.Default.Xml.Primitive;
|
---|
[1454] | 4 |
|
---|
| 5 | namespace HeuristicLab.Persistence.Default.Xml.Compact {
|
---|
[1566] | 6 |
|
---|
[1853] | 7 | public abstract class DoubleArray2XmlSerializerBase<T> : NumberArray2XmlSerializerBase<T> where T : class {
|
---|
[1566] | 8 |
|
---|
[1542] | 9 | protected override string FormatValue(object o) {
|
---|
[1958] | 10 | return Double2XmlSerializer.FormatG17((double)o);
|
---|
[1454] | 11 | }
|
---|
| 12 |
|
---|
[1542] | 13 | protected override object ParseValue(string o) {
|
---|
[1958] | 14 | return Double2XmlSerializer.ParseG17(o);
|
---|
[1454] | 15 | }
|
---|
| 16 | }
|
---|
| 17 |
|
---|
[1823] | 18 | public class Double1DArray2XmlSerializer : DoubleArray2XmlSerializerBase<double[]> { }
|
---|
[1454] | 19 |
|
---|
[1823] | 20 | public class Double2DArray2XmlSerializer : DoubleArray2XmlSerializerBase<double[,]> { }
|
---|
[1564] | 21 |
|
---|
[1823] | 22 | public class Double3DArray2XmlSerializer : DoubleArray2XmlSerializerBase<double[, ,]> { }
|
---|
[1566] | 23 |
|
---|
[1454] | 24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.