/**
* Relational pipes
* Copyright © 2021 František Kučera (Frantovo.cz, GlobalCode.info)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <relpipe/writer/RelationalWriter.h>
#include "lib/ASN1ContentHandler.h"
#include "Configuration.h"
namespace relpipe {
namespace in {
namespace asn1 {
class RelpipeASN1ContentHandler : public lib::ASN1ContentHandler {
private:
wstring_convert < codecvt_utf8<wchar_t>> convertor; // ASN.1 parser works with UTF-8
std::shared_ptr<relpipe::writer::RelationalWriter> writer;
Configuration configuration;
public:
RelpipeASN1ContentHandler(std::shared_ptr<relpipe::writer::RelationalWriter> writer, Configuration configuration) : writer(writer), configuration(configuration) {
}
bool setOption(const std::string& uri, const std::string& value) override {
return false;
}
void writeStreamStart() override {
}
void writeStreamEnd() override {
}
void writeCollectionStart(const Header& header) override {
}
void writeCollectionEnd() override {
}
void writeBitString(const Header& header, std::vector<bool> value) override {
}
void writeBoolean(const Header& header, bool value) override {
}
void writeDateTime(const Header& header, DateTime value) override {
}
void writeInteger(const Header& header, Integer value) override {
}
void writeNull(const Header& header) override {
}
void writeOID(const Header& header, ObjectIdentifier value) override {
}
void writeOctetString(const Header& header, std::string value) override {
}
void writeTextString(const Header& header, std::string value) override {
}
void writeSpecific(const Header& header, std::string value) override {
}
};
}
}
}