ASAPCabinetFE
 
Loading...
Searching...
No Matches
VPinballXIniReader Class Reference

Reads VPX INI files to extract window settings. More...

#include <vpinballx_ini_reader.h>

+ Collaboration diagram for VPinballXIniReader:

Public Member Functions

 VPinballXIniReader (const std::string &iniPath)
 Constructs a VPinballXIniReader instance.
 
std::optional< VPinballXIniSettingsreadIniSettings () const
 Reads settings from the VPX INI file.
 

Detailed Description

Reads VPX INI files to extract window settings.

This class parses a VPX INI file to retrieve settings for playfield, backglass, and DMD windows, returning them as a VPinballXIniSettings struct. It is used to configure screenshot capture or other VPX-related operations.

Constructor & Destructor Documentation

◆ VPinballXIniReader()

VPinballXIniReader::VPinballXIniReader ( const std::string &  iniPath)
explicit

Constructs a VPinballXIniReader instance.

Initializes the reader with the path to the VPX INI file.

Parameters
iniPathThe path to the VPX INI file.

Member Function Documentation

◆ readIniSettings()

std::optional< VPinballXIniSettings > VPinballXIniReader::readIniSettings ( ) const

Reads settings from the VPX INI file.

Parses the INI file and returns the extracted settings as a VPinballXIniSettings struct, or an empty optional if parsing fails.

Returns
An optional containing the VPinballXIniSettings, or std::nullopt if the file cannot be read.
+ Here is the caller graph for this function:

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