include/DataTypeReader.h
author František Kučera <franta-hg@frantovo.cz>
Sat, 14 Jul 2018 23:24:22 +0200
branchv_0
changeset 7 489e52138771
parent 5 e004585ef84d
permissions -rw-r--r--
add data type and catalog classes from the prototype

#pragma once

#include "DataTypeReaderBase.h"

namespace relpipe {
namespace reader {

template<typename T> class DataTypeReader : public DataTypeReaderBase {
public:

	DataTypeReader(const integer_t typeId, const string_t typeCode) : DataTypeReaderBase(typeId, typeCode) {
	}

	virtual ~DataTypeReader() {
	};

	virtual T readValue(std::istream& input) = 0;

	virtual string_t readString(std::istream &input);

	virtual string_t toString(const T& value) = 0;

};

}
}