17 lines
425 B
C++
17 lines
425 B
C++
#ifndef AIRPORT_NETWORK_INTERFACE_H
|
|
#define AIRPORT_NETWORK_INTERFACE_H
|
|
|
|
#include <string>
|
|
#include <memory>
|
|
#include "types/VehicleCommand.h"
|
|
|
|
class NetworkInterface {
|
|
public:
|
|
virtual ~NetworkInterface() = default;
|
|
virtual bool connect() = 0;
|
|
virtual void disconnect() = 0;
|
|
virtual bool send(const VehicleCommand& cmd) = 0;
|
|
virtual bool isConnected() const = 0;
|
|
};
|
|
|
|
#endif // AIRPORT_NETWORK_INTERFACE_H
|