Newer
Older
/*
*
* Created on: Mar 1, 2021
* Author: astrisw
*
*/
#ifndef BASEPROVIDER_H_
#define BASEPROVIDER_H_
#include <string>
#include <Base_Packet.h>
class BaseProvider{
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);
virtual int open()=0;
virtual int close()=0;
virtual void setDest(std::string dest) = 0;
virtual std::string getDest() = 0;
virtual ~BaseProvider() = default;
};