NodeObjInfo.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <tuple>
4 
5 #include "NodeIoInfo.hpp"
7 
8 namespace dai {
9 
11 struct NodeObjInfo {
12  int64_t id = -1;
13  std::string name;
14 
15  std::vector<std::uint8_t> properties;
16 
17  struct IoInfoKey {
18  std::size_t operator()(const std::tuple<std::string, std::string>& k) const {
19  return std::hash<std::string>()(std::get<0>(k) + std::get<1>(k));
20  }
21  };
22  std::unordered_map<std::tuple<std::string, std::string>, NodeIoInfo, IoInfoKey> ioInfo;
23 };
24 
25 DEPTHAI_SERIALIZE_EXT(NodeObjInfo, id, name, properties, ioInfo);
26 
27 } // namespace dai
dai::NodeObjInfo::ioInfo
std::unordered_map< std::tuple< std::string, std::string >, NodeIoInfo, IoInfoKey > ioInfo
Definition: NodeObjInfo.hpp:22
dai::DEPTHAI_SERIALIZE_EXT
DEPTHAI_SERIALIZE_EXT(CameraSensorConfig, width, height, minFps, maxFps, fov, type)
dai::NodeObjInfo
NodeObj information structure.
Definition: NodeObjInfo.hpp:11
dai::NodeObjInfo::IoInfoKey::operator()
std::size_t operator()(const std::tuple< std::string, std::string > &k) const
Definition: NodeObjInfo.hpp:18
dai::NodeIoInfo
NodeIo informations such as name, type, ...
Definition: NodeIoInfo.hpp:8
NodeIoInfo.hpp
Serialization.hpp
dai::NodeObjInfo::properties
std::vector< std::uint8_t > properties
Definition: NodeObjInfo.hpp:15
dai::NodeObjInfo::name
std::string name
Definition: NodeObjInfo.hpp:13
dai
Definition: CameraExposureOffset.hpp:6
dai::NodeObjInfo::IoInfoKey
Definition: NodeObjInfo.hpp:17


depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19