src/OdsHandler.h
author František Kučera <franta-hg@frantovo.cz>
Tue, 22 Oct 2019 21:58:20 +0200
branchv_0
changeset 16 3ea2a5a25531
parent 12 2dad3d5de1f2
permissions -rw-r--r--
fix license version: GNU GPLv3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
/**
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
 * Relational pipes
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
 * Copyright © 2018 František Kučera (Frantovo.cz, GlobalCode.info)
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
 *
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
 * This program is free software: you can redistribute it and/or modify
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
16
3ea2a5a25531 fix license version: GNU GPLv3
František Kučera <franta-hg@frantovo.cz>
parents: 12
diff changeset
     7
 * the Free Software Foundation, version 3 of the License.
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
 *
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
 * GNU General Public License for more details.
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
 *
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    16
 */
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    17
#pragma once
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
#include <string>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
#include <vector>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
#include <iostream>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
#include <sstream>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
#include <locale>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
#include <codecvt>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
#include <regex>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
#include <relpipe/reader/typedefs.h>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    28
#include <relpipe/reader/TypeId.h>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    29
#include <relpipe/reader/handlers/RelationalReaderStringHandler.h>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    30
#include <relpipe/reader/handlers/AttributeMetadata.h>
8
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    31
#include <relpipe/xmlwriter/XMLWriter.h>
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    32
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    33
namespace relpipe {
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    34
namespace out {
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    35
namespace ods {
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    36
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    37
using namespace relpipe::reader;
8
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    38
using namespace relpipe::xmlwriter;
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    39
12
2dad3d5de1f2 fix typo: Hadler → Handler
František Kučera <franta-hg@frantovo.cz>
parents: 9
diff changeset
    40
class OdsHandler : public handlers::RelationalReaderStringHandler {
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    41
private:
8
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    42
	shared_ptr<XMLWriter> xmlWriter;
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    43
	std::vector<TypeId> columnTypes;
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    44
	std::vector<string_t> columnTypeCodes;
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    45
	std::vector<string_t> columnNames;
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    46
	integer_t valueCount = 0;
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    47
	integer_t columnCount = 0;
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    48
	integer_t relationCount = 0;
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    49
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    50
public:
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    51
8
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    52
	OdsHandler(std::ostream& output) : xmlWriter(new XMLWriter(output)) {
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    53
	}
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    54
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    55
	void startRelation(string_t name, std::vector<handlers::AttributeMetadata> attributes) override {
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    56
		valueCount = 0;
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    57
		columnCount = 0;
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    58
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    59
		if (relationCount == 0) {
8
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    60
			xmlWriter->writeStartElement(L"office:document",{
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    61
				L"xmlns:office", L"urn:oasis:names:tc:opendocument:xmlns:office:1.0",
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    62
				L"xmlns:table", L"urn:oasis:names:tc:opendocument:xmlns:table:1.0",
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    63
				L"xmlns:text", L"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    64
				L"office:mimetype", L"application/vnd.oasis.opendocument.spreadsheet",
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    65
				L"office:version", L"1.2"
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    66
			});
2
3e73d4ae8b49 first working version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    67
8
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    68
			xmlWriter->writeStartElement(L"office:body");
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    69
			xmlWriter->writeStartElement(L"office:spreadsheet");
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    70
		} else {
8
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    71
			xmlWriter->writeEndElement();
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    72
			xmlWriter->writeEndElement();
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    73
		}
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    74
		relationCount++;
2
3e73d4ae8b49 first working version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    75
		// TODO: rename relations with same names
8
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    76
		xmlWriter->writeStartElement(L"table:table",{L"table:name", name});
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    77
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    78
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    79
		columnCount = attributes.size();
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    80
		columnTypes.resize(columnCount);
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    81
		columnTypeCodes.resize(columnCount);
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    82
		columnNames.resize(columnCount);
2
3e73d4ae8b49 first working version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    83
8
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    84
		xmlWriter->writeStartElement(L"table:table-row");
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    85
		for (int i = 0; i < attributes.size(); i++) {
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    86
			columnNames[i] = attributes[i].getAttributeName();
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    87
			columnTypes[i] = attributes[i].getTypeId();
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    88
			columnTypeCodes[i] = attributes[i].getTypeName();
2
3e73d4ae8b49 first working version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    89
8
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    90
			xmlWriter->writeStartElement(L"table:table-cell");
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    91
			xmlWriter->writeTextElement(L"text:p",{}, columnNames[i]);
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    92
			xmlWriter->writeEndElement();
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    93
		}
8
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    94
		xmlWriter->writeEndElement();
2
3e73d4ae8b49 first working version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    95
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    96
	}
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    97
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    98
	void attribute(const string_t& value) override {
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    99
		integer_t i = valueCount % columnCount;
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   100
8
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
   101
		if (i == 0 && valueCount) xmlWriter->writeEndElement();
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
   102
		if (i == 0) xmlWriter->writeStartElement(L"table:table-row");
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   103
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   104
		valueCount++;
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   105
9
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   106
		switch (columnTypes[i]) {
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   107
			case TypeId::INTEGER:
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   108
				xmlWriter->writeEmptyElement(L"table:table-cell",{
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   109
					L"office:value-type", L"float",
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   110
					L"office:value", value
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   111
				});
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   112
				break;
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   113
			default:
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   114
				xmlWriter->writeStartElement(L"table:table-cell");
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   115
				xmlWriter->writeTextElement(L"text:p",{}, value);
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   116
				xmlWriter->writeEndElement();
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   117
		}
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   118
	}
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   119
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   120
	void endOfPipe() {
8
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
   121
		if (valueCount) xmlWriter->writeEndElement();
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
   122
		if (relationCount) xmlWriter->writeEndElement();
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
   123
		xmlWriter->writeEndElement();
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
   124
		xmlWriter->writeEndElement();
0ba80e9b711f move common XML code to relpipe-lib-xmlwriter (a header-only library)
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
   125
		xmlWriter->writeEndElement();
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   126
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   127
	}
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   128
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   129
};
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   130
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   131
}
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   132
}
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   133
}