1 Star 5 Fork 5

杰神 / iot-noob

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
instruction.hpp 724 Bytes
一键复制 编辑 原始数据 按行查看 历史
杰神 提交于 2021-11-22 15:31 . 一些小改动
#pragma once
#include "define.hpp"
#include "point.hpp"
//#include "device.hpp"
/* 定义太复杂,改用前缀方式
struct DeviceTarget
{
std::string name; //device name
std::string uuid; //element uuid
std::vector<std::string> tags; //element tags
};*/
class InstructionProfile
{
public:
std::string device; // "名称" "@tag" "#uuid"
std::string point;
double value;
std::string expr;
bool Parse(cJSON* json);
};
//避免未声明
class Device;
class Instruction
{
private:
InstructionProfile* profile;
std::list<Device*> targets;
PointProfile* point;
public:
Instruction(InstructionProfile* profile);
~Instruction();
private:
};
C++
1
https://gitee.com/god-jason/iot-noob.git
git@gitee.com:god-jason/iot-noob.git
god-jason
iot-noob
iot-noob
main

搜索帮助