Last change
on this file since 1529 was
1454,
checked in by epitzer, 15 years ago
|
merge persistence exploration branch into trunk as HL plugin. (#506)
|
File size:
1.4 KB
|
Rev | Line | |
---|
[1454] | 1 |
|
---|
| 2 | namespace HeuristicLab.Persistence.Interfaces {
|
---|
| 3 |
|
---|
| 4 | public interface ISerializationToken {}
|
---|
| 5 |
|
---|
| 6 | public class BeginToken : ISerializationToken {
|
---|
| 7 | public readonly string Name;
|
---|
| 8 | public readonly int? TypeId;
|
---|
| 9 | public readonly int? Id;
|
---|
| 10 | public BeginToken(string name, int? typeId, int? id) {
|
---|
| 11 | Name = name;
|
---|
| 12 | TypeId = typeId;
|
---|
| 13 | Id = id;
|
---|
| 14 | }
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | public class EndToken : ISerializationToken {
|
---|
| 18 | public readonly string Name;
|
---|
| 19 | public readonly int? TypeId;
|
---|
| 20 | public readonly int? Id;
|
---|
| 21 | public EndToken(string name, int? typeId, int? id) {
|
---|
| 22 | Name = name;
|
---|
| 23 | TypeId = typeId;
|
---|
| 24 | Id = id;
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | public class PrimitiveToken : ISerializationToken {
|
---|
| 29 | public readonly string Name;
|
---|
| 30 | public readonly int? TypeId;
|
---|
| 31 | public readonly int? Id;
|
---|
| 32 | public readonly object SerialData;
|
---|
| 33 | public PrimitiveToken(string name, int? typeId, object serialData, int? id) {
|
---|
| 34 | Name = name;
|
---|
| 35 | TypeId = typeId;
|
---|
| 36 | SerialData = serialData;
|
---|
| 37 | Id = id;
|
---|
| 38 | }
|
---|
| 39 | }
|
---|
| 40 |
|
---|
| 41 | public class ReferenceToken : ISerializationToken {
|
---|
| 42 | public readonly string Name;
|
---|
| 43 | public readonly int Id;
|
---|
| 44 | public ReferenceToken(string name, int id) {
|
---|
| 45 | Name = name;
|
---|
| 46 | Id = id;
|
---|
| 47 | }
|
---|
| 48 | }
|
---|
| 49 |
|
---|
| 50 | public class NullReferenceToken : ISerializationToken {
|
---|
| 51 | public readonly string Name;
|
---|
| 52 | public NullReferenceToken(string name) {
|
---|
| 53 | Name = name;
|
---|
| 54 | }
|
---|
| 55 | }
|
---|
| 56 |
|
---|
| 57 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.