summaryrefslogtreecommitdiff
path: root/src/xmlcomposer.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-06-07 22:52:02 +0000
committerStef Walter <stef@memberwebs.com>2005-06-07 22:52:02 +0000
commit9066b1cee6b62d90144c8685950a9720a0765290 (patch)
tree5c64423f3bf36658fa55a5628eecaa9cff48b71a /src/xmlcomposer.h
parent8803295019b0fe0b56c08899adf3f8231effb0f5 (diff)
Add <link> tag for hyperlink fields.
Diffstat (limited to 'src/xmlcomposer.h')
-rw-r--r--src/xmlcomposer.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/xmlcomposer.h b/src/xmlcomposer.h
index 357cb58..26839d7 100644
--- a/src/xmlcomposer.h
+++ b/src/xmlcomposer.h
@@ -186,6 +186,13 @@ protected:
DOM::Element element;
END_DESTINATION
+ // Copies character data to a string
+ DESTINATION(String)
+ String(string& s) : str(s) {}
+ CHARDATA
+ DATA_PORTION
+ string& str;
+ END_DESTINATION
// Base class for analysers with some helper functions
class BaseAnalyser :
@@ -294,6 +301,13 @@ protected:
CONTROLWORD
END_ANALYSER
+ // For parsing fields
+ ANALYSER(Field)
+ CONTROLWORD
+ DATA_PORTION
+ string fieldCode;
+ END_ANALYSER
+
// The main root analyser
ANALYSER(Root)
INITIALIZE