mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2529 b08762b0-b915-fc4b-9d8c-17b2551a87ff
120 lines
3.7 KiB
C++
120 lines
3.7 KiB
C++
#pragma once
|
|
|
|
// 書類クラスの宣言
|
|
|
|
#include <apptype.h>
|
|
#include <twl/types.h>
|
|
#include <twl/os/common/format_rom.h>
|
|
#include <apptype.h>
|
|
#include "common.h"
|
|
#include "srl.h"
|
|
|
|
namespace MasterEditorTWL
|
|
{
|
|
// -------------------------------------------------------------------
|
|
// Type : enum class
|
|
// Name : ECDeliverableResult
|
|
//
|
|
// Description : RCDeliverable クラスの操作でのエラーを宣言
|
|
// -------------------------------------------------------------------
|
|
enum class ECDeliverableResult
|
|
{
|
|
NOERROR = 0,
|
|
// エラー特定しなくても原因がわかるときの返り値
|
|
// (エラーが生じる可能性のある箇所が1つ etc.)
|
|
ERROR,
|
|
// ファイル操作でのエラー
|
|
ERROR_FILE_OPEN,
|
|
ERROR_FILE_READ,
|
|
ERROR_FILE_WRITE,
|
|
};
|
|
|
|
// -------------------------------------------------------------------
|
|
// Type : ref class
|
|
// Name : RCDeliverable
|
|
//
|
|
// Description : 提出書類クラス
|
|
//
|
|
// Role : 提出情報の入出力
|
|
// -------------------------------------------------------------------
|
|
ref class RCDeliverable
|
|
{
|
|
// field
|
|
public:
|
|
// 提出情報
|
|
property System::String ^hProductName; // 製品名
|
|
property System::String ^hProductCode1; // 製品コード
|
|
property System::String ^hProductCode2; // 製品コード
|
|
property System::Int32 ^hReleaseYear; // 発売予定日
|
|
property System::Int32 ^hReleaseMonth;
|
|
property System::Int32 ^hReleaseDay;
|
|
property System::Int32 ^hSubmitYear; // 提出日
|
|
property System::Int32 ^hSubmitMonth;
|
|
property System::Int32 ^hSubmitDay;
|
|
property System::String ^hSubmitWay; // 提出方法
|
|
property System::String ^hUsage; // 用途
|
|
property System::String ^hUsageOther; // その他の用途
|
|
property System::Int32 ^hSubmitVersion; // 提出バージョン
|
|
property System::String ^hSDK; // SDKバージョン
|
|
property System::Boolean ^hReleaseForeign; // 海外版の予定
|
|
property System::String ^hProductNameForeign;
|
|
property System::String ^hProductCode1Foreign;
|
|
property System::String ^hProductCode2Foreign;
|
|
|
|
// 会社情報
|
|
|
|
// 担当者(1人目)
|
|
property System::String ^hCompany1; // 会社名
|
|
property System::String ^hPerson1; // 名前
|
|
property System::String ^hFurigana1; // ふりがな
|
|
property System::String ^hTel1; // 電話番号
|
|
property System::String ^hFax1; // FAX番号
|
|
property System::String ^hMail1; // メアド
|
|
property System::String ^hNTSC1; // NTSC User ID
|
|
// 担当者(2人目)
|
|
property System::String ^hCompany2;
|
|
property System::String ^hPerson2;
|
|
property System::String ^hFurigana2;
|
|
property System::String ^hTel2;
|
|
property System::String ^hFax2;
|
|
property System::String ^hMail2;
|
|
property System::String ^hNTSC2;
|
|
|
|
// 備考
|
|
property System::String ^hCaption;
|
|
|
|
// ROMヘッダ不記載のROMバイナリ(SRL)固有情報
|
|
property System::String ^hBackupMemory; // バックアップメモリの種別
|
|
|
|
// SRL情報の一部を文字列で持っておく
|
|
property System::String ^hCERO;
|
|
property System::String ^hESRB;
|
|
property System::String ^hUSK;
|
|
property System::String ^hPEGI;
|
|
property System::String ^hPEGI_PRT;
|
|
property System::String ^hPEGI_BBFC;
|
|
property System::String ^hOFLC;
|
|
property System::String ^hAppTypeOther; // 特記事項
|
|
|
|
// constructor and destructor
|
|
public:
|
|
|
|
// method
|
|
public:
|
|
|
|
//
|
|
// 書類出力
|
|
//
|
|
// @arg [out] 出力ファイル名
|
|
// @arg [in] ROMバイナリ(SRL)固有情報
|
|
// @arg [in] ファイル全体のCRC
|
|
// @arg [in] SRLのファイル名(書類に記述するために使用)
|
|
// @arg [in] 英語フラグ
|
|
//
|
|
ECDeliverableResult writeSpreadsheet(
|
|
System::String ^hFilename, RCSrl ^hSrl, System::UInt16 ^hCRC, System::String ^hSrlFilename, System::Boolean english );
|
|
|
|
}; // end of ref class RCDeliverable
|
|
|
|
} // end of namespace MasterEditorTWL
|