wavelength 1.0.0
Loading...
Searching...
No Matches
BankManager Class Reference

Owner of every bank open in the editor. More...

#include <BankManager.h>

Public Member Functions

 BankManager ()
 Create a manager with no bank.
 ~BankManager ()
 Delete every bank.
int RetireBank (int bankID)
 Delete a bank.
int NewBank (const String &filename, unsigned short bankID)
 Open a bank, loading it when a file is given.
BankWin * GetBankWin (int bankID)
 Look up a bank.

Detailed Description

Owner of every bank open in the editor.

The class has no RTTI, and its name comes from its source file. The object is the map of banks. The control has the one instance.

Constructor & Destructor Documentation

◆ BankManager()

BankManager::BankManager ( )

Create a manager with no bank.

Ghidra address:
0x1001c455

◆ ~BankManager()

BankManager::~BankManager ( )

Delete every bank.

Ghidra address:
0x1001c4a0

Member Function Documentation

◆ RetireBank()

int BankManager::RetireBank ( int bankID)

Delete a bank.

Parameters
bankIDThe identifier of the BankWin.
Returns
Zero.
Ghidra address:
0x1001d909

◆ NewBank()

int BankManager::NewBank ( const String & filename,
unsigned short bankID )

Open a bank, loading it when a file is given.

A file already open is refused with a notice.

Parameters
filenameThe path of the bank file, or an empty string for a new bank.
bankIDThe bank identifier a bank select requests.
Returns
The identifier of the BankWin, or -1 when the file is already open.
Ghidra address:
0x1001d928

◆ GetBankWin()

BankWin * BankManager::GetBankWin ( int bankID)

Look up a bank.

Parameters
bankIDThe identifier of the BankWin.
Returns
The bank.
Ghidra address:
0x1001f3bd

The documentation for this class was generated from the following file: