#pragma once
#include <iostream>
#include "typedefs.h"
#include "TypeId.h"
#include "handlers/RelationalReaderBaseHandler.h"
#include "handlers/RelationalReaderStringHandler.h"
#include "handlers/RelationalReaderValueHandler.h"
namespace relpipe {
namespace reader {
class RelationalReader {
public:
virtual ~RelationalReader() = default;
/**
* @param typeId numeric type id as defined in Specification
* @return string code of given type
* @throws RelpipeReaderException on unsupported typeId
*/
virtual string_t toTypeCode(const TypeId typeId) = 0;
virtual void addHandler(handlers::RelationalReaderStringHadler* handler) = 0;
virtual void addHandler(handlers::RelationalReaderValueHadler* handler) = 0;
virtual void process() = 0;
};
}
}