Program Listing for File NodeObjInfo.hpp
↰ Return to documentation for file (include/depthai/pipeline/NodeObjInfo.hpp)
#pragma once
#include <tuple>
#include "NodeIoInfo.hpp"
#include "depthai/log/LogLevel.hpp"
#include "depthai/utility/Serialization.hpp"
namespace dai {
struct NodeObjInfo {
int64_t id = -1;
int64_t parentId = -1;
std::string name;
std::string alias;
std::vector<std::uint8_t> properties;
LogLevel logLevel = LogLevel::WARN;
struct IoInfoKey {
std::size_t operator()(const std::tuple<std::string, std::string>& k) const {
return std::hash<std::string>()(std::get<0>(k) + std::get<1>(k));
}
};
std::unordered_map<std::tuple<std::string, std::string>, NodeIoInfo, IoInfoKey> ioInfo;
};
DEPTHAI_SERIALIZE_EXT(NodeObjInfo, id, parentId, name, alias, properties, logLevel, ioInfo);
} // namespace dai