|
1 /** |
|
2 * Relational pipes |
|
3 * Copyright © 2021 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, version 3 of the License. |
|
8 * |
|
9 * This program is distributed in the hope that it will be useful, |
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 * GNU General Public License for more details. |
|
13 * |
|
14 * You should have received a copy of the GNU General Public License |
|
15 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
16 */ |
|
17 #pragma once |
|
18 |
|
19 #include <relpipe/writer/RelationalWriter.h> |
|
20 #include "lib/ASN1ContentHandler.h" |
|
21 #include "Configuration.h" |
|
22 |
|
23 namespace relpipe { |
|
24 namespace in { |
|
25 namespace asn1 { |
|
26 |
|
27 class RelpipeASN1ContentHandler : public lib::ASN1ContentHandler { |
|
28 private: |
|
29 std::shared_ptr<relpipe::writer::RelationalWriter> writer; |
|
30 Configuration configuration; |
|
31 |
|
32 public: |
|
33 |
|
34 RelpipeASN1ContentHandler(std::shared_ptr<relpipe::writer::RelationalWriter> writer, Configuration configuration) : writer(writer), configuration(configuration) { |
|
35 } |
|
36 |
|
37 bool setOption(const std::string& uri, const std::string& value) override { |
|
38 return false; |
|
39 } |
|
40 |
|
41 void writeStreamStart() override { |
|
42 } |
|
43 |
|
44 void writeStreamEnd() override { |
|
45 } |
|
46 |
|
47 void writeCollectionStart(const Header& header) override { |
|
48 } |
|
49 |
|
50 void writeCollectionEnd() override { |
|
51 } |
|
52 |
|
53 void writeBitString(const Header& header, std::vector<bool> value) override { |
|
54 } |
|
55 |
|
56 void writeBoolean(const Header& header, bool value) override { |
|
57 } |
|
58 |
|
59 void writeDateTime(const Header& header, DateTime value) override { |
|
60 } |
|
61 |
|
62 void writeInteger(const Header& header, Integer value) override { |
|
63 } |
|
64 |
|
65 void writeNull(const Header& header) override { |
|
66 } |
|
67 |
|
68 void writeOID(const Header& header, ObjectIdentifier value) override { |
|
69 } |
|
70 |
|
71 void writeOctetString(const Header& header, std::string value) override { |
|
72 } |
|
73 |
|
74 void writeTextString(const Header& header, std::string value) override { |
|
75 } |
|
76 |
|
77 void writeSpecific(const Header& header, std::string value) override { |
|
78 } |
|
79 |
|
80 |
|
81 }; |
|
82 |
|
83 } |
|
84 } |
|
85 } |