mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2025-01-29 01:05:58 +01:00
32 lines
583 B
C++
32 lines
583 B
C++
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include "wups/config.h"
|
|
|
|
class WUPSConfigItem {
|
|
protected:
|
|
explicit WUPSConfigItem(const WUPSConfigItemHandle itemHandle) : mHandle(itemHandle) {
|
|
}
|
|
|
|
public:
|
|
virtual ~WUPSConfigItem();
|
|
|
|
WUPSConfigItem(const WUPSConfigItem &) = delete;
|
|
|
|
WUPSConfigItem(WUPSConfigItem &&src) noexcept;
|
|
|
|
WUPSConfigItem &operator=(WUPSConfigItem &&src) noexcept;
|
|
|
|
void releaseHandle() noexcept;
|
|
|
|
[[nodiscard]] const WUPSConfigItemHandle &getHandle() const;
|
|
|
|
void release();
|
|
|
|
private:
|
|
WUPSConfigItemHandle mHandle = {};
|
|
};
|
|
|
|
#endif
|