Monado OpenXR Runtime
Loading...
Searching...
No Matches
XRTVRSettings.hpp
Go to the documentation of this file.
1// Copyright 2026, Beyley Cardellio
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Implementation of the latest IVRSettings_003 interface version.
6 *
7 * @author Beyley Cardellio <ep1cm1n10n123@gmail.com>
8 * @ingroup openvr_interfaces
9 */
10
11#pragma once
12
13#include "openvr_interfaces_unified.h"
14#include "openvr_forward_macros.h"
15
16#include "XRTVRClientCore.hpp"
17
18
19namespace xrt::state_trackers::openvr {
20
21using namespace vr;
22
23class XRTVRSettings_003 : public vr::IVRSettings_003
24{
25private:
27
28public:
30
31 virtual ~XRTVRSettings_003() = default;
32
33 FnTable_IVRSettings_003();
34
35 const char *
36 GetSettingsErrorNameFromEnum(EVRSettingsError eError) override;
37
38 void
39 SetBool(const char *pchSection, const char *pchSettingsKey, bool bValue, EVRSettingsError *peError) override;
40
41 void
42 SetInt32(const char *pchSection,
43 const char *pchSettingsKey,
44 int32_t nValue,
45 EVRSettingsError *peError) override;
46
47 void
48 SetFloat(const char *pchSection, const char *pchSettingsKey, float flValue, EVRSettingsError *peError) override;
49
50 void
51 SetString(const char *pchSection,
52 const char *pchSettingsKey,
53 const char *pchValue,
54 EVRSettingsError *peError) override;
55
56 bool
57 GetBool(const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError) override;
58
59 int32_t
60 GetInt32(const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError) override;
61
62 float
63 GetFloat(const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError) override;
64
65 void
66 GetString(const char *pchSection,
67 const char *pchSettingsKey,
68 char *pchValue,
69 uint32_t unValueLen,
70 EVRSettingsError *peError) override;
71
72 void
73 RemoveSection(const char *pchSection, EVRSettingsError *peError) override;
74
75 void
76 RemoveKeyInSection(const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError) override;
77};
78
79} // namespace xrt::state_trackers::openvr
Implementation of the latest IVRClientCore interface version.
Definition XRTVRClientCore.hpp:152
Definition XRTVRSettings.hpp:24
Definitions missing from C++ header, present in C.
Definition blockqueue.hpp:15