- class ExportXMLVisitor : public Entity::Visitor
- {
- XMLImporter& m_importer;
- public:
- ExportXMLVisitor(XMLImporter& importer) : m_importer(importer)
- {
- }
- void visit(const char* key, const char* value)
- {
- StaticElement element("epair");
- element.insertAttribute("key", key);
- element.insertAttribute("value", value);
- m_importer.pushElement(element);
- m_importer.popElement(element.name());
- }
- };
-
- const Entity& m_entity;
+class ExportXMLVisitor : public Entity::Visitor
+{
+XMLImporter& m_importer;
+public:
+ExportXMLVisitor( XMLImporter& importer ) : m_importer( importer ){
+}
+void visit( const char* key, const char* value ){
+ StaticElement element( "epair" );
+ element.insertAttribute( "key", key );
+ element.insertAttribute( "value", value );
+ m_importer.pushElement( element );
+ m_importer.popElement( element.name() );
+}
+};
+
+const Entity& m_entity;