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

#ifndef BASEPROVIDER_H_
#define BASEPROVIDER_H_

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

namespace inaf::oasbo::Providers {
Valerio Pastore's avatar
Valerio Pastore committed
class BaseProvider{
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 dest) = 0;
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 ~BaseProvider() = default;
};
Valerio Pastore's avatar
Valerio Pastore committed
#endif /* BASEPROVIDER_H_ */