00001 #ifndef SDXCSVSTREAMWRITER_H
00002 #define SDXCSVSTREAMWRITER_H
00003
00004 #include "SDXStreamWriter.h"
00005
00006 namespace SDX {
00007 namespace Formats {
00011 class CsvStreamWriter : public SDX::Helpers::StreamWriter {
00012 public:
00016 CsvStreamWriter();
00017
00018 void startDocument();
00019 void startNode(std::string nodeName);
00020 void writeAttribute(std::string name, std::string value);
00021 void endNode();
00022 private:
00023 int m_nodeStackSize;
00024 bool m_rowHasChildren;
00025 std::string m_lastUnnamedAttribute;
00026 };
00027 }
00028 }
00029
00030 #endif