ASAPCabinetFE
 
Loading...
Searching...
No Matches
vpinballx_ini_reader.h
Go to the documentation of this file.
1
10#ifndef VPINBALLX_INI_READER_H
11#define VPINBALLX_INI_READER_H
12
13#include <string>
14#include <optional>
15
24 // Playfield settings
25 std::optional<int> playfieldX;
26 std::optional<int> playfieldY;
27 std::optional<int> playfieldWidth;
28 std::optional<int> playfieldHeight;
29
30 // Backglass settings
31 std::optional<int> backglassX;
32 std::optional<int> backglassY;
33 std::optional<int> backglassWidth;
34 std::optional<int> backglassHeight;
35
36 // DMD settings
37 std::optional<int> dmdX;
38 std::optional<int> dmdY;
39 std::optional<int> dmdWidth;
40 std::optional<int> dmdHeight;
41
42 // Topper settings
43 std::optional<int> topperX;
44 std::optional<int> topperY;
45 std::optional<int> topperWidth;
46 std::optional<int> topperHeight;
47};
48
58public:
66 explicit VPinballXIniReader(const std::string& iniPath);
67
76 std::optional<VPinballXIniSettings> readIniSettings() const;
77
78private:
79 std::string iniPath_;
80};
81
82#endif // VPINBALLX_INI_READER_H
Reads VPX INI files to extract window settings.
Definition vpinballx_ini_reader.h:57
std::optional< VPinballXIniSettings > readIniSettings() const
Reads settings from the VPX INI file.
Definition vpinballx_ini_reader.cpp:9
Represents VPX INI settings for window positions and sizes.
Definition vpinballx_ini_reader.h:23
std::optional< int > topperX
X-coordinate of the topper window.
Definition vpinballx_ini_reader.h:43
std::optional< int > backglassY
Y-coordinate of the backglass window.
Definition vpinballx_ini_reader.h:32
std::optional< int > playfieldX
X-coordinate of the playfield window.
Definition vpinballx_ini_reader.h:25
std::optional< int > dmdY
Y-coordinate of the DMD window.
Definition vpinballx_ini_reader.h:38
std::optional< int > backglassX
X-coordinate of the backglass window.
Definition vpinballx_ini_reader.h:31
std::optional< int > backglassWidth
Width of the backglass window.
Definition vpinballx_ini_reader.h:33
std::optional< int > playfieldWidth
Width of the playfield window.
Definition vpinballx_ini_reader.h:27
std::optional< int > dmdX
X-coordinate of the DMD window.
Definition vpinballx_ini_reader.h:37
std::optional< int > topperY
Y-coordinate of the topper window.
Definition vpinballx_ini_reader.h:44
std::optional< int > topperHeight
Height of the topper window.
Definition vpinballx_ini_reader.h:46
std::optional< int > dmdWidth
Width of the DMD window.
Definition vpinballx_ini_reader.h:39
std::optional< int > topperWidth
Width of the topper window.
Definition vpinballx_ini_reader.h:45
std::optional< int > backglassHeight
Height of the backglass window.
Definition vpinballx_ini_reader.h:34
std::optional< int > playfieldHeight
Height of the playfield window.
Definition vpinballx_ini_reader.h:28
std::optional< int > playfieldY
Y-coordinate of the playfield window.
Definition vpinballx_ini_reader.h:26
std::optional< int > dmdHeight
Height of the DMD window.
Definition vpinballx_ini_reader.h:40