summaryrefslogtreecommitdiff
path: root/src/lib/C602Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/C602Parser.cpp')
-rw-r--r--src/lib/C602Parser.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/lib/C602Parser.cpp b/src/lib/C602Parser.cpp
new file mode 100644
index 0000000..a06078f
--- /dev/null
+++ b/src/lib/C602Parser.cpp
@@ -0,0 +1,30 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/*
+ * This file is part of the libsw602 project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include "C602Parser.h"
+
+namespace libsw602
+{
+
+C602Parser::C602Parser(boost::shared_ptr<librevenge::RVNGInputStream> input)
+ : SW602SpreadsheetParser(input)
+ , m_header()
+{
+}
+
+void C602Parser::parse(librevenge::RVNGSpreadsheetInterface * /*documentInterface*/)
+{
+ m_header.construct(*getInput());
+ if (!m_header.isValid())
+ throw ParseException();
+}
+
+}
+
+/* vim:set shiftwidth=2 softtabstop=2 expandtab: */