SourceCode/Bond/Servo/ProcessJob.h
@@ -51,6 +51,7 @@ struct CarrierSlotInfo { std::string carrierId; // CARRIERID std::vector<uint8_t> slots; // SLOTID[] std::vector<void*> contexts; // Glass }; /// 简单资源视图接口:供 Validate() 查询(由设备端实现者在外部提供) @@ -154,6 +155,7 @@ // 访问器 const std::vector<CarrierSlotInfo>& carriers() const noexcept { return m_carriers; } CarrierSlotInfo* getCarrier(std::string& strId); // 判定是否“按载具/卡位”方式 bool usesCarrierSlots() const noexcept { return !m_carriers.empty(); }