diff options
Diffstat (limited to 'server/parser/xmlparser.h')
| -rw-r--r-- | server/parser/xmlparser.h | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/server/parser/xmlparser.h b/server/parser/xmlparser.h index 9d5bb5b..2b11d00 100644 --- a/server/parser/xmlparser.h +++ b/server/parser/xmlparser.h @@ -3,8 +3,6 @@ * * David Sommerseth <davids@redhat.com> * - * Parses summary.xml reports from rteval into a standardised XML format - * which is useful when putting data into a database. * * This application is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -16,17 +14,29 @@ * General Public License for more details. */ +/** + * @file xmlparser.h + * @author David Sommerseth <davids@redhat.com> + * @date Wed Oct 7 17:27:39 2009 + * + * @brief Parses summary.xml reports from rteval into a standardised XML format + * which is useful when putting data into a database. + * + */ + + #ifndef _XMLPARSER_H #define _XMLPARSER_H -#define XSLTFILE "/usr/share/rteval/xmlparser.xsl" - +/** + * Parameters needed by the the xmlparser.xsl XSLT template. + */ typedef struct { - const char *table; - unsigned int submid; - unsigned int syskey; - const char *report_filename; - unsigned int rterid; + const char *table; /**< Which table to parse data for. Required*/ + unsigned int submid; /**< Submission ID, needed by the 'rtevalruns' table */ + unsigned int syskey; /**< System key (referencing systems.syskey) */ + const char *report_filename; /**< Filename to the saved report (after being parsed) */ + unsigned int rterid; /**< References rtevalruns.rterid */ } parseParams; xmlDoc *parseToSQLdata(xsltStylesheet *xslt, xmlDoc *indata_d, parseParams *params); |
