|
Revision 592, 0.7 kB
(checked in by BCS, 3 years ago)
|
spelling
|
| Line | |
|---|
| 1 |
module Serialize; |
|---|
| 2 |
|
|---|
| 3 |
import utill; |
|---|
| 4 |
import XML; |
|---|
| 5 |
|
|---|
| 6 |
public import Interface; |
|---|
| 7 |
public import Marshal; |
|---|
| 8 |
public import Demarshal; |
|---|
| 9 |
public import Common; |
|---|
| 10 |
|
|---|
| 11 |
/** |
|---|
| 12 |
* Mixin template that attempt to "do the right" thing for general cases |
|---|
| 13 |
* |
|---|
| 14 |
* Authors: Benjamin |
|---|
| 15 |
*/ |
|---|
| 16 |
template Serializable() |
|---|
| 17 |
{ |
|---|
| 18 |
const bool CyclicType = false; |
|---|
| 19 |
|
|---|
| 20 |
mixin MarshalMixin!(); |
|---|
| 21 |
mixin DemarshalMixin!(); |
|---|
| 22 |
mixin CommonMixin!(); |
|---|
| 23 |
} |
|---|
| 24 |
|
|---|
| 25 |
/** |
|---|
| 26 |
* Mixin template that attempt to "do the right" thing for general cases |
|---|
| 27 |
* Handels repeated instances of the same object (hard links) |
|---|
| 28 |
* |
|---|
| 29 |
* Authors: Benjamin |
|---|
| 30 |
*/ |
|---|
| 31 |
template SerializableRecurring() |
|---|
| 32 |
{ |
|---|
| 33 |
const bool CyclicType = true; |
|---|
| 34 |
|
|---|
| 35 |
mixin MarshalMixin!(); |
|---|
| 36 |
mixin DemarshalMixin!(); |
|---|
| 37 |
mixin CommonMixin!(); |
|---|
| 38 |
} |
|---|