Skip to content
Base_Archiver.h 724 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>
Valerio Pastore's avatar
Valerio Pastore committed
#include <PacketLib/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:

	template<typename Value, template<typename> typename Container>
	int write(PacketLib::BasePacket<Container,Value>  &);
	template<typename Value, template<typename> typename Container>
	int write(PacketLib::BasePacket<Container,Value>  &, std::string dest);


Valerio Pastore's avatar
Valerio Pastore committed
	virtual int open()=0;
	virtual int close()=0;
	virtual void setDest(std::string dest) = 0;
	virtual std::string getDest() = 0;
	virtual ~BaseArchiver() = default;

};
Valerio Pastore's avatar
Valerio Pastore committed
#endif /* BASEARCHIVER_H_ */