Last change
on this file since 1652 was
1625,
checked in by epitzer, 16 years ago
|
Added PersistenceException used consistently for all error conditions in the persistence framework (#548)
|
File size:
795 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using HeuristicLab.Persistence.Core;
|
---|
3 | using HeuristicLab.Persistence.Default.Decomposers.Storable;
|
---|
4 |
|
---|
5 | namespace HeuristicLab.Persistence.Default.Xml.Compact {
|
---|
6 |
|
---|
7 | public abstract class IntArray2XmlFormatterBase<T> : NumberArray2XmlFormatterBase<T> where T : class{
|
---|
8 |
|
---|
9 | protected override string FormatValue(object o) {
|
---|
10 | return o.ToString();
|
---|
11 | }
|
---|
12 |
|
---|
13 | protected override object ParseValue(string o) {
|
---|
14 | return int.Parse(o);
|
---|
15 | }
|
---|
16 | }
|
---|
17 |
|
---|
18 | [EmptyStorableClass]
|
---|
19 | public class Int1DArray2XmlFormatter : IntArray2XmlFormatterBase<int[]> { }
|
---|
20 |
|
---|
21 | [EmptyStorableClass]
|
---|
22 | public class Int2DArray2XmlFormatter : IntArray2XmlFormatterBase<int[,]> { }
|
---|
23 |
|
---|
24 | [EmptyStorableClass]
|
---|
25 | public class Int3DArray2XmlFormatter : IntArray2XmlFormatterBase<int[, ,]> { }
|
---|
26 |
|
---|
27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.