diff mde/mergetag/DefaultData.d @ 79:61ea26abe4dd

Moved mde/mergetag/parse/parse(To/From) to mde/mergetag/(de)serialize. Implemented (de)serialization of structs.
author Diggory Hardy <diggory.hardy@gmail.com>
date Tue, 05 Aug 2008 11:51:51 +0100
parents 25cb7420dc91
children
line wrap: on
line diff
--- a/mde/mergetag/DefaultData.d	Tue Jul 29 18:14:53 2008 +0100
+++ b/mde/mergetag/DefaultData.d	Tue Aug 05 11:51:51 2008 +0100
@@ -21,23 +21,17 @@
 public import mde.mergetag.iface.IDataSection;
 import mde.mergetag.exception;
 
-import mde.mergetag.parse.parseTo : parseTo;
-import mde.mergetag.parse.parseFrom : parseFrom;
+import mde.mergetag.serialize;
 
 
 /*************************************************************************************************
  * Default DataSection class.
  * 
- * Currently this is only used for headers, and thus the list of supported types has been
+ * Supported types are given by dataTypes.
+ * 
+ * Currently DefaultData is only used for headers, and thus the list of supported types has been
  * reduced to just those used in headers. Load order is HIGH_LOW, i.e. existing entries aren't
  * overwritten.
- * 
- * It did supports most of the basic types supported by D (excluding cent/ucent and
- * imaginary/complex types) and array versions of each of these types, plus arrays of strings.
- *
- * Extending the class to support more types, even custom types, shouldn't be particularly
- * difficult provided mde.text.parseTo and mde.text.parseFrom are extended to support the new
- * types.
  *************************************************************************************************/
 /* The implementation now uses a fair bit of generic programming. Adjusting the types supported
 * should be as simple as adjusting the list dataTypes, and possibly implemting new conversions in