summaryrefslogtreecommitdiff
path: root/src/xmlparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlparser.h')
-rw-r--r--src/xmlparser.h33
1 files changed, 16 insertions, 17 deletions
diff --git a/src/xmlparser.h b/src/xmlparser.h
index 92e0529..6247497 100644
--- a/src/xmlparser.h
+++ b/src/xmlparser.h
@@ -3,7 +3,7 @@
/***************************************************************************
* xmlparser.h
*
- * Wed Mar 21 09:15:51 CET 2012
+ * Wed Mar 21 09:15:51 CET 2012
* Copyright 2012 Jonas Suhr Christensen
* jsc@umbraculum.org
****************************************************************************/
@@ -25,8 +25,7 @@
* along with Munia; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#ifndef __MUNIA_XMLPARSER_H__
-#define __MUNIA_XMLPARSER_H__
+#pragma once
#include "task.h"
#include "saxparser.h"
@@ -34,21 +33,21 @@
#include <stack>
#include "tasktree.h"
-class XmlParser : public SAXParser {
+class XmlParser
+ : public SAXParser
+{
public:
- XmlParser(TaskTree *tree);
- ~XmlParser();
-
- void startTag(std::string name, attributes_t &attr);
- void endTag(std::string name);
- void characterData(const std::string &data);
+ XmlParser(TaskTree *tree);
+ ~XmlParser();
+
+ void startTag(std::string name, attributes_t &attr);
+ void endTag(std::string name);
+ void characterData(const std::string &data);
private:
- std::stack<taskid_t> parents;
- std::string cdata;
- node_t *node;
- TaskTree *tree;
- std::string attr_name;
+ std::stack<taskid_t> parents;
+ std::string cdata;
+ node_t *node;
+ TaskTree *tree;
+ std::string attr_name;
};
-
-#endif/*__MUNIA_XMLPARSER_H__*/