7#ifndef LOGICALACCESS_DATATRANSPORT_HPP
8#define LOGICALACCESS_DATATRANSPORT_HPP
32 return d_ReaderUnit.lock();
A data transport base class. It provide an abstraction layer between the host and readers.
Definition: datatransport.hpp:22
virtual ~DataTransport()=default
virtual bool connect()=0
Connect to the transport layer.
virtual void disconnect()=0
Disconnect from the transport layer.
virtual std::shared_ptr< ReaderUnit > getReaderUnit() const
Get the reader unit.
Definition: datatransport.hpp:30
virtual std::string getName() const =0
Get the data transport endpoint name.
virtual ByteVector getLastCommand()
Get the last command.
Definition: datatransport.hpp:85
virtual ByteVector receive(long int timeout)=0
virtual ByteVector getLastResult()
Get the last command result.
Definition: datatransport.hpp:94
std::weak_ptr< ReaderUnit > d_ReaderUnit
The reader unit.
Definition: datatransport.hpp:107
virtual void setReaderUnit(std::weak_ptr< ReaderUnit > unit)
Set the reader unit.
Definition: datatransport.hpp:39
virtual void send(const ByteVector &data)=0
ByteVector d_lastResult
The last result.
Definition: datatransport.hpp:112
virtual std::string getTransportType() const =0
Get the transport type of this instance.
ByteVector d_lastCommand
The last command.
Definition: datatransport.hpp:117
virtual bool isConnected()=0
A Xml Serializable base class. Add Xml serialization to a class.
Definition: xmlserializable.hpp:54
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80