src/lib/ASN1ContentHandler.h
author František Kučera <franta-hg@frantovo.cz>
Sat, 12 Jun 2021 22:37:44 +0200
branchv_0
changeset 9 7a6abdd00ab5
parent 8 d37c1a5d09ce
child 14 02725d301010
permissions -rw-r--r--
partial implementation of DOMBuildingXMLContentHandler
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
/**
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
 * Relational pipes
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
 * Copyright © 2021 František Kučera (Frantovo.cz, GlobalCode.info)
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
 *
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
 * This program is free software: you can redistribute it and/or modify
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
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
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
 * the Free Software Foundation, version 3 of the License.
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
 *
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
 * GNU General Public License for more details.
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
 *
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    16
 */
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    17
#pragma once
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
4
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    19
#include <memory>
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    20
#include <vector>
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    21
1
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
namespace relpipe {
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
namespace in {
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
namespace asn1 {
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
namespace lib {
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
class ASN1ContentHandler {
4
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    28
public:
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    29
8
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    30
	enum class CollectionType {
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    31
		Sequence,
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    32
		Set
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    33
	};
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    34
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    35
	enum class StringType {
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    36
		OctetString,
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    37
		UTF8String,
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    38
		NumericString,
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    39
		PrintableString,
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    40
		T61String,
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    41
		VideotexString,
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    42
		IA5String,
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    43
		GraphicString,
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    44
		VisibleString,
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    45
		GeneralString,
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    46
		UniversalString,
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    47
		CharacterString,
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    48
		BMPString,
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    49
	};
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    50
4
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    51
	virtual ~ASN1ContentHandler() = default;
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    52
9
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    53
	virtual void writeStreamStart() = 0;
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    54
	virtual void writeStreamEnd() = 0;
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    55
8
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    56
	virtual void writeCollectionStart(CollectionType type) = 0;
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    57
	virtual void writeCollectionEnd() = 0;
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    58
	virtual void writeBoolean(bool value) = 0;
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    59
	virtual void writeNull() = 0;
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    60
	virtual void writeInteger(int64_t value) = 0;
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    61
	virtual void writeString(StringType type, std::string value) = 0;
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    62
	// virtual void writeOID(std::string value) = 0;
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    63
	// Object descriptor
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    64
	// virtual void writeReal(float value) = 0;
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    65
	// Enumerated
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    66
	// Embedded PVD
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    67
	// Relative OID
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    68
	// TIME
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    69
	// UTC time
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    70
	// Generalized time
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    71
	// Date
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    72
	// Time of day
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    73
	// Date-time
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    74
	// Duration
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    75
	// OID-IRI
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    76
	// Relative OID-IRI
4
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    77
1
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    78
};
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    79
4
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    80
class ASN1ContentHandlerProxy : public ASN1ContentHandler {
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    81
private:
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    82
	std::vector<std::shared_ptr<ASN1ContentHandler>> handlers;
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    83
public:
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    84
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    85
	void addHandler(std::shared_ptr<ASN1ContentHandler> handler) {
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    86
		handlers.push_back(handler);
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    87
	}
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    88
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    89
#define handler for (auto ___h : handlers) ___h
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    90
9
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    91
	void writeStreamStart() override {
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    92
		handler->writeStreamStart();
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    93
	}
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    94
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    95
	void writeStreamEnd() override {
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    96
		handler->writeStreamEnd();
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    97
	}
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    98
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    99
	void writeCollectionStart(CollectionType type) override {
8
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   100
		handler->writeCollectionStart(type);
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   101
	}
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   102
9
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   103
	void writeCollectionEnd() override {
8
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   104
		handler->writeCollectionEnd();
4
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
   105
	}
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
   106
9
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   107
	void writeBoolean(bool value) override {
8
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   108
		handler->writeBoolean(value);
4
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
   109
	}
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
   110
9
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   111
	void writeNull() override {
8
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   112
		handler->writeNull();
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   113
	}
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   114
9
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   115
	void writeInteger(int64_t value) override {
8
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   116
		handler->writeInteger(value);
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   117
	}
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   118
9
7a6abdd00ab5 partial implementation of DOMBuildingXMLContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   119
	void writeString(StringType type, std::string value) override {
8
d37c1a5d09ce bit more meaningful methods in ASN1ContentHandler
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   120
		handler->writeString(type, value);
4
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
   121
	}
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
   122
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
   123
#undef handler
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
   124
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
   125
};
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
   126
7230e1ea0b07 proxy handlers forwarding events to all subordinate handlers
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
   127
1
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   128
}
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   129
}
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   130
}
2179f13227f4 AbstractParser: AbstractParser, ASN1Reader, ASN1ContentHandler, SAXContentHandler, BasicASN1Reader, DOMBuildingSAXContentHandler, GenericASN1ContentHandler skeletons
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   131
}