diff options
author | deva <deva> | 2009-07-29 18:29:06 +0000 |
---|---|---|
committer | deva <deva> | 2009-07-29 18:29:06 +0000 |
commit | 377a698d42266ae6deb5fd574df1a7ba9e5c9770 (patch) | |
tree | ef8fb204849e934027c0c66ca3cfa1288a94bc84 /server | |
parent | 270d4794655cc0d8beca5c423488d8211605f6cb (diff) |
Comments in the TransactionParser headerfile.
Diffstat (limited to 'server')
-rw-r--r-- | server/src/transactionparser.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/server/src/transactionparser.h b/server/src/transactionparser.h index 5a3beb3..385e1a5 100644 --- a/server/src/transactionparser.h +++ b/server/src/transactionparser.h @@ -31,13 +31,32 @@ #include "tcpsocket.h" #include "transaction.h" +/** + * Transaction parser class. + * It parses all transactions amde to the server, and generates a Transaction + * structure from it. + * To activate the parser, the parser(char *buf, size_t size) buffer parser + * method in the SAXParser parent class is used. + * @see class SAXParser + */ class TransactionParser : public SAXParser { public: + /** + * Constructor. + * It does nothing but set the internal transaction variable really. + * @param transaction The Transaction to be filled with the parsed data. + */ TransactionParser(Transaction *transaction); - ~TransactionParser(); - + + /** + * Start tag callback method. + */ void startTag(std::string name, std::map< std::string, std::string> attributes); + /** + * Parser error callback method. Unlike its parent class, this method throws + * an exception. + */ void parseError(char *buf, size_t len, std::string error, int lineno); private: |