mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-01 11:06:30 +03:00
35 lines
637 B
C++
35 lines
637 B
C++
#include "bus.hpp"
|
|
#include "config.hpp"
|
|
#include <eepp/system/process.hpp>
|
|
|
|
using namespace EE::System;
|
|
|
|
namespace ecode {
|
|
|
|
class BusProcess : public Bus {
|
|
public:
|
|
BusProcess( const Command& command );
|
|
|
|
virtual ~BusProcess();
|
|
|
|
bool start() override;
|
|
|
|
bool close() override;
|
|
|
|
void startAsyncRead( ReadFn readFn ) override;
|
|
|
|
size_t write( const char* buffer, const size_t& size ) override;
|
|
|
|
bool hasProcess() override { return true; }
|
|
|
|
Type type() const override { return Bus::Type::Process; }
|
|
|
|
const Command& getCommand() const { return mCommand; }
|
|
|
|
protected:
|
|
Command mCommand;
|
|
Process mProcess;
|
|
};
|
|
|
|
} // namespace ecode
|