Skip to content
Base_Archiver.h 508 B
Newer Older
Valerio Pastore's avatar
Valerio Pastore committed
/*
 *
 *  Created on: Mar 1, 2021
 *      Author: astrisw
 *
 */

#ifndef BASEARCHIVER_H_
#define BASEARCHIVER_H_

#include <string>
#include <Base_Packet.h>


class BaseArchiver{
protected:
	std::string dest;
public:
	virtual int write(BasePacket  &)=0;
	virtual int write(BasePacket  &, std::string dest)=0;
	virtual int open()=0;
	virtual int close()=0;
	virtual void setDest(std::string dest) = 0;
	virtual std::string getDest() = 0;
	virtual ~BaseArchiver() = default;

};

#endif /* BASEARCHIVER_H_ */