Mercurial > projects > mde
comparison mde/file/mergetag/MTTagWriter.d @ 175:1cbde9807293
Compile/link-time fixes for ldc & non-debug builds.
Moved WidgetManager to widget/
Reverted IChildWidget to an interface, not an abstract class.
Introduced a work-around for a compiler problem. May not cover all cases.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Fri, 11 Sep 2009 20:56:53 +0200 |
parents | e785e98d3b78 |
children |
comparison
equal
deleted
inserted
replaced
174:3d58adc17d20 | 175:1cbde9807293 |
---|---|
42 } | 42 } |
43 | 43 |
44 abstract class MTTagWriter | 44 abstract class MTTagWriter |
45 { | 45 { |
46 /// Set the current section | 46 /// Set the current section |
47 void sectionTag (char[] section); | 47 abstract void sectionTag (char[] section); |
48 | 48 |
49 /// Write a data tag | 49 /// Write a data tag |
50 void dataTag (char[] type, char[] id, char[] data); | 50 abstract void dataTag (char[] type, char[] id, char[] data); |
51 | 51 |
52 /// Change the section if necessary and write a data tag | 52 /// Change the section if necessary and write a data tag |
53 void writeTag (char[] section, char[] type, char[] id, char[] data) { | 53 void writeTag (char[] section, char[] type, char[] id, char[] data) { |
54 if (section != sec) | 54 if (section != sec) |
55 sectionTag (section); | 55 sectionTag (section); |
56 dataTag (type, id, data); | 56 dataTag (type, id, data); |
57 } | 57 } |
58 | 58 |
59 /// Close the file | 59 /// Close the file |
60 void close (); | 60 abstract void close (); |
61 | 61 |
62 protected: | 62 protected: |
63 char[] sec; // current section | 63 char[] sec; // current section |
64 } | 64 } |
65 | 65 |