update cmd client
This commit is contained in:
@@ -5,23 +5,27 @@ namespace basalt::shared::deliver {
|
||||
|
||||
IDeliver::IDeliver() {}
|
||||
|
||||
IDeliver::~IDeliver() {}
|
||||
IDeliver::~IDeliver() {
|
||||
if (this->status != DeliverStatus::Stop) {
|
||||
this->shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
guid::Guid IDeliver::GetGuid() const {
|
||||
guid::Guid IDeliver::get_guid() const {
|
||||
throw std::logic_error("unimplemented function");
|
||||
}
|
||||
|
||||
void IDeliver::Startup(DeliverConfig &&config) {
|
||||
void IDeliver::startup(DeliverConfig &&config) {
|
||||
if (this->status != DeliverStatus::Ready) throw std::runtime_error("unexpected deliver status");
|
||||
this->config = std::move(config);
|
||||
this->status = DeliverStatus::Running;
|
||||
}
|
||||
|
||||
void IDeliver::Transmit() {
|
||||
void IDeliver::transmit() {
|
||||
if (this->status != DeliverStatus::Running) throw std::runtime_error("unexpected deliver status");
|
||||
}
|
||||
|
||||
void IDeliver::Shutdown() {
|
||||
void IDeliver::shutdown() {
|
||||
if (this->status != DeliverStatus::Running) throw std::runtime_error("unexpected deliver status");
|
||||
this->status = DeliverStatus::Stop;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user