18class EventDistributor;
19class CommandController;
22class GlobalCommandController;
28class InputEventGenerator;
35class TclCallbackMessages;
38class CommandLineParser;
43class TestMachineCommand;
44class CreateMachineCommand;
45class DeleteMachineCommand;
46class ListMachinesCommand;
47class ActivateMachineCommand;
48class StoreMachineCommand;
49class RestoreMachineCommand;
50class GetClipboardCommand;
51class SetClipboardCommand;
55class SoftwareInfoTopic;
98 [[nodiscard]]
static std::vector<std::string>
getHwConfigs(std::string_view type);
111 using Board = std::shared_ptr<MSXMotherBoard>;
116 void createMachineSetting();
117 void switchBoard(
Board newBoard);
118 void deleteBoard(
Board board);
119 [[nodiscard]]
Board getMachine(std::string_view machineID)
const;
120 [[nodiscard]]
auto getMachineIDs()
const {
122 [](
auto& b) -> std::string_view {
return b->getMachineID(); });
126 void update(
const Setting&
setting)
noexcept override;
129 int signalEvent(
const Event& event)
override;
135 [[nodiscard]]
bool doOneIteration();
145 std::unique_ptr<RTScheduler> rtScheduler;
146 std::unique_ptr<EventDistributor> eventDistributor;
147 std::unique_ptr<GlobalCliComm> globalCliComm;
148 std::unique_ptr<GlobalCommandController> globalCommandController;
149 std::unique_ptr<GlobalSettings> globalSettings;
150 std::unique_ptr<InputEventGenerator> inputEventGenerator;
151 std::unique_ptr<Display> display;
152 std::unique_ptr<Mixer> mixer;
153 std::unique_ptr<DiskFactory> diskFactory;
154 std::unique_ptr<DiskManipulator> diskManipulator;
155 std::unique_ptr<DiskChanger> virtualDrive;
156 std::unique_ptr<FilePool> filePool;
158 std::unique_ptr<EnumSetting<int>> machineSetting;
159 std::unique_ptr<UserSettings> userSettings;
160 std::unique_ptr<RomDatabase> softwareDatabase;
162 std::unique_ptr<AfterCommand> afterCommand;
163 std::unique_ptr<ExitCommand> exitCommand;
164 std::unique_ptr<MessageCommand> messageCommand;
165 std::unique_ptr<MachineCommand> machineCommand;
166 std::unique_ptr<TestMachineCommand> testMachineCommand;
167 std::unique_ptr<CreateMachineCommand> createMachineCommand;
168 std::unique_ptr<DeleteMachineCommand> deleteMachineCommand;
169 std::unique_ptr<ListMachinesCommand> listMachinesCommand;
170 std::unique_ptr<ActivateMachineCommand> activateMachineCommand;
171 std::unique_ptr<StoreMachineCommand> storeMachineCommand;
172 std::unique_ptr<RestoreMachineCommand> restoreMachineCommand;
173 std::unique_ptr<GetClipboardCommand> getClipboardCommand;
174 std::unique_ptr<SetClipboardCommand> setClipboardCommand;
175 std::unique_ptr<AviRecorder> aviRecordCommand;
176 std::unique_ptr<ConfigInfo> extensionInfo;
177 std::unique_ptr<ConfigInfo> machineInfo;
178 std::unique_ptr<RealTimeInfo> realTimeInfo;
179 std::unique_ptr<SoftwareInfoTopic> softwareInfoTopic;
180 std::unique_ptr<TclCallbackMessages> tclCallbackMessages;
189 std::vector<Board> boards;
192 int blockedCounter = 0;
Represents the output window/screen of openMSX.
This class contains settings that are used by several other class (including some singletons).
Generic Gang-of-Four Observer class, templatized edition.
Contains the main loop of openMSX.
GlobalSettings & getGlobalSettings()
MSXMotherBoard * getMotherBoard() const
std::shared_ptr< MSXMotherBoard > Board
CommandController & getCommandController()
DiskManipulator & getDiskManipulator()
GlobalCommandController & getGlobalCommandController()
InfoCommand & getOpenMSXInfoCommand()
void switchMachine(const std::string &machine)
void run(CommandLineParser &parser)
Main loop.
EnumSetting< int > & getMachineSetting()
DiskFactory & getDiskFactory()
GlobalCliComm & getGlobalCliComm()
Board createEmptyMotherBoard()
RTScheduler & getRTScheduler()
Interpreter & getInterpreter()
void replaceBoard(MSXMotherBoard &oldBoard, Board newBoard)
std::string_view getMachineID() const
EventDistributor & getEventDistributor()
static std::vector< std::string > getHwConfigs(std::string_view type)
InputEventGenerator & getInputEventGenerator()
RomDatabase & getSoftwareDatabase()
This file implemented 3 utility functions:
constexpr auto transform(Range &&range, UnaryOp op)