diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-06-07 01:40:32 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-12-02 04:05:15 +0300 |
commit | 3aed59276c2b7275603f6da18377b77718948667 (patch) | |
tree | 86816d82ab02b6e4761175d599f5749490706792 /src/p18/client.h | |
parent | d86ca1e596b094cba101e0e3e6c8cdb71f8116e9 (diff) |
wipp17
Diffstat (limited to 'src/p18/client.h')
-rw-r--r-- | src/p18/client.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/p18/client.h b/src/p18/client.h deleted file mode 100644 index 8307bbb..0000000 --- a/src/p18/client.h +++ /dev/null @@ -1,31 +0,0 @@ -// SPDX-License-Identifier: BSD-3-Clause - -#ifndef INVERTER_TOOLS_P18_CLIENT_H_ -#define INVERTER_TOOLS_P18_CLIENT_H_ - -#include "../voltronic/device.h" -#include "types.h" -#include "response.h" - -#include <memory> -#include <vector> -#include <string> - - -namespace p18 { - -class Client { -private: - std::shared_ptr<voltronic::Device> device_; - static std::string packArguments(p18::CommandType commandType, std::vector<std::string>& arguments); - -public: - void setDevice(std::shared_ptr<voltronic::Device> device); - std::shared_ptr<response_type::BaseResponse> execute(p18::CommandType commandType, std::vector<std::string>& arguments); - std::pair<std::shared_ptr<char>, size_t> runOnDevice(std::string& raw); -}; - -} - - -#endif //INVERTER_TOOLS_P18_CLIENT_H_ |