Some more header file cleanups, hopefully resulting in faster compile

times.
This commit is contained in:
Stephen Anthony 2020-05-12 13:52:33 -02:30
parent 8807e91d04
commit 7532fbf88a
72 changed files with 148 additions and 103 deletions

View File

@ -19,6 +19,7 @@
#define CONTROLLERMAP_HXX
#include <unordered_map>
#include "Event.hxx"
#include "EventHandlerConstants.hxx"

View File

@ -18,6 +18,7 @@
#include <cmath>
#include "OSystem.hxx"
#include "Console.hxx"
#include "Serializer.hxx"
#include "StateManager.hxx"
#include "TIA.hxx"

View File

@ -18,12 +18,13 @@
#ifndef SOUND_NULL_HXX
#define SOUND_NULL_HXX
class OSystem;
class AudioQueue;
class EmulationTiming;
#include "bspf.hxx"
#include "Logger.hxx"
#include "Sound.hxx"
#include "OSystem.hxx"
#include "AudioQueue.hxx"
#include "EmulationTiming.hxx"
/**
This class implements a Null sound object, where-by sound generation

View File

@ -24,12 +24,12 @@ class OSystem;
class AudioQueue;
class EmulationTiming;
class AudioSettings;
class Resampler;
#include "SDL_lib.hxx"
#include "bspf.hxx"
#include "Sound.hxx"
#include "audio/Resampler.hxx"
/**
This class implements the sound API for SDL.

View File

@ -15,9 +15,9 @@
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//============================================================================
#include "BilinearBlitter.hxx"
#include "FrameBufferSDL2.hxx"
#include "ThreadDebugging.hxx"
#include "BilinearBlitter.hxx"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
BilinearBlitter::BilinearBlitter(FrameBufferSDL2& fb, bool interpolate)

View File

@ -18,8 +18,9 @@
#ifndef BILINEAR_BLITTER_HXX
#define BILINEAR_BLITTER_HXX
class FrameBufferSDL2;
#include "Blitter.hxx"
#include "FrameBufferSDL2.hxx"
#include "SDL_lib.hxx"
class BilinearBlitter : public Blitter {

View File

@ -15,9 +15,9 @@
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//============================================================================
#include "QisBlitter.hxx"
#include "FrameBufferSDL2.hxx"
#include "ThreadDebugging.hxx"
#include "QisBlitter.hxx"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
QisBlitter::QisBlitter(FrameBufferSDL2& fb)

View File

@ -18,8 +18,9 @@
#ifndef QIS_BLITTER_HXX
#define QIS_BLITTER_HXX
class FrameBufferSDL2;
#include "Blitter.hxx"
#include "FrameBufferSDL2.hxx"
#include "SDL_lib.hxx"
class QisBlitter : public Blitter {

View File

@ -30,6 +30,7 @@
#include "M6502.hxx"
#include "Expression.hxx"
#include "FSNode.hxx"
#include "OSystem.hxx"
#include "Settings.hxx"
#include "PromptWidget.hxx"
#include "RomWidget.hxx"

View File

@ -16,6 +16,7 @@
//============================================================================
#include "CartAR.hxx"
#include "OSystem.hxx"
#include "Debugger.hxx"
#include "CartDebug.hxx"
#include "PopUpWidget.hxx"

View File

@ -16,6 +16,7 @@
//============================================================================
#include "CartCM.hxx"
#include "OSystem.hxx"
#include "Debugger.hxx"
#include "CartDebug.hxx"
#include "RiotDebug.hxx"

View File

@ -15,6 +15,7 @@
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//============================================================================
#include "OSystem.hxx"
#include "Debugger.hxx"
#include "CartDebug.hxx"
#include "CartCTY.hxx"

View File

@ -15,8 +15,8 @@
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//============================================================================
#include "PopUpWidget.hxx"
#include "OSystem.hxx"
#include "Debugger.hxx"
#include "CartDebug.hxx"
#include "CartEnhanced.hxx"

View File

@ -25,6 +25,7 @@ namespace GUI {
class Font;
}
#include "Variant.hxx"
#include "CartDebugWidget.hxx"
class CartridgeEnhancedWidget : public CartDebugWidget

View File

@ -23,6 +23,7 @@ class ButtonWidget;
#include "Font.hxx"
#include "Widget.hxx"
#include "OSystem.hxx"
#include "Console.hxx"
#include "Command.hxx"
#include "ControlLowLevel.hxx"

View File

@ -18,6 +18,7 @@
#include "Widget.hxx"
#include "Dialog.hxx"
#include "Font.hxx"
#include "OSystem.hxx"
#include "Debugger.hxx"
#include "FrameBuffer.hxx"
#include "FBSurface.hxx"

View File

@ -47,6 +47,8 @@
#include "OptionsDialog.hxx"
#include "StateManager.hxx"
#include "FrameManager.hxx"
#include "OSystem.hxx"
#include "Console.hxx"
#include "DebuggerDialog.hxx"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -20,6 +20,7 @@
#include "Font.hxx"
#include "StellaKeys.hxx"
#include "Version.hxx"
#include "OSystem.hxx"
#include "Debugger.hxx"
#include "DebuggerDialog.hxx"
#include "DebuggerParser.hxx"

View File

@ -15,6 +15,7 @@
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//============================================================================
#include "OSystem.hxx"
#include "Debugger.hxx"
#include "CartDebug.hxx"

View File

@ -16,6 +16,7 @@
//============================================================================
#include "bspf.hxx"
#include "OSystem.hxx"
#include "Debugger.hxx"
#include "DiStella.hxx"
#include "Widget.hxx"

View File

@ -15,6 +15,7 @@
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//============================================================================
#include "OSystem.hxx"
#include "Settings.hxx"
#include "Debugger.hxx"
#include "CartDebug.hxx"

View File

@ -36,6 +36,11 @@ AtariVox::AtariVox(Jack jack, const Event& event, const System& system,
setPin(DigitalPin::Four, true);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AtariVox::~AtariVox()
{
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool AtariVox::read(DigitalPin pin)
{

View File

@ -19,10 +19,10 @@
#define ATARIVOX_HXX
class OSystem;
class SerialPort;
#include "Control.hxx"
#include "SaveKey.hxx"
#include "SerialPort.hxx"
/**
Richard Hutchinson's AtariVox "controller": A speech synthesizer and
@ -49,7 +49,7 @@ class AtariVox : public SaveKey
AtariVox(Jack jack, const Event& event, const System& system,
const string& portname, const string& eepromfile,
const onMessageCallback& callback);
virtual ~AtariVox() = default;
virtual ~AtariVox();
public:
using Controller::read;

View File

@ -23,15 +23,18 @@ class Properties;
class CartDebugWidget;
class CartRamWidget;
class GuiObject;
class Settings;
#include <functional>
#include "bspf.hxx"
#include "Device.hxx"
#include "Settings.hxx"
#ifdef DEBUGGER_SUPPORT
#include "Font.hxx"
namespace GUI {
class Font;
}
#endif
/**
A cartridge is a device which contains the machine code for a
game and handles any bankswitching performed by the cartridge.

View File

@ -24,7 +24,6 @@ class System;
#include "Cart3E.hxx"
#ifdef DEBUGGER_SUPPORT
class Cartridge3EPlusWidget;
#include "Cart3EPlusWidget.hxx"
#endif

View File

@ -19,7 +19,9 @@
#define CARTRIDGE3EX_HXX
class System;
class Settings;
#include "bspf.hxx"
#include "Cart3E.hxx"
/**
@ -30,39 +32,38 @@ class System;
class Cartridge3EX : public Cartridge3E
{
public:
/**
Create a new cartridge using the specified image and size
public:
/**
Create a new cartridge using the specified image and size
@param image Pointer to the ROM image
@param size The size of the ROM image
@param md5 The md5sum of the ROM image
@param settings A reference to the various settings (read-only)
*/
Cartridge3EX(const ByteBuffer& image, size_t size, const string& md5,
const Settings& settings);
virtual ~Cartridge3EX() = default;
@param image Pointer to the ROM image
@param size The size of the ROM image
@param md5 The md5sum of the ROM image
@param settings A reference to the various settings (read-only)
*/
Cartridge3EX(const ByteBuffer& image, size_t size, const string& md5,
const Settings& settings);
virtual ~Cartridge3EX() = default;
public:
/**
Get a descriptor for the device name (used in error checking).
public:
/**
Get a descriptor for the device name (used in error checking).
@return The name of the object
*/
string name() const override { return "Cartridge3EX"; }
@return The name of the object
*/
string name() const override { return "Cartridge3EX"; }
private:
// RAM size
static constexpr size_t RAM_SIZE = RAM_BANKS << (BANK_SHIFT - 1); // = 256K = 0x40000;
private:
// RAM size
static constexpr size_t RAM_SIZE = RAM_BANKS << (BANK_SHIFT - 1); // = 256K = 0x40000;
private:
// Following constructors and assignment operators not supported
Cartridge3EX() = delete;
Cartridge3EX(const Cartridge3EX&) = delete;
Cartridge3EX(Cartridge3EX&&) = delete;
Cartridge3EX& operator=(const Cartridge3EX&) = delete;
Cartridge3EX& operator=(Cartridge3EX&&) = delete;
private:
// Following constructors and assignment operators not supported
Cartridge3EX() = delete;
Cartridge3EX(const Cartridge3EX&) = delete;
Cartridge3EX(Cartridge3EX&&) = delete;
Cartridge3EX& operator=(const Cartridge3EX&) = delete;
Cartridge3EX& operator=(Cartridge3EX&&) = delete;
};
#endif

