src/OdsHandler.h
author František Kučera <franta-hg@frantovo.cz>
Sat, 30 Mar 2019 16:14:41 +0100
branchv_0
changeset 12 2dad3d5de1f2
parent 9 4c578ae8e68a
child 16 3ea2a5a25531
permissions -rw-r--r--
fix typo: Hadler → Handler
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
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
 * the Free Software Foundation, either version 3 of the License, or
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
 * (at your option) any later version.
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
 *
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
 * 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
    11
 * 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
    12
 * 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
    13
 * 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
    14
 *
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
 * 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
    16
 * 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
    17
 */
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
#pragma once
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
#include <string>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
#include <vector>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
#include <iostream>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
#include <sstream>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
#include <locale>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
#include <codecvt>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
#include <regex>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
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/typedefs.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/TypeId.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/RelationalReaderStringHandler.h>
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    31
#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
    32
#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
    33
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    34
namespace relpipe {
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    35
namespace out {
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    36
namespace ods {
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    37
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    38
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
    39
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
    40
12
2dad3d5de1f2 fix typo: Hadler → Handler
František Kučera <franta-hg@frantovo.cz>
parents: 9
diff changeset
    41
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
    42
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
    43
	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
    44
	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
    45
	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
    46
	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
    47
	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
    48
	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
    49
	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
    50
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    51
public:
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    52
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
    53
	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
    54
	}
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    55
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    56
	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
    57
		valueCount = 0;
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    58
		columnCount = 0;
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    59
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    60
		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
    61
			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
    62
				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
    63
				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
    64
				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
    65
				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
    66
				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
    67
			});
2
3e73d4ae8b49 first working version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    68
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
    69
			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
    70
			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
    71
		} 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
    72
			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
    73
			xmlWriter->writeEndElement();
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    74
		}
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    75
		relationCount++;
2
3e73d4ae8b49 first working version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    76
		// 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
    77
		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
    78
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    79
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    80
		columnCount = attributes.size();
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    81
		columnTypes.resize(columnCount);
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    82
		columnTypeCodes.resize(columnCount);
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    83
		columnNames.resize(columnCount);
2
3e73d4ae8b49 first working version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    84
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
    85
		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
    86
		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
    87
			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
    88
			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
    89
			columnTypeCodes[i] = attributes[i].getTypeName();
2
3e73d4ae8b49 first working version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    90
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
    91
			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
    92
			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
    93
			xmlWriter->writeEndElement();
0
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    94
		}
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
    95
		xmlWriter->writeEndElement();
2
3e73d4ae8b49 first working version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    96
0
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
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    99
	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
   100
		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
   101
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
   102
		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
   103
		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
   104
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   105
		valueCount++;
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   106
9
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   107
		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
   108
			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
   109
				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
   110
					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
   111
					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
   112
				});
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   113
				break;
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   114
			default:
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   115
				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
   116
				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
   117
				xmlWriter->writeEndElement();
4c578ae8e68a generate cells of a numeric type for our integers
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   118
		}
0
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
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   121
	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
   122
		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
   123
		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
   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();
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
   126
		xmlWriter->writeEndElement();
0
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
}
2f3c9e508827 project skeleton: cmake, netbeans, code from relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   134
}