LAPTOP-SNT8I5JK\Boounion
2025-08-19 0569c29b19e4d23f055845a167c706f11590fa2a
SourceCode/Bond/Servo/ProcessJob.h
@@ -85,6 +85,7 @@
    class CProcessJob {
    public:
        // —— 构造 / 基本设置 ——
        CProcessJob();
        explicit CProcessJob(std::string pjId);
        const std::string& id() const noexcept { return m_pjId; }
@@ -157,6 +158,15 @@
        bool usesCarrierSlots() const noexcept { return !m_carriers.empty(); }
    public:
        // ====== 版本头常量(建议保留,便于兼容)======
        static constexpr uint32_t PJ_FILE_MAGIC = 0x504A4A31; // "PJJ1"
        static constexpr uint16_t PJ_FILE_VERSION = 0x0001;
        // ====== 流式序列化接口 ======
        void serialize(std::ostream& os) const;
        static bool deserialize(std::istream& is, CProcessJob& out, std::string* err = nullptr);
    private:
        // 内部状态转移帮助
        void markQueued();