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>;
118 void createMachineSetting();
119 void switchBoard(
Board newBoard);
120 void deleteBoard(
Board board);
121 [[nodiscard]]
Board getMachine(std::string_view machineID)
const;
122 [[nodiscard]]
auto getMachineIDs()
const {
124 [](
auto& b) -> std::string_view {
return b->getMachineID(); });
128 void update(
const Setting&
setting)
noexcept override;
131 int signalEvent(
const Event& event)
override;
137 [[nodiscard]]
bool doOneIteration();
147 std::unique_ptr<RTScheduler> rtScheduler;
148 std::unique_ptr<EventDistributor> eventDistributor;
149 std::unique_ptr<GlobalCliComm> globalCliComm;
150 std::unique_ptr<GlobalCommandController> globalCommandController;
151 std::unique_ptr<GlobalSettings> globalSettings;
152 std::unique_ptr<InputEventGenerator> inputEventGenerator;
153 std::unique_ptr<Display> display;
154 std::unique_ptr<Mixer> mixer;
155 std::unique_ptr<DiskFactory> diskFactory;
156 std::unique_ptr<DiskManipulator> diskManipulator;
157 std::unique_ptr<DiskChanger> virtualDrive;
158 std::unique_ptr<FilePool> filePool;
160 std::unique_ptr<EnumSetting<int>> machineSetting;
161 std::unique_ptr<UserSettings> userSettings;
162 std::unique_ptr<RomDatabase> softwareDatabase;
164 std::unique_ptr<AfterCommand> afterCommand;
165 std::unique_ptr<ExitCommand> exitCommand;
166 std::unique_ptr<MessageCommand> messageCommand;
167 std::unique_ptr<MachineCommand> machineCommand;
168 std::unique_ptr<TestMachineCommand> testMachineCommand;
169 std::unique_ptr<CreateMachineCommand> createMachineCommand;
170 std::unique_ptr<DeleteMachineCommand> deleteMachineCommand;
171 std::unique_ptr<ListMachinesCommand> listMachinesCommand;
172 std::unique_ptr<ActivateMachineCommand> activateMachineCommand;
173 std::unique_ptr<StoreMachineCommand> storeMachineCommand;
174 std::unique_ptr<RestoreMachineCommand> restoreMachineCommand;
175 std::unique_ptr<GetClipboardCommand> getClipboardCommand;
176 std::unique_ptr<SetClipboardCommand> setClipboardCommand;
177 std::unique_ptr<AviRecorder> aviRecordCommand;
178 std::unique_ptr<ConfigInfo> extensionInfo;
179 std::unique_ptr<ConfigInfo> machineInfo;
180 std::unique_ptr<RealTimeInfo> realTimeInfo;
181 std::unique_ptr<SoftwareInfoTopic> softwareInfoTopic;
182 std::unique_ptr<TclCallbackMessages> tclCallbackMessages;
191 std::vector<Board> boards;
194 int blockedCounter = 0;
196 bool fullyStarted =
false;
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.
bool isFullyStarted() const
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)