--- nono/vm/scsicmd.h 2026/04/29 17:04:59 1.1 +++ nono/vm/scsicmd.h 2026/04/29 17:05:03 1.1.1.2 @@ -9,7 +9,6 @@ #pragma once #include "scsi.h" -#include #include // READ/WRITE は多すぎるのでログを省略したい場合に定義。 @@ -211,8 +210,6 @@ class SCSICmdModeSense : public SCSICmd SCSI::XferPhase Command(std::vector& cmdseq) override; private: - using PageFunc = std::function; - // Page Control enum PC { Current = 0x00, // 現在値 @@ -227,10 +224,12 @@ class SCSICmdModeSense : public SCSICmd Success = 1, // 成功 }; + using PageFunc = ModePageResult (SCSICmdModeSense::*)(); + // 個別ページ処理 - int AddNotSupportedPage(); - int AddEmptyPage(); - int AddCachingPage(); + ModePageResult AddNotSupportedPage(); + ModePageResult AddEmptyPage(); + ModePageResult AddCachingPage(); // ページ処理関数のため uint pagecode {}; @@ -238,6 +237,8 @@ class SCSICmdModeSense : public SCSICmd // ログ用の文字列 std::string log {}; + + static const std::vector> Pagelist; }; //