mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
搭建PVB架构,实现前端的基础布局、菜单、表格、图示等功能
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
class CommEntity;
|
||||
|
||||
class DeviceEntity
|
||||
class Device
|
||||
{
|
||||
public:
|
||||
int deviceId = -1;
|
||||
@@ -38,17 +38,19 @@ public:
|
||||
|
||||
// 启动通讯
|
||||
int startComm();
|
||||
|
||||
static std::shared_ptr<Device> create(DataFields& fields);
|
||||
};
|
||||
|
||||
|
||||
class Device
|
||||
{
|
||||
public:
|
||||
static void add(DataFields& fields);
|
||||
|
||||
static std::vector<std::shared_ptr<DeviceEntity>> getDeviceByType(int type);
|
||||
|
||||
public:
|
||||
static std::map<int, std::shared_ptr<DeviceEntity>> mapDevices;
|
||||
};
|
||||
//class Device
|
||||
//{
|
||||
//public:
|
||||
// static void add(DataFields& fields);
|
||||
//
|
||||
// static std::vector<std::shared_ptr<DeviceEntity>> getDeviceByType(int type);
|
||||
//
|
||||
//public:
|
||||
// static std::map<int, std::shared_ptr<DeviceEntity>> mapDevices;
|
||||
//};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user