Lugovtsov/project/hardware/legacy/Device.hpp

23 lines
275 B
C++
Raw Normal View History

2022-11-01 16:18:53 +03:00
#pragma once
2022-10-31 14:07:36 +03:00
#include<fstream>
#include<iostream>
#include<string>
2022-11-01 16:18:53 +03:00
class Device
{
2022-10-31 14:07:36 +03:00
public:
2022-11-01 16:18:53 +03:00
Device(std::string path_name);
2022-10-31 14:07:36 +03:00
2022-11-01 16:18:53 +03:00
std::string get_name()
{
return name;
2022-10-31 14:07:36 +03:00
}
2022-11-28 18:31:51 +03:00
void command(std::string const &comm) const;
std::string query(std::string const &comm) const;
2022-10-31 14:07:36 +03:00
};