|
1 /** |
|
2 * Relational pipes |
|
3 * Copyright © 2018 František Kučera (Frantovo.cz, GlobalCode.info) |
|
4 * |
|
5 * This program is free software: you can redistribute it and/or modify |
|
6 * it under the terms of the GNU General Public License as published by |
|
7 * the Free Software Foundation, either version 3 of the License, or |
|
8 * (at your option) any later version. |
|
9 * |
|
10 * This program is distributed in the hope that it will be useful, |
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 * GNU General Public License for more details. |
|
14 * |
|
15 * You should have received a copy of the GNU General Public License |
|
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
17 */ |
|
18 #pragma once |
|
19 |
|
20 #include <iostream> |
|
21 #include <string> |
|
22 #include <vector> |
|
23 #include <codecvt> |
|
24 |
|
25 #include "RelpipeXMLWriterException.h" |
|
26 |
|
27 using namespace std; |
|
28 |
|
29 namespace relpipe { |
|
30 namespace xmlwriter { |
|
31 |
|
32 class XMLWriter { |
|
33 private: |
|
34 std::ostream &output; |
|
35 |
|
36 public: |
|
37 |
|
38 XMLWriter(std::ostream& output) : output(output) { |
|
39 } |
|
40 |
|
41 virtual ~XMLWriter() { |
|
42 output.flush(); |
|
43 } |
|
44 |
|
45 void writeStartElement(const wstring& name, const vector<wstring>& attributes) { |
|
46 throw RelpipeXMLWriterException(L"not yet implemented"); |
|
47 } |
|
48 |
|
49 void writeEndElement() { |
|
50 throw RelpipeXMLWriterException(L"not yet implemented"); |
|
51 } |
|
52 |
|
53 void writeEmptyElement(const wstring& name, const vector<wstring>& attributes) { |
|
54 throw RelpipeXMLWriterException(L"not yet implemented"); |
|
55 } |
|
56 |
|
57 void writeTextElement(const wstring& name, const vector<wstring>& attributes, const wstring& text) { |
|
58 throw RelpipeXMLWriterException(L"not yet implemented"); |
|
59 } |
|
60 |
|
61 void writeCharacters(const wstring& text) { |
|
62 throw RelpipeXMLWriterException(L"not yet implemented"); |
|
63 } |
|
64 |
|
65 void writeComment(const wstring& text) { |
|
66 throw RelpipeXMLWriterException(L"not yet implemented"); |
|
67 } |
|
68 |
|
69 }; |
|
70 |
|
71 } |
|
72 } |