Added CSV parsing and export of Symbian-format Event logs that have had their tables...
[qwerkisync] / EventWriters / VMGWriter.h
diff --git a/EventWriters/VMGWriter.h b/EventWriters/VMGWriter.h
new file mode 100644 (file)
index 0000000..e53d50e
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2011, Jamie Thompson
+ *
+ * This program 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 Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; If not, see
+ * <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef EVENTWRITERS_VMGWRITER_H
+#define EVENTWRITERS_VMGWRITER_H
+
+#include "iEventWriter.h"
+
+class NumberToNameLookup;
+class Settings;
+
+namespace EventWriters
+{
+       class VMGWriter : public iEventWriter
+       {
+       public:
+               VMGWriter(const Settings &setting, const NumberToNameLookup &numberToNameLookup);
+
+               virtual void Write(EventTypes::iEvent &event);
+
+       protected:
+               const Settings &CurrentSettings() const { return m_Settings; }
+               const NumberToNameLookup &NameLookup() { return m_NumberToNameLookup; }
+
+       private:
+               const Settings &m_Settings;
+               const NumberToNameLookup &m_NumberToNameLookup;
+       };
+}
+
+#endif // EVENTWRITERS_VMGWRITER_H