View File

@ -17,6 +17,7 @@
#include "M6502.hxx"
#include "System.hxx"
#include "Settings.hxx"
#include "CartAR.hxx"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -15,6 +15,7 @@
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//============================================================================
#include "Settings.hxx"
#include "System.hxx"
#include "AudioSettings.hxx"
#include "CartDPC.hxx"

View File

@ -62,6 +62,7 @@
#include "MD5.hxx"
#include "Props.hxx"
#include "Logger.hxx"
#include "OSystem.hxx"
#include "CartDetector.hxx"

View File

@ -20,10 +20,10 @@
class Cartridge;
class Properties;
class Settings;
#include "Bankswitch.hxx"
#include "bspf.hxx"
#include "Settings.hxx"
/**
Auto-detect cart type based on various attributes (file size, signatures,

View File

@ -15,6 +15,9 @@
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//============================================================================
#include "Console.hxx"
#include "Event.hxx"
#include "System.hxx"
#include "CompuMate.hxx"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -18,11 +18,12 @@
#ifndef COMPUMATE_HXX
#define COMPUMATE_HXX
class Console;
class Event;
class System;
#include "bspf.hxx"
#include "CartCM.hxx"
#include "Control.hxx"
#include "Event.hxx"
#include "Console.hxx"
/**
Handler for SpectraVideo CompuMate bankswitched games.

View File

@ -24,6 +24,7 @@
#include "Cart.hxx"
#include "Control.hxx"
#include "Cart.hxx"
#include "CartCM.hxx"
#include "Driving.hxx"
#include "Event.hxx"
#include "EventHandler.hxx"

View File

@ -15,12 +15,12 @@
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//============================================================================
#include "Control.hxx"
#include "Switches.hxx"
#ifndef CONSOLE_IO_HXX
#define CONSOLE_IO_HXX
class Controller;
class Switches;
class ConsoleIO
{
public:

View File

@ -25,8 +25,8 @@ class System;
#include <functional>
#include "Serializable.hxx"
#include "bspf.hxx"
#include "Serializable.hxx"
/**
A controller is a device that plugs into either the left or right

View File

@ -18,6 +18,8 @@
#ifndef CONTROLLER_DETECTOR_HXX
#define CONTROLLER_DETECTOR_HXX
class Settings;
#include "Control.hxx"
/**

View File

@ -20,9 +20,9 @@
class System;
#include "Console.hxx"
#include "Serializable.hxx"
#include "bspf.hxx"
#include "ConsoleTiming.hxx"
#include "Serializable.hxx"
/**
Abstract base class for devices which can be attached to a 6502

View File

@ -19,8 +19,8 @@
#define JOYSTICK_HXX
#include "bspf.hxx"
#include "Control.hxx"
#include "Event.hxx"
#include "Control.hxx"
/**
The standard Atari 2600 joystick controller.

View File

@ -19,8 +19,8 @@
#define KEYBOARD_HXX
#include "bspf.hxx"
#include "Control.hxx"
#include "Event.hxx"
#include "Control.hxx"
/**
The standard Atari 2600 keyboard controller

View File

@ -18,6 +18,11 @@
#ifndef LIGHTGUN_HXX
#define LIGHTGUN_HXX
class FrameBuffer;
#include "bspf.hxx"
#include "Control.hxx"
/**
This class handles the lightgun controller

View File

@ -18,7 +18,6 @@
#ifndef POINTING_DEVICE_HXX
#define POINTING_DEVICE_HXX
class Controller;
class Event;
#include "Control.hxx"

View File

@ -54,7 +54,6 @@ namespace {
}
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ProfilingRunner::ProfilingRunner(int argc, char* argv[])
: profilingRuns(std::max(argc - 2, 0))

View File

@ -18,10 +18,9 @@
#ifndef PROFILING_RUNNER
#define PROFILING_RUNNER
class Control;
class Switches;
#include "bspf.hxx"
#include "Control.hxx"
#include "Switches.hxx"
#include "Settings.hxx"
#include "ConsoleIO.hxx"
#include "Props.hxx"
@ -41,13 +40,13 @@ class ProfilingRunner {
};
struct IO: public ConsoleIO {
Controller& leftController() const override { return *myLeftControl; }
Controller& rightController() const override { return *myRightControl; }
Switches& switches() const override { return *mySwitches; }
Controller& leftController() const override { return *myLeftControl; }
Controller& rightController() const override { return *myRightControl; }
Switches& switches() const override { return *mySwitches; }
unique_ptr<Controller> myLeftControl;
unique_ptr<Controller> myRightControl;
unique_ptr<Switches> mySwitches;
unique_ptr<Controller> myLeftControl;
unique_ptr<Controller> myRightControl;
unique_ptr<Switches> mySwitches;
};
private:

View File

@ -22,8 +22,8 @@ class Event;
class Properties;
class Settings;
#include "Serializable.hxx"
#include "bspf.hxx"
#include "Serializable.hxx"
/**
This class represents the console switches of the game console.

View File

@ -18,11 +18,10 @@
#ifndef SYSTEM_HXX
#define SYSTEM_HXX
class Device;
class M6502;
class M6532;
class TIA;
class NullDevice;
class Cartridge;
#include "bspf.hxx"
#include "Device.hxx"

View File

@ -18,12 +18,12 @@
#ifndef TIA_AUDIO_HXX
#define TIA_AUDIO_HXX
class AudioQueue;
#include "bspf.hxx"
#include "AudioChannel.hxx"
#include "Serializable.hxx"
class AudioQueue;
class Audio : public Serializable
{
public:

View File

@ -18,11 +18,11 @@
#ifndef TIA_BACKGROUND
#define TIA_BACKGROUND
class TIA;
#include "Serializable.hxx"
#include "bspf.hxx"
class TIA;
class Background : public Serializable
{
public:

View File

@ -18,11 +18,11 @@
#ifndef TIA_BALL
#define TIA_BALL
#include "Serializable.hxx"
class TIA;
#include "bspf.hxx"
#include "TIAConstants.hxx"
class TIA;
#include "Serializable.hxx"
class Ball : public Serializable
{

View File

@ -19,8 +19,6 @@
#define TIA_DELAY_QUEUE_ITERATOR
#include "bspf.hxx"
#include "DelayQueue.hxx"
#include "DelayQueueMember.hxx"
class DelayQueueIterator
{

View File

@ -20,7 +20,6 @@
#include "bspf.hxx"
#include "DelayQueue.hxx"
#include "DelayQueueMember.hxx"
#include "DelayQueueIterator.hxx"
template<unsigned length, unsigned capacity>

View File

@ -18,8 +18,8 @@
#ifndef TIA_DELAY_QUEUE_MEMBER
#define TIA_DELAY_QUEUE_MEMBER
#include "Serializable.hxx"
#include "bspf.hxx"
#include "Serializable.hxx"
template<unsigned capacity>
class DelayQueueMember : public Serializable {

View File

@ -18,13 +18,13 @@
#ifndef TIA_MISSILE
#define TIA_MISSILE
class TIA;
class Player;
#include "Serializable.hxx"
#include "bspf.hxx"
#include "Player.hxx"
#include "TIAConstants.hxx"
class TIA;
class Missile : public Serializable
{
public:

View File

@ -20,7 +20,7 @@
#include "bspf.hxx"
#include "Serializable.hxx"
#include "Console.hxx"
#include "ConsoleTiming.hxx"
class PaddleReader : public Serializable
{

View File

@ -18,12 +18,12 @@
#ifndef TIA_PLAYER
#define TIA_PLAYER
class TIA;
#include "bspf.hxx"
#include "Serializable.hxx"
#include "TIAConstants.hxx"
class TIA;
class Player : public Serializable
{
public:

View File

@ -18,11 +18,11 @@
#ifndef TIA_PLAYFIELD
#define TIA_PLAYFIELD
#include "Serializable.hxx"
class TIA;
#include "bspf.hxx"
#include "TIAConstants.hxx"
class TIA;
#include "Serializable.hxx"
class Playfield : public Serializable
{

View File

@ -18,8 +18,8 @@
#ifndef TIA_FRAME_LAYOUT_DETECTOR
#define TIA_FRAME_LAYOUT_DETECTOR
#include "AbstractFrameManager.hxx"
#include "FrameLayout.hxx"
#include "AbstractFrameManager.hxx"
/**
* This frame manager performs frame layout autodetection. It counts the scanlines

View File

@ -16,6 +16,8 @@
//============================================================================
#include "Dialog.hxx"
#include "OSystem.hxx"
#include "Settings.hxx"
#include "CommandDialog.hxx"
#include "MinUICommandDialog.hxx"
#include "CommandMenu.hxx"

View File

@ -21,7 +21,6 @@
#include "Rect.hxx"
#include "EditableWidget.hxx"
/* EditTextWidget */
class EditTextWidget : public EditableWidget
{

View File

@ -15,6 +15,7 @@
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//============================================================================
#include "OSystem.hxx"
#include "Console.hxx"
#include "FrameBuffer.hxx"
#include "RadioButtonWidget.hxx"

View File

@ -27,7 +27,6 @@ class Widget;
class OSystem;
#include "Command.hxx"
#include "OSystem.hxx"
#include "Vec.hxx"
using WidgetArray = vector<Widget*>;

View File

@ -62,7 +62,6 @@ class InputDialog : public Dialog
void addDevicePortTab();
void addMouseTab();
void handleMouseControlState();
void handleCursorState();
void updateDejitterAveraging();

View File

@ -32,6 +32,9 @@ class EditTextWidget;
class FileListWidget;
class RomInfoWidget;
class StaticTextWidget;
namespace Common {
struct Size;
}
namespace GUI {
class MessageBox;
}
@ -41,7 +44,6 @@ namespace GUI {
#include "bspf.hxx"
#include "Dialog.hxx"
#include "FSNode.hxx"
#include "Stack.hxx"
class LauncherDialog : public Dialog
{

View File

@ -19,6 +19,7 @@
#include "FrameBufferConstants.hxx"
#include "OptionsDialog.hxx"
#include "StellaSettingsDialog.hxx"
#include "OSystem.hxx"
#include "FrameBuffer.hxx"
#include "bspf.hxx"
#include "Menu.hxx"

View File

@ -15,6 +15,7 @@
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//============================================================================
#include "OSystem.hxx"
#include "Console.hxx"
#include "EventHandler.hxx"
#include "Font.hxx"

View File

@ -16,6 +16,7 @@
//============================================================================
#include "Dialog.hxx"
#include "OSystem.hxx"
#include "FrameBuffer.hxx"
#include "MessageDialog.hxx"
#include "MessageMenu.hxx"

View File

@ -25,6 +25,7 @@
#include "FSNode.hxx"
#include "Font.hxx"
#include "MessageBox.hxx"
#include "OSystem.hxx"
#include "FrameBuffer.hxx"
#include "MD5.hxx"
#include "Props.hxx"

View File

@ -21,6 +21,7 @@
#include "FSNode.hxx"
#include "Font.hxx"
#include "LauncherDialog.hxx"
#include "OSystem.hxx"
#include "Settings.hxx"
#include "SnapshotDialog.hxx"

View File

@ -15,6 +15,7 @@
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//============================================================================
#include "OSystem.hxx"
#include "Console.hxx"
#include "EventHandler.hxx"
#include "Launcher.hxx"
@ -88,6 +89,11 @@ StellaSettingsDialog::StellaSettingsDialog(OSystem& osystem, DialogContainer& pa
addToFocusList(wid);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
StellaSettingsDialog::~StellaSettingsDialog()
{
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void StellaSettingsDialog::addUIOptions(WidgetArray& wid, int& xpos, int& ypos)
{

View File

@ -23,7 +23,6 @@ class PopUpWidget;
#include "Props.hxx"
#include "Menu.hxx"
#include "Dialog.hxx"
#include "MessageBox.hxx"
#if defined(RETRON77)
#include "R77HelpDialog.hxx"
@ -33,6 +32,7 @@ class PopUpWidget;
namespace GUI {
class Font;
class MessageBox;
}
class StellaSettingsDialog : public Dialog
@ -40,7 +40,7 @@ class StellaSettingsDialog : public Dialog
public:
StellaSettingsDialog(OSystem& osystem, DialogContainer& parent,
int max_w, int max_h, Menu::AppMode mode);
virtual ~StellaSettingsDialog() = default;
virtual ~StellaSettingsDialog();
private:
void loadConfig() override;

View File

@ -23,14 +23,12 @@
class Dialog;
namespace GUI {
class Font;
}
#include <cassert>
#include "bspf.hxx"
#include "Event.hxx"
#include "EventHandlerConstants.hxx"
#include "FrameBufferConstants.hxx"
#include "StellaKeys.hxx"
#include "GuiObject.hxx"
#include "Font.hxx"

View File

@ -27,7 +27,6 @@ class AudioSettings;
#include "bspf.hxx"
#include "Sound.hxx"
#include "AudioQueue.hxx"
/**
This class implements the sound API for LIBRTRO.

View File

@ -23,6 +23,7 @@
#include "AtariNTSC.hxx"
#include "PaletteHandler.hxx"
#include "AudioSettings.hxx"
#include "PaletteHandler.hxx"
#include "Serializer.hxx"
#include "StateManager.hxx"
#include "Switches.hxx"