Lugovtsov/project/hardware/Device.hpp

26 lines
303 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-01 16:18:53 +03:00
void command(std::string comm);
std::string query(std::string comm);
2022-10-31 14:07:36 +03:00
2022-11-10 15:26:32 +03:00
protected:
2022-10-31 14:07:36 +03:00
std::string name;
std::string root_path;
};