Skip to content
Base_Archiver.h 507 B
Newer Older
Valerio Pastore's avatar
Valerio Pastore committed


Valerio Pastore's avatar
Valerio Pastore committed
#pragma once
Valerio Pastore's avatar
Valerio Pastore committed
#include <string>
Valerio Pastore's avatar
Valerio Pastore committed
#include <Base_Packet.h>
Valerio Pastore's avatar
Valerio Pastore committed


namespace inaf::oasbo::Archivers{


Valerio Pastore's avatar
Valerio Pastore committed
class BaseArchiver{
protected:
	std::string dest;
public:
Valerio Pastore's avatar
Valerio Pastore committed
	virtual int write(PacketLib::BasePacket &) = 0;
	virtual int write(PacketLib::BasePacket &, std::string destination) = 0;
Valerio Pastore's avatar
Valerio Pastore committed
	virtual int open()=0;
	virtual int close()=0;
	virtual bool is_open()=0;
Valerio Pastore's avatar
Valerio Pastore committed
	virtual void setDest(std::string dest) = 0;
Valerio Pastore's avatar
Valerio Pastore committed
	virtual void updateDest()=0;
Valerio Pastore's avatar
Valerio Pastore committed
	virtual std::string getDest() = 0;
	virtual ~BaseArchiver() = default;

};