36 lines
759 B
C++
36 lines
759 B
C++
#pragma once
|
|
|
|
#include "myBase.h"
|
|
#include "mySystem.h"
|
|
|
|
|
|
typedef struct
|
|
{
|
|
std::string saddr;
|
|
std::string desc;
|
|
std::string link;
|
|
uint16_t inf;
|
|
uint8_t type;
|
|
std::vector<void *> vec_p_data;
|
|
std::vector<void *> vec_p_last_data;
|
|
std::vector<void *> vec_p_default_data;
|
|
}stru_cfg_base;
|
|
|
|
|
|
|
|
typedef struct
|
|
{
|
|
std::vector<stru_cfg_base> vec_st; // 遥信
|
|
std::vector<stru_cfg_base> vec_mx; // 遥测
|
|
std::vector<stru_cfg_base> vec_co; // 遥控
|
|
std::vector<stru_cfg_base> vec_dd; // 电度
|
|
|
|
std::vector<stru_cfg_base> vec_ao; // 参数
|
|
std::vector<stru_cfg_base> vec_param; // 定值
|
|
}stru_iec_cfg;
|
|
|
|
|
|
stru_iec_cfg *iec_cfg_ptr_get(void);
|
|
|
|
int iec_cfg_parse(const std::string &path);
